summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-12 02:45:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-12 02:45:13 +0000
commit864ae8f613bccace04681bc03b05d0c6d8bf02c9 (patch)
treec6832d9eac8ef9123c33877360f8f9a6f505e1c1 /toolchain
parenta264975480c62b0d4177625a24cbab0111a51c97 (diff)
downloadmtk-20170518-864ae8f613bccace04681bc03b05d0c6d8bf02c9.zip
mtk-20170518-864ae8f613bccace04681bc03b05d0c6d8bf02c9.tar.gz
mtk-20170518-864ae8f613bccace04681bc03b05d0c6d8bf02c9.tar.bz2
more shell related fixes
SVN-Revision: 5509
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile12
-rw-r--r--toolchain/kernel-headers/Makefile2
2 files changed, 7 insertions, 7 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 7ef6005..af06e8a 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -45,11 +45,10 @@ include $(INCLUDE_DIR)/host-build.mk
BUILD_DIR1:=$(TOOLCHAIN_BUILD_DIR)/gcc-$(PKG_VERSION)-initial
BUILD_DIR2:=$(TOOLCHAIN_BUILD_DIR)/gcc-$(PKG_VERSION)-final
-override SHELL:=$(BASH)
-
define Stage1/Configure
mkdir -p $(BUILD_DIR1)
(cd $(BUILD_DIR1); rm -f config.cache; \
+ SHELL="$(BASH)" \
$(PKG_BUILD_DIR)/configure \
--prefix=$(STAGING_DIR) \
--build=$(GNU_HOST_NAME) \
@@ -65,10 +64,10 @@ define Stage1/Configure
);
endef
define Stage1/Compile
- $(MAKE) -C $(BUILD_DIR1) all-gcc
+ $(MAKE) -C $(BUILD_DIR1) all-gcc SHELL="$(BASH)"
endef
define Stage1/Install
- $(MAKE) -C $(BUILD_DIR1) install-gcc
+ $(MAKE) -C $(BUILD_DIR1) install-gcc SHELL="$(BASH)"
endef
define Stage2/Configure
@@ -79,6 +78,7 @@ define Stage2/Configure
rm -rf $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib
ln -sf ../lib $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib
(cd $(BUILD_DIR2); rm -f config.cache; \
+ SHELL="$(BASH)" \
$(PKG_BUILD_DIR)/configure \
--prefix=$(STAGING_DIR) \
--build=$(GNU_HOST_NAME) \
@@ -93,10 +93,10 @@ define Stage2/Configure
);
endef
define Stage2/Compile
- $(MAKE) -C $(BUILD_DIR2) all
+ $(MAKE) -C $(BUILD_DIR2) all SHELL="$(BASH)"
endef
define Stage2/Install
- $(MAKE) -C $(BUILD_DIR2) install
+ $(MAKE) -C $(BUILD_DIR2) install SHELL="$(BASH)"
echo $(PKG_VERSION) > $(STAGING_DIR)/gcc_version
# Set up the symlinks to enable lying about target name.
set -e; \
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 21f56ea..05ee49b 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -29,7 +29,7 @@ define Build/Configure
-$(CP) ./files/config.$(LINUX_KARCH) $(PKG_BUILD_DIR)/.config
$(MAKE) -C $(PKG_BUILD_DIR) \
ARCH=$(LINUX_KARCH) \
- CONFIG_SHELL=$(shell which bash) \
+ CONFIG_SHELL=$(BASH) \
defconfig include/linux/version.h
endef