summaryrefslogtreecommitdiff
path: root/include/package-ipkg.mk
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-08-26 12:42:48 +0000
committerNicolas Thill <nico@openwrt.org>2007-08-26 12:42:48 +0000
commit3e47314ccb67c09b85b13a57a36271f7638fd8b4 (patch)
tree79bc4f58db9341dc8a616795f54aebc484dc18f1 /include/package-ipkg.mk
parentbae342971df422511e7a88eb740138165e958b61 (diff)
downloadmtk-20170518-3e47314ccb67c09b85b13a57a36271f7638fd8b4.zip
mtk-20170518-3e47314ccb67c09b85b13a57a36271f7638fd8b4.tar.gz
mtk-20170518-3e47314ccb67c09b85b13a57a36271f7638fd8b4.tar.bz2
move rule for $(STAGING_DIR)/etc/ipkg.conf out of BuildIPKG so that it's defined only once
SVN-Revision: 8491
Diffstat (limited to 'include/package-ipkg.mk')
-rw-r--r--include/package-ipkg.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index c67ee4b..cc9a780 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -71,11 +71,6 @@ ifeq ($(DUMP),)
$$(INFO_$(1)): $$(IPKG_$(1))
$(IPKG) install $$(IPKG_$(1))
- $(STAGING_DIR)/etc/ipkg.conf:
- mkdir -p $(STAGING_DIR)/etc
- echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf
- echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf
-
$(1)-clean:
rm -f $(PACKAGE_DIR)/$(1)_*
@@ -88,4 +83,10 @@ ifeq ($(DUMP),)
$$(eval $$(call Build/DefaultTargets,$(1)))
endef
+
+ $(STAGING_DIR)/etc/ipkg.conf:
+ mkdir -p $(STAGING_DIR)/etc
+ echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf
+ echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf
+
endif