On 4/19/10 11:59 AM, Patrick Georgi wrote:
--- Makefile (revision 5455) +++ Makefile (working copy) @@ -155,6 +155,10 @@ mkdir -p $(obj)/mainboard/$(MAINBOARDDIR) $(objutil)/sconfig/sconfig $(MAINBOARDDIR) $(obj)/mainboard/$(MAINBOARDDIR)
+$(obj)/%.o: $(obj)/%.c $(obj)/config.h
printf " CC $(subst $(obj)/,,$(@))\n"
$(CC) -MMD $(CFLAGS) -c -o $@ $<
objs:=$(obj)/mainboard/$(MAINBOARDDIR)/static.o initobjs:= drivers:=
This hunk breaks compiling sconfig on my system. Changing it to the following fixes it again:
Index: Makefile =================================================================== --- Makefile (revision 5455) +++ Makefile (working copy) @@ -356,11 +356,20 @@ ifeq ($(_OS),CYGWIN_) STACK=-Wl,--stack,16384000 endif + $(objutil)/romcc/romcc: $(top)/util/romcc/romcc.c @printf " HOSTCC $(subst $(obj)/,,$(@)) (this may take a while)\n" @# Note: Adding -O2 here might cause problems. For details see: @# http://www.coreboot.org/pipermail/coreboot/2010-February/055825.html $(HOSTCC) -g $(STACK) -Wall -o $@ $<
+$(obj)/%.o: $(obj)/%.c $(obj)/config.h + printf " CC $(subst $(obj)/,,$(@))\n" + $(CC) -MMD $(CFLAGS) -c -o $@ $< + +$(obj)/util/%.o: $(obj)/util/%.c $(obj)/config.h + printf " HOSTCC $(subst $(obj)/,,$(@))\n" + $(HOSTCC) -MMD $(HOSTCFLAGS) -c -o $@ $< + .PHONY: $(PHONY) prepare clean distclean doxygen doxy coreboot .xcompile