[coreboot] patch: avoid libpayload recursing

ron minnich rminnich at gmail.com
Mon Feb 16 00:21:06 CET 2009


This is a safety measure, since the shipping buildrom fails badly at present.

Signed-off-by: Ronald G. Minnich <rminnich at gmail.com>

Index: bin/lpgcc
===================================================================
--- bin/lpgcc   (revision 3945)
+++ bin/lpgcc   (working copy)
@@ -27,7 +27,16 @@
 ## SUCH DAMAGE.

 # GCC wrapper for libpayload
+# let's not recurse.
+# This is a hack, I know, but it makes sure that really simple user errors
+# don't fork-bomb your machine.
+b=`basename $CC`
+if [ "$b" = "lpgcc" ]; then
+CC=""
+fi

+
+
 if [ "$CC" != "" ]; then
 DEFAULT_CC=$CC
 else




More information about the coreboot mailing list