aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2011-08-19 12:26:06 +0100
committerJohn Rigby <john.rigby@linaro.org>2011-11-16 14:25:59 -0700
commit3b12dfc3147e0e797431a51a4b6ddc7e58ac61e8 (patch)
treeab375b541b1396700d0cf377711a8b55d12993f6 /debian
parent87bbcb05279a6008b5a95db5d644cf2e53eb63bb (diff)
downloadlinux-linaro-precise-3b12dfc3147e0e797431a51a4b6ddc7e58ac61e8.tar.gz
UBUNTU: record the compiler in the ABI and check for inconsistant builds
When pulling the compiled kernels to extract the ABI information also extract the compiler used for that build. Record the result in the abi directory so it is also recorded historically. Signed-off-by: Andy Whitcroft <apw@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Acked-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/scripts/misc/getabis19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index 2a1fc552819..0556f8ee2dc 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -53,6 +53,20 @@ getall() {
(cd tmp; find lib/modules/$verabi-$sub/kernel -name '*.ko') | \
sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > \
$abidir/$arch/$sub.modules
+ (
+ cd tmp;
+ ko=`find lib/modules/$verabi-$sub/kernel -name '*.ko' | head -1`
+ readelf -p .comment "$ko" | awk '
+ ($1 == "[") {
+ printf("%s", $3);
+ for (n=4; n<=NF; n++) {
+ printf(" %s", $n);
+ }
+ print ""
+ }' | sort -u >$abidir/$arch/$sub.compiler
+ version=`cat $abidir/$arch/$sub.compiler`
+ echo -n "$version..."
+ )
rm -rf tmp $filename
echo "done."
else
@@ -73,4 +87,9 @@ echo $abi > $abidir/abiname
. $DEBIAN/etc/getabis
+compilers=`cat $abidir/*/*.compiler | sort -u | wc -l`
+if [ "$compilers" != 1 ]; then
+ echo "WARNING: inconsistant compiler versions detected" 1>&2
+fi
+
rmdir $tmpdir