[coreboot] [PATCH]Fix abuild -sb
Stefan Reinauer
stepan at coresystems.de
Mon Apr 19 15:08:30 CEST 2010
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
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
More information about the coreboot
mailing list