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@bit63.org> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3102 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
9792a034e4
commit
46fc14dcc8
|
@ -32,12 +32,14 @@ all: pciutils dep $(PROGRAM)
|
||||||
# of the checked out flashrom files.
|
# of the checked out flashrom files.
|
||||||
SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
|
SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
|
||||||
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
|
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
|
||||||
CFLAGS += $(SVNDEF)
|
|
||||||
|
|
||||||
$(PROGRAM): $(OBJS)
|
$(PROGRAM): $(OBJS)
|
||||||
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||||
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||||
|
|
||||||
|
flashrom.o: flashrom.c
|
||||||
|
$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *~
|
rm -f *.o *~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue