summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openwrt/rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/rules.mk b/openwrt/rules.mk
index 681d4f9b1..4218bbf1b 100644
--- a/openwrt/rules.mk
+++ b/openwrt/rules.mk
@@ -112,7 +112,8 @@ endif
# invoke ipkg with configuration in $(STAGING_DIR)/etc/ipkg.conf
-IPKG := PATH="$(TARGET_PATH)" IPKG_CONF_DIR=$(STAGING_DIR)/etc ipkg -force-depends
+IPKG := IPKG_CONF_DIR=$(STAGING_DIR)/etc $(TARGET_DIR)/bin/ipkg -force-defaults -force-depends
+IPKG_STATE_DIR := $(TARGET_DIR)/usr/lib/ipkg
# invoke ipkg-build with some default options
IPKG_BUILD := PATH="$(TARGET_PATH)" ipkg-build -c -o root -g root