X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fpackage-ipkg.mk;h=b7dc0ad1e8071e50f7a83e6db8a67c275f65b186;hb=c39132e506e1b044fe9f222392b09b3c6257c45f;hp=e3bfe6bf7abf087ba60051ef857aa566598fd961;hpb=e5526a9fdce195591e99b61b29151dc0e197a7a0;p=openwrt.git diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index e3bfe6bf7a..b7dc0ad1e8 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -9,14 +9,18 @@ include $(INCLUDE_DIR)/feeds.mk # invoke ipkg-build with some default options IPKG_BUILD:= \ - ipkg-build -c -o 0 -g 0 + $(STAGING_DIR_HOST)/bin/ipkg-build -c -o 0 -g 0 IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/opkg +# 1: package name +# 2: variable name +# 3: variable suffix define BuildIPKGVariable ifdef Package/$(1)/$(2) $$(IPKG_$(1)) : VAR_$(2)$(3)=$$(Package/$(1)/$(2)) - $(1)_COMMANDS += echo "$$$$$(2)$(3)" > $(2)$(3); + $(call shexport,Package/$(1)/$(2)) + $(1)_COMMANDS += echo "$$$$$$$$$(call shvar,Package/$(1)/$(2))" > $(2)$(3); endif endef @@ -62,7 +66,7 @@ ifneq ($(PKG_NAME),toolchain) XARGS="$(XARGS)"; \ $(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \ ) | while read FILE; do \ - grep -q "$$$$FILE" $(PKG_INFO_DIR)/$(1).provides || \ + grep -qxF "$$$$FILE" $(PKG_INFO_DIR)/$(1).provides || \ echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \ done; \ if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \ @@ -109,7 +113,7 @@ ifeq ($(DUMP),) echo "$(1)" >> $(PKG_INSTALL_STAMP) endif else - $$(info WARNING: skipping $(1) -- package not selected) + $(if $(CONFIG_PACKAGE_$(1)),$$(info WARNING: skipping $(1) -- package not selected)) endif endif endif @@ -185,7 +189,7 @@ $(_endef) (cd $$(IDIR_$(1))/CONTROL; \ ( \ echo "$$$$CONTROL"; \ - echo -n "Description: "; echo "$$$$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; \ + printf "Description: "; echo "$$$$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; \ ) > control; \ chmod 644 control; \ ( \