UBUNTU: [Packaging] kernelconfig: always complete all config checks
Do not exit immediately at the first config-check failure, make sure all arches and flavour are checked and then reports all the failures. Also clean up a little bit the genconfigs code. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
bc64df149d
commit
b0712d8ece
Vendored
+3
-5
@@ -14,7 +14,7 @@ genconfigs=0
|
||||
case "$mode" in
|
||||
update*configs) mode='syncconfig' ;;
|
||||
default*configs) mode='oldconfig'; yes=1 ;;
|
||||
gen*configs) mode='genconfigs' ;;
|
||||
gen*configs) mode='genconfigs'; genconfigs=1 ;;
|
||||
*) echo "$0 called with invalid mode" 1>&2
|
||||
exit 1 ;;
|
||||
esac
|
||||
@@ -37,8 +37,7 @@ fi
|
||||
bindir="`pwd`/${DROOT}/scripts/misc"
|
||||
tmpdir=`mktemp -d`
|
||||
|
||||
if [ "$mode" = "genconfigs" ]; then
|
||||
genconfigs=1
|
||||
if [ "$genconfigs" == "1" ]; then
|
||||
mode="oldconfig"
|
||||
fi
|
||||
|
||||
@@ -120,8 +119,7 @@ for flavour in ${FLAVOURS}; do
|
||||
conf_file=${arch}-config.flavour.${flavour}
|
||||
|
||||
echo "Running config-check for ${arch}-${flavour}"
|
||||
python3 ${bindir}/annotations -f ${confdir}/annotations --arch ${arch} --flavour ${flavour} --check ${tmpdir}/${conf_file}
|
||||
[ ${PIPESTATUS[0]} -ne 0 ] && let "fail=$fail+1"
|
||||
python3 ${bindir}/annotations -f ${confdir}/annotations --arch ${arch} --flavour ${flavour} --check ${tmpdir}/${conf_file} || let "fail=$fail+1"
|
||||
done
|
||||
|
||||
rc=0
|
||||
|
||||
Reference in New Issue
Block a user