1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:48:27 +02:00

ifenslave fixes:

* use KERNEL_BUILD_DIR for PKG_BUILD_DIR
 * no need to copy source, can compile from linux source directly


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8497 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2007-08-26 22:40:09 +00:00
parent 97a0ac42bd
commit 49b68868da

View File

@ -12,6 +12,8 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ifenslave
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/ifenslave
@ -25,16 +27,16 @@ define Package/ifenslave
endef
define Build/Prepare
$(CP) $(LINUX_DIR)/Documentation/networking/ifenslave.c $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/ifenslave.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ifenslave \
$(LINUX_DIR)/Documentation/networking/ifenslave.c
endef
define Package/ifenslave/install
$(INSTALL_DIR) $(1)/sbin
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
$(CP) $(PKG_BUILD_DIR)/ifenslave $(1)/sbin/
endef
$(eval $(call BuildPackage,ifenslave))