kernel: use /bin/sh instead of bash to speed up processing of many kmod-* packages
authorFelix Fietkau <nbd@openwrt.org>
Wed, 22 Oct 2014 08:57:45 +0000 (08:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 22 Oct 2014 08:57:45 +0000 (08:57 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43022

include/package-ipkg.mk
package/kernel/linux/Makefile

index e3bfe6bf7abf087ba60051ef857aa566598fd961..b8c8cd6f99cc9938fae2fdc72b37b6d3f0fd3d3d 100644 (file)
@@ -9,7 +9,7 @@ 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
 
@@ -185,7 +185,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; \
                ( \
index e10e99c51e3ad320f6052707b5c3c5b8aadf993a..6fb6851b9260d7428e108ca8f6b999a4a1311ded 100644 (file)
@@ -17,6 +17,8 @@ SCAN_DEPS=modules/*.mk $(TOPDIR)/target/linux/*/modules.mk
 PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=
 
+export SHELL:=/bin/sh
+
 include $(INCLUDE_DIR)/package.mk
 
 STAMP_BUILT:=$(STAMP_BUILT)_$(firstword $(shell $(SCRIPT_DIR)/kconfig.pl $(LINUX_DIR)/.config | md5sum))