aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-08-26 22:40:09 +0000
committerNicolas Thill <nico@openwrt.org>2007-08-26 22:40:09 +0000
commit70c361d175a2ab872c0a75b4a740b2d5f2c9de56 (patch)
treee75458b1a4ced421fc0d23b3fc635087cfff6a02
parent75123bd13181a221e2ce40c409c2d63d176bd48b (diff)
downloadupstream-70c361d175a2ab872c0a75b4a740b2d5f2c9de56.tar.gz
upstream-70c361d175a2ab872c0a75b4a740b2d5f2c9de56.tar.bz2
upstream-70c361d175a2ab872c0a75b4a740b2d5f2c9de56.zip
ifenslave fixes: * use KERNEL_BUILD_DIR for PKG_BUILD_DIR * no need to copy source, can compile from linux source directly
SVN-Revision: 8497
-rw-r--r--package/ifenslave/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/ifenslave/Makefile b/package/ifenslave/Makefile
index 695d5b2e83..643401e051 100644
--- a/package/ifenslave/Makefile
+++ b/package/ifenslave/Makefile
@@ -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))