[coreboot] r3102 - trunk/util/flashrom

svn at coreboot.org svn at coreboot.org
Fri Feb 15 00:22:21 CET 2008

Author: uwe
Date: 2008-02-15 00:22:20 +0100 (Fri, 15 Feb 2008)
New Revision: 3102

With this small change it is possible to build flashrom again when
specifying custom CFLAGS/LDFLAGS from the make command line like:

  make CFLAGS="..." LDFLAGS="..."

I need to do this when building flashrom in a cross compiler environment
like buildroot for a foreign target.

Signed-off-by: Clark Rawlins <clark at bit63.org>
Acked-by: Ronald G. Minnich <rminnich at gmail.com>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>

Modified: trunk/util/flashrom/Makefile
--- trunk/util/flashrom/Makefile	2008-02-11 14:32:45 UTC (rev 3101)
+++ trunk/util/flashrom/Makefile	2008-02-14 23:22:20 UTC (rev 3102)
@@ -32,12 +32,14 @@
 # of the checked out flashrom files.
 SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
           | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
 	$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
+flashrom.o: flashrom.c
+	$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
 	rm -f *.o *~

More information about the coreboot mailing list