[coreboot] [commit] r6605 - trunk

repository service svn at coreboot.org
Sat May 21 01:08:12 CEST 2011


Author: oxygene
Date: Sat May 21 01:08:12 2011
New Revision: 6605
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6605

Log:
Handle both cases, obj being absolute and relative

gnu make's handling of filenames is less than optimal. It simply
compares strings, so foo/../bar is different from bar, even though
they're logically the same.

Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
Acked-by: Patrick Georgi <patrick at georgi-clan.de>

Modified:
   trunk/Makefile.inc

Modified: trunk/Makefile.inc
==============================================================================
--- trunk/Makefile.inc	Sat May 21 00:17:58 2011	(r6604)
+++ trunk/Makefile.inc	Sat May 21 01:08:12 2011	(r6605)
@@ -179,7 +179,7 @@
 	@printf "    HOSTCC     $(subst $(objutil)/,,$(@))\n"
 	$(HOSTCC) -MMD -I$(subst $(objutil)/,util/,$(dir $<)) -I$(dir $<) $(HOSTCFLAGS) -c -o $@ $<
 
-$(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
+$(obj)/%.ramstage.o $(abspath $(obj))/%.ramstage.o: $(obj)/%.c $(obj)/config.h $(OPTION_TABLE_H)
 	@printf "    CC         $(subst $(obj)/,,$(@))\n"
 	$(CC) -MMD $(CFLAGS) -c -o $@ $<
 




More information about the coreboot mailing list