[coreboot] r3242 - trunk/coreboot-v2/targets

svn at coreboot.org svn at coreboot.org
Fri Apr 18 22:47:11 CEST 2008


Author: eswierk
Date: 2008-04-18 22:47:11 +0200 (Fri, 18 Apr 2008)
New Revision: 3242

Modified:
   trunk/coreboot-v2/targets/buildtarget
Log:
Alter buildtarget to invoke the cross-compiler when
checking for --build-id, if the user has specified one by setting CC
in the environment; there's no point in checking the native linker in
this case.

Signed-off-by: Ed Swierk <eswierk at arastra.com>
Acked-by: Ronald G. Minnich <rminnich at gmail.com>



Modified: trunk/coreboot-v2/targets/buildtarget
===================================================================
--- trunk/coreboot-v2/targets/buildtarget	2008-04-16 00:46:08 UTC (rev 3241)
+++ trunk/coreboot-v2/targets/buildtarget	2008-04-18 20:47:11 UTC (rev 3242)
@@ -69,7 +69,7 @@
 
 rm -rf .$$.tmp
 
-ld --help | awk '{for (i=1;i<=NF;i++) if ($i ~ /build-id/){n++} }; END {exit n}' 
+$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
 	EXTRA_LFLAGS="$EXTRA_LFLAGS -Wl,--build-id=none"





More information about the coreboot mailing list