|
@@ -33,6 +33,7 @@ usage() {
|
|
echo " -n use allnoconfig instead of alldefconfig"
|
|
echo " -n use allnoconfig instead of alldefconfig"
|
|
echo " -r list redundant entries when merging fragments"
|
|
echo " -r list redundant entries when merging fragments"
|
|
echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead."
|
|
echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead."
|
|
|
|
+ echo " -e colon-separated list of br2-external trees to use (optional)"
|
|
}
|
|
}
|
|
|
|
|
|
RUNMAKE=true
|
|
RUNMAKE=true
|
|
@@ -71,6 +72,11 @@ while true; do
|
|
shift 2
|
|
shift 2
|
|
continue
|
|
continue
|
|
;;
|
|
;;
|
|
|
|
+ "-e")
|
|
|
|
+ EXTERNAL_ARG="BR2_EXTERNAL=$2"
|
|
|
|
+ shift 2
|
|
|
|
+ continue
|
|
|
|
+ ;;
|
|
*)
|
|
*)
|
|
break
|
|
break
|
|
;;
|
|
;;
|
|
@@ -100,7 +106,7 @@ fi
|
|
|
|
|
|
MERGE_LIST=$*
|
|
MERGE_LIST=$*
|
|
SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p"
|
|
SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p"
|
|
-TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX)
|
|
|
|
|
|
+TMP_FILE=$(mktemp -t .tmp.config.XXXXXXXXXX)
|
|
|
|
|
|
echo "Using $INITFILE as base"
|
|
echo "Using $INITFILE as base"
|
|
cat $INITFILE > $TMP_FILE
|
|
cat $INITFILE > $TMP_FILE
|
|
@@ -151,7 +157,7 @@ fi
|
|
# Use the merged file as the starting point for:
|
|
# Use the merged file as the starting point for:
|
|
# alldefconfig: Fills in any missing symbols with Kconfig default
|
|
# alldefconfig: Fills in any missing symbols with Kconfig default
|
|
# allnoconfig: Fills in any missing symbols with # CONFIG_* is not set
|
|
# allnoconfig: Fills in any missing symbols with # CONFIG_* is not set
|
|
-make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET
|
|
|
|
|
|
+make KCONFIG_ALLCONFIG=$TMP_FILE $EXTERNAL_ARG $OUTPUT_ARG $ALLTARGET
|
|
|
|
|
|
|
|
|
|
# Check all specified config values took (might have missed-dependency issues)
|
|
# Check all specified config values took (might have missed-dependency issues)
|