summaryrefslogtreecommitdiffstats
path: root/openwrt/package/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/rules.mk')
-rw-r--r--openwrt/package/rules.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk
index a95c4e421..f7b81c62a 100644
--- a/openwrt/package/rules.mk
+++ b/openwrt/package/rules.mk
@@ -1,3 +1,7 @@
+# invoke ipkg with configuration in $(STAGING_DIR)/etc/ipkg.conf
+IPKG := IPKG_INSTROOT=$(TARGET_DIR) IPKG_CONF_DIR=$(IPKG_CONF) $(SCRIPT_DIR)/ipkg -force-defaults -force-depends
+IPKG_STATE_DIR := $(TARGET_DIR)/usr/lib/ipkg
+
define PKG_template
IPKG_$(1):=$(PACKAGE_DIR)/$(2)_$(3)_$(4).ipk
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg/$(2)