- Make abuild -sb work again
- More explicit rules for obj/%.c->obj/%.o builds - Hide printf even with verbose make Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5456 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
97dbf69106
commit
1cd76e77bf
10
Makefile
10
Makefile
|
@ -155,6 +155,14 @@ $(obj)/mainboard/$(MAINBOARDDIR)/static.c: $(src)/mainboard/$(MAINBOARDDIR)/devi
|
||||||
mkdir -p $(obj)/mainboard/$(MAINBOARDDIR)
|
mkdir -p $(obj)/mainboard/$(MAINBOARDDIR)
|
||||||
$(objutil)/sconfig/sconfig $(MAINBOARDDIR) $(obj)/mainboard/$(MAINBOARDDIR)
|
$(objutil)/sconfig/sconfig $(MAINBOARDDIR) $(obj)/mainboard/$(MAINBOARDDIR)
|
||||||
|
|
||||||
|
$(objutil)/%.o: $(objutil)/%.c $(obj)/config.h
|
||||||
|
@printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
|
||||||
|
$(HOSTCC) -MMD $(HOSTCFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
$(obj)/%.o: $(obj)/%.c $(obj)/config.h
|
||||||
|
@printf " CC $(subst $(obj)/,,$(@))\n"
|
||||||
|
$(CC) -MMD $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
objs:=$(obj)/mainboard/$(MAINBOARDDIR)/static.o
|
objs:=$(obj)/mainboard/$(MAINBOARDDIR)/static.o
|
||||||
initobjs:=
|
initobjs:=
|
||||||
drivers:=
|
drivers:=
|
||||||
|
@ -215,7 +223,7 @@ define create_cc_template
|
||||||
# $4 additional compiler flags
|
# $4 additional compiler flags
|
||||||
de$(EMPTY)fine $(1)_$(2)_template
|
de$(EMPTY)fine $(1)_$(2)_template
|
||||||
$(obj)/$$(1)%$(3).o: src/$$(1)%.$(2) $(obj)/config.h
|
$(obj)/$$(1)%$(3).o: src/$$(1)%.$(2) $(obj)/config.h
|
||||||
printf " CC $$$$(subst $$$$(obj)/,,$$$$(@))\n"
|
@printf " CC $$$$(subst $$$$(obj)/,,$$$$(@))\n"
|
||||||
$(CC) $(4) -MMD $$$$(CFLAGS) -c -o $$$$@ $$$$<
|
$(CC) $(4) -MMD $$$$(CFLAGS) -c -o $$$$@ $$$$<
|
||||||
en$(EMPTY)def
|
en$(EMPTY)def
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -27,7 +27,7 @@ COREBOOT_ROM_DEPENDENCIES+=$(obj)/coreboot_ap
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call strip_quotes,$(COREBOOT_ROM_DEPENDENCIES))
|
$(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call strip_quotes,$(COREBOOT_ROM_DEPENDENCIES))
|
||||||
printf " CBFS $(subst $(obj)/,,$(@))\n"
|
@printf " CBFS $(subst $(obj)/,,$(@))\n"
|
||||||
cp $(obj)/coreboot.pre $@.tmp
|
cp $(obj)/coreboot.pre $@.tmp
|
||||||
if [ -f $(obj)/coreboot_ap ]; \
|
if [ -f $(obj)/coreboot_ap ]; \
|
||||||
then \
|
then \
|
||||||
|
@ -35,25 +35,25 @@ $(obj)/coreboot.rom: $(obj)/coreboot.pre $(obj)/coreboot_ram $(CBFSTOOL) $(call
|
||||||
fi
|
fi
|
||||||
$(CBFSTOOL) $@.tmp add-stage $(obj)/coreboot_ram $(CONFIG_CBFS_PREFIX)/coreboot_ram $(CBFS_COMPRESS_FLAG)
|
$(CBFSTOOL) $@.tmp add-stage $(obj)/coreboot_ram $(CONFIG_CBFS_PREFIX)/coreboot_ram $(CBFS_COMPRESS_FLAG)
|
||||||
ifeq ($(CONFIG_PAYLOAD_NONE),y)
|
ifeq ($(CONFIG_PAYLOAD_NONE),y)
|
||||||
printf " PAYLOAD \e[1;31mnone (as specified by user)\e[0m\n"
|
@printf " PAYLOAD \e[1;31mnone (as specified by user)\e[0m\n"
|
||||||
else
|
else
|
||||||
printf " PAYLOAD $(CONFIG_FALLBACK_PAYLOAD_FILE) (compression: $(CBFS_PAYLOAD_COMPRESS_NAME))\n"
|
@printf " PAYLOAD $(CONFIG_FALLBACK_PAYLOAD_FILE) (compression: $(CBFS_PAYLOAD_COMPRESS_NAME))\n"
|
||||||
$(CBFSTOOL) $@.tmp add-payload $(CONFIG_FALLBACK_PAYLOAD_FILE) $(CONFIG_CBFS_PREFIX)/payload $(CBFS_PAYLOAD_COMPRESS_FLAG)
|
$(CBFSTOOL) $@.tmp add-payload $(CONFIG_FALLBACK_PAYLOAD_FILE) $(CONFIG_CBFS_PREFIX)/payload $(CBFS_PAYLOAD_COMPRESS_FLAG)
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_VGA_BIOS),y)
|
ifeq ($(CONFIG_VGA_BIOS),y)
|
||||||
printf " VGABIOS $(CONFIG_FALLBACK_VGA_BIOS_FILE) $(CONFIG_FALLBACK_VGA_BIOS_ID)\n"
|
@printf " VGABIOS $(CONFIG_FALLBACK_VGA_BIOS_FILE) $(CONFIG_FALLBACK_VGA_BIOS_ID)\n"
|
||||||
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_VGA_BIOS_FILE) "pci$(CONFIG_FALLBACK_VGA_BIOS_ID).rom" optionrom
|
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_VGA_BIOS_FILE) "pci$(CONFIG_FALLBACK_VGA_BIOS_ID).rom" optionrom
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_INTEL_MBI),y)
|
ifeq ($(CONFIG_INTEL_MBI),y)
|
||||||
printf " MBI $(CONFIG_FALLBACK_MBI_FILE)\n"
|
@printf " MBI $(CONFIG_FALLBACK_MBI_FILE)\n"
|
||||||
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_MBI_FILE) mbi.bin mbi
|
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_MBI_FILE) mbi.bin mbi
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_BOOTSPLASH),y)
|
ifeq ($(CONFIG_BOOTSPLASH),y)
|
||||||
printf " BOOTSPLASH $(CONFIG_FALLBACK_BOOTSPLASH_FILE)\n"
|
@printf " BOOTSPLASH $(CONFIG_FALLBACK_BOOTSPLASH_FILE)\n"
|
||||||
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_BOOTSPLASH_FILE) bootsplash.jpg bootsplash
|
$(CBFSTOOL) $@.tmp add $(CONFIG_FALLBACK_BOOTSPLASH_FILE) bootsplash.jpg bootsplash
|
||||||
endif
|
endif
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
printf " CBFSPRINT $(subst $(obj)/,,$(@))\n\n"
|
@printf " CBFSPRINT $(subst $(obj)/,,$(@))\n\n"
|
||||||
$(CBFSTOOL) $@ print
|
$(CBFSTOOL) $@ print
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
@ -174,11 +174,11 @@ $(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o: $(src)/mainboard/$(MAINBOARDDIR)
|
||||||
$(CC) -MMD $(CFLAGS) -I$(src) -I. -c $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@
|
$(CC) -MMD $(CFLAGS) -I$(src) -I. -c $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@
|
||||||
|
|
||||||
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
|
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
|
||||||
printf " CC romstage.inc\n"
|
@printf " CC romstage.inc\n"
|
||||||
$(CC) -MMD $(CFLAGS) -D__PRE_RAM__ -I$(src) -I. -c -S $< -o $@
|
$(CC) -MMD $(CFLAGS) -D__PRE_RAM__ -I$(src) -I. -c -S $< -o $@
|
||||||
|
|
||||||
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc
|
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc
|
||||||
printf " POST romstage.inc\n"
|
@printf " POST romstage.inc\n"
|
||||||
sed -e 's/\.rodata/.rom.data/g' -e 's/\.text/.section .rom.text/g' $^ > $@.tmp
|
sed -e 's/\.rodata/.rom.data/g' -e 's/\.text/.section .rom.text/g' $^ > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -430,12 +430,15 @@ function build_target
|
||||||
stime=`perl -e 'print time();' 2>/dev/null || date +%s`
|
stime=`perl -e 'print time();' 2>/dev/null || date +%s`
|
||||||
create_buildenv $VENDOR $MAINBOARD $CONFIG
|
create_buildenv $VENDOR $MAINBOARD $CONFIG
|
||||||
if [ $? -eq 0 -a $configureonly -eq 0 ]; then
|
if [ $? -eq 0 -a $configureonly -eq 0 ]; then
|
||||||
|
if [ "$scanbuild" = "true" ]; then
|
||||||
|
rm -rf $TARGET/scan-build-results-tmp
|
||||||
|
fi
|
||||||
compile_target $VENDOR $MAINBOARD &&
|
compile_target $VENDOR $MAINBOARD &&
|
||||||
xml " <status>ok</status>" ||
|
xml " <status>ok</status>" ||
|
||||||
xml "<status>broken</status>"
|
xml "<status>broken</status>"
|
||||||
if [ "$scanbuild" = "true" ]; then
|
if [ "$scanbuild" = "true" ]; then
|
||||||
|
rm -rf $TARGET/${VENDOR}_${MAINBOARD}-scanbuild
|
||||||
mv `dirname $TARGET/scan-build-results-tmp/*/index.html` $TARGET/${VENDOR}_${MAINBOARD}-scanbuild
|
mv `dirname $TARGET/scan-build-results-tmp/*/index.html` $TARGET/${VENDOR}_${MAINBOARD}-scanbuild
|
||||||
MAKE=$origMAKE
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Not calculated here because we still print it in compile_target
|
# Not calculated here because we still print it in compile_target
|
||||||
|
|
Loading…
Reference in New Issue