build/patch/kernel/archive/sunxi-5.10/general-fix-builddeb-packaging.patch

16 lines
477 B
Diff
Raw Normal View History

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)