summaryrefslogtreecommitdiff
path: root/target/sdk/files/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-14 00:33:25 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-14 00:33:25 +0000
commit7a694d4e5f8054d5c4b05fbed69fb1a38f387e29 (patch)
tree4c6520daf312b09c3d797d2e2d73ed5aeb3e474b /target/sdk/files/package
parent9a371dce303c472a82fff666857a48a1022d16ec (diff)
fix the sdk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/sdk/files/package')
-rw-r--r--target/sdk/files/package/rules.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/target/sdk/files/package/rules.mk b/target/sdk/files/package/rules.mk
index 43bdcc8709..7adb2e3797 100644
--- a/target/sdk/files/package/rules.mk
+++ b/target/sdk/files/package/rules.mk
@@ -1,7 +1,13 @@
# 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 := IPKG_INSTROOT=$(TARGET_DIR) IPKG_CONF_DIR=$(STAGING_DIR)/etc $(SCRIPT_DIR)/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 := $(PACKAGE_DIR)
+
ifneq ($(DUMP),)
dump:
.PHONY: dump
@@ -15,7 +21,7 @@ INFO_$(1):=$(IPKG_STATE_DIR)/info/$(2).list
ifneq ($(BR2_PACKAGE_$(1)),)
compile-targets: $$(IPKG_$(1))
endif
-ifneq ($(DEVELOPER),)
+ifneq ($(DEVELOPER)$(SDK),)
compile-targets: $$(IPKG_$(1))
endif
ifeq ($(BR2_PACKAGE_$(1)),y)