From 379c1b856e842d8fd72d5e0c884fc01dfedac992 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Wed, 4 Sep 2019 10:13:24 -0700 Subject: [PATCH] scripts: Consider env variables while running 'make' The scripts, gki/generate_defconfig.sh and kconfig/merge_config.sh doesn't consider the host exported environment variables (such as HOSTCC) while running 'make'. This is particularly needed in the Android build environment as it uses the compiler, linker, and other utilities from a pre-builts' path, rather than depending on the host tools. Hence, pass the environment variables explicitly. Change-Id: I082c0c05be5f4266fc647e3c1ebef8302e1a433a Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Neeraj Upadhyay --- scripts/kconfig/merge_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 67d131447631..b5115c6b22f6 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh @@ -151,7 +151,7 @@ fi # Use the merged file as the starting point for: # alldefconfig: Fills in any missing symbols with Kconfig default # allnoconfig: Fills in any missing symbols with # CONFIG_* is not set -make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET +make $MAKE_ARGS KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET # Check all specified config values took (might have missed-dependency issues)