X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Fpackage-ipkg.mk;h=9eec4f26e948afceb18ddf95c86adbbd6971a49d;hb=d5d1a22de670e4582f45cf137861e2257cc7bdc6;hp=2360ac4d4ecb4ed16dffa6c0d3a28ccf94cebc63;hpb=9de501aa569d331a6342cca5d3d3347dcc4c32d9;p=openwrt.git diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 2360ac4d4e..9eec4f26e9 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -28,8 +28,10 @@ IPKG_BUILD:= \ IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/opkg define BuildIPKGVariable +ifdef Package/$(1)/$(2) $(call shexport,Package/$(1)/$(2)) - $(1)_COMMANDS += $(SH_FUNC) var2file "$(call shvar,Package/$(1)/$(2))" $(2); + $(1)_COMMANDS += var2file "$(call shvar,Package/$(1)/$(2))" $(2); +endif endef PARENL :=( @@ -111,7 +113,7 @@ ifeq ($(DUMP),) echo -n "Description: "; $(SH_FUNC) getvar $(call shvar,Package/$(1)/description) | sed -e 's,^[[:space:]]*, ,g'; \ ) > $$(IDIR_$(1))/CONTROL/control chmod 644 $$(IDIR_$(1))/CONTROL/control - (cd $$(IDIR_$(1))/CONTROL; \ + $(SH_FUNC) (cd $$(IDIR_$(1))/CONTROL; \ $($(1)_COMMANDS) \ ) @@ -121,7 +123,7 @@ ifeq ($(DUMP),) for x in $$(KEEP_$(1)); do \ [ -f "$$(IDIR_$(1))/$$$$x" ] || keepfiles="$$$${keepfiles:+$$$$keepfiles }$$$$x"; \ done; \ - [ -z "$keepfiles" ] || { \ + [ -z "$$$$keepfiles" ] || { \ mkdir -p $$(IDIR_$(1))/lib/upgrade/keep.d; \ for x in $$$$keepfiles; do echo $$$$x >> $$(IDIR_$(1))/lib/upgrade/keep.d/$(1); done; \ }; \