UBUNTU: [Packaging] migrate-annotations: properly determine arches in derivatives
Source debian.<kernel>/etc/kernelconfig instead of parsing it to properly determine the list of supported architectures (this can fix potential issues with derivatives). Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
724a43f531
commit
0cc14502ba
+3
-1
@@ -8,7 +8,9 @@ if [ ! -f MAINTAINERS ] || [ ! -f Makefile ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ARCH=$(sed -ne 's/^archs="\(.*\)"/\1/p' ${DEBIAN}/etc/kernelconfig | tr " " "\n" | sort -u)
|
||||
. ${DEBIAN}/etc/kernelconfig
|
||||
|
||||
ARCH=$(echo $archs | tr " " "\n" | sort -u)
|
||||
FLAVOUR=$(for arch in ${ARCH}; do
|
||||
flavours=$(sed -ne 's/^flavours\s*=\s*\(.*\)$/\1/p' ${DEBIAN}/rules.d/${arch}.mk)
|
||||
for flavour in ${flavours}; do
|
||||
|
||||
Reference in New Issue
Block a user