build.config: Treat conf warnings as warnings
When installing the saved defconfig, warnings may appear about a) unexpected/invalid settings for symbols and b) repeated definitions of a symbol. These messages should be treated as an error. Change-Id: I672c4af100e97c52228344a232eb1db2002738b3 Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
parent
972fabeda6
commit
a15e19d7f0
@ -73,7 +73,16 @@ function merge_defconfig_fragments() {
|
||||
rm $output
|
||||
exit 1
|
||||
fi
|
||||
rm $output
|
||||
local temp_config=$(mktemp)
|
||||
(cd ${KERNEL_DIR} && KCONFIG_CONFIG=${temp_config} make "${TOOL_ARGS[@]}" O=${OUT_DIR} ${MAKE_ARGS} ${DEFCONFIG}) 2>&1 | tee $output
|
||||
if grep -q -e "warning:" $output; then
|
||||
echo "========================================================"
|
||||
echo "ERROR! Treating config warnings as errors"
|
||||
grep -e "warning" $output >&2
|
||||
rm $output $temp_config
|
||||
exit 1
|
||||
fi
|
||||
rm $output $temp_config
|
||||
set -x
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user