config: use /bin/dash as CONFIG_SHELL if it's installed on the build host

This speeds up autotools configure and libtool quite a lot.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2024-07-11 11:26:07 +02:00
parent f76b450698
commit 8d65b09ee3
2 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,11 @@ if [ "${OEM}" = "yes" -o "${OEM}" = "no" ]; then
OEM_SUPPORT="${OEM}"
fi
# use /bin/dash as config shell if installed on the build host
if [ -z "${CONFIG_SHELL}" ] && [ -x "/bin/dash" ]; then
export CONFIG_SHELL="/bin/dash"
fi
check_config
. config/graphic

View File

@ -39,6 +39,7 @@ show_config() {
config_message+="\n - CFLAGS:\t\t\t\t ${TARGET_CFLAGS}"
config_message+="\n - LDFLAGS:\t\t\t\t $(sed 's/^ *//' <<< ${TARGET_LDFLAGS})"
config_message+="\n - Local Ccache:\t\t\t ${LOCAL_CCACHE:-no}"
config_message+="\n - CONFIG_SHELL:\t\t\t ${CONFIG_SHELL:-auto}"
# Misc. hardware configuration