[coreboot] r3243 - trunk/coreboot-v2/targets
svn at coreboot.org
svn at coreboot.org
Fri Apr 18 22:48:23 CEST 2008
Author: eswierk
Date: 2008-04-18 22:48:22 +0200 (Fri, 18 Apr 2008)
New Revision: 3243
Modified:
trunk/coreboot-v2/targets/buildtarget
Log:
Replace buildtarget's check for --build-id with something
a bit less awkward (pun intended).
Signed-off-by: Ed Swierk <eswierk at arastra.com>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/coreboot-v2/targets/buildtarget
===================================================================
--- trunk/coreboot-v2/targets/buildtarget 2008-04-18 20:47:11 UTC (rev 3242)
+++ trunk/coreboot-v2/targets/buildtarget 2008-04-18 20:48:22 UTC (rev 3243)
@@ -69,9 +69,7 @@
rm -rf .$$.tmp
-$CC -Wl,--help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}'
-build_id=$?
-if [ $build_id -ge 1 ] ; then
+if $CC -Wl,--help | grep -q build-id; then
EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"
fi
More information about the coreboot
mailing list