summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-22 08:57:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-22 08:57:45 +0000
commitd8278dee4db4f9267be75fd56aa7187d062106bd (patch)
tree17f3ce4c237a0c05dc3a465b06c43bd880c02916
parentc4979908344bc5d49e6b8ebef003b3c32d6bd284 (diff)
downloadmtk-20170518-d8278dee4db4f9267be75fd56aa7187d062106bd.zip
mtk-20170518-d8278dee4db4f9267be75fd56aa7187d062106bd.tar.gz
mtk-20170518-d8278dee4db4f9267be75fd56aa7187d062106bd.tar.bz2
kernel: use /bin/sh instead of bash to speed up processing of many kmod-* packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43022
-rw-r--r--include/package-ipkg.mk4
-rw-r--r--package/kernel/linux/Makefile2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index e3bfe6b..b8c8cd6 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -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; \
( \
diff --git a/package/kernel/linux/Makefile b/package/kernel/linux/Makefile
index e10e99c..6fb6851 100644
--- a/package/kernel/linux/Makefile
+++ b/package/kernel/linux/Makefile
@@ -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))