From: nbd Date: Sun, 3 Apr 2011 02:07:59 +0000 (+0000) Subject: build: do not use shell calls to export empty opkg control files, speeds up package... X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/0ae05aca57a7e3235ea92d373f838665a5bdb58d build: do not use shell calls to export empty opkg control files, speeds up package build and fixes some "Argument list too long" errors Patch by Thomas Langer from #8450 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26431 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 2360ac4d4..9cccff261 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); +endif endef PARENL :=(