X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/9d30652149fd745711342cec7ee8574e973ec241..a9dfa2640400882b4ac9e23ebc3e756bec44856d:/openwrt/rules.mk diff --git a/openwrt/rules.mk b/openwrt/rules.mk index 681d4f9b1..6e804857f 100644 --- a/openwrt/rules.mk +++ b/openwrt/rules.mk @@ -112,11 +112,12 @@ 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_INSTROOT=$(TARGET_DIR) 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 # where to build (and put) .ipk packages -IPKG_TARGET_DIR := $(BUILD_DIR) +IPKG_TARGET_DIR := $(PACKAGE_DIR)