16 lines
477 B
Diff
16 lines
477 B
Diff
diff --git a/Makefile b/Makefile
|
|
index b37d0e8..fc1b1b5 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -388,7 +388,9 @@ KCONFIG_CONFIG ?= .config
|
|
export KCONFIG_CONFIG
|
|
|
|
# SHELL used by kbuild
|
|
-CONFIG_SHELL := sh
|
|
+CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
|
+ else if [ -x /bin/bash ]; then echo /bin/bash; \
|
|
+ else echo sh; fi ; fi)
|
|
|
|
HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null)
|
|
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null)
|