diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-06 02:15:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-06 02:15:46 +0000 |
commit | 9d74fc3eb3c7c5c4f1d3db3271d59e733297c72f (patch) | |
tree | 58c2ecfcf581142d180cb94bbd63a47cb6507d36 /include | |
parent | 5949f33b0699843fcfa39b9603bb6b96ec585d66 (diff) | |
download | mtk-20170518-9d74fc3eb3c7c5c4f1d3db3271d59e733297c72f.zip mtk-20170518-9d74fc3eb3c7c5c4f1d3db3271d59e733297c72f.tar.gz mtk-20170518-9d74fc3eb3c7c5c4f1d3db3271d59e733297c72f.tar.bz2 |
use opkg/host for package installation - speeds up rebuild operations - aligns generated package list format with the one created by opkg on the target - fixes broken dependency handling in imagebuilder
SVN-Revision: 22949
Diffstat (limited to 'include')
-rw-r--r-- | include/package-ipkg.mk | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 34e4091..ef0720d 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -6,12 +6,15 @@ # # where to build (and put) .ipk packages -IPKG:= \ +OPKG:= \ IPKG_TMP=$(TMP_DIR)/ipkg \ IPKG_INSTROOT=$(TARGET_DIR) \ IPKG_CONF_DIR=$(STAGING_DIR)/etc \ IPKG_OFFLINE_ROOT=$(TARGET_DIR) \ - $(SCRIPT_DIR)/ipkg -force-defaults -force-depends + $(STAGING_DIR_HOST)/bin/opkg \ + -f $(STAGING_DIR)/etc/opkg.conf \ + --force-depends \ + --force-overwrite # invoke ipkg-build with some default options IPKG_BUILD:= \ @@ -76,7 +79,7 @@ ifeq ($(DUMP),) rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) touch $$@ - $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT) + $$(IPKG_$(1)): $(STAGING_DIR)/etc/opkg.conf $(STAMP_BUILT) @rm -rf $(PACKAGE_DIR)/$(1)_* $$(IDIR_$(1)) mkdir -p $(PACKAGE_DIR) $$(IDIR_$(1))/CONTROL $(call Package/$(1)/install,$$(IDIR_$(1))) @@ -108,7 +111,8 @@ ifeq ($(DUMP),) @[ -f $$(IPKG_$(1)) ] $$(INFO_$(1)): $$(IPKG_$(1)) - $(IPKG) install $$(IPKG_$(1)) + @[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp + $(OPKG) install $$(IPKG_$(1)) $(1)-clean: rm -f $(PACKAGE_DIR)/$(1)_* @@ -117,9 +121,11 @@ ifeq ($(DUMP),) endef - $(STAGING_DIR)/etc/ipkg.conf: + $(STAGING_DIR)/etc/opkg.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 + ( echo "dest root /" > $@; \ + echo "arch all 100" >> $@; \ + echo "arch $(PKGARCH) 200" >> $@; \ + echo "option offline_root $(TARGET_DIR)" >> $@ ) endif |