Not a single file is being rebuilt in v3 if build.h changes. That means

the console banner and the option table will never be updated with more
recent build.h strings.

Thanks to Mart Raudsepp for spotting this oddness.

x86emu doesn't care about the contents of build.h, it just uses build.h
to check whether it is compiled in conjunction with coreboot.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@1036 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Carl-Daniel Hailfinger 2008-11-16 22:59:52 +00:00
commit 0153293887
7 changed files with 15 additions and 4 deletions

View file

@ -88,8 +88,7 @@ COREBOOTINCLUDE := -I$(src) -Iinclude \
-I$(src)/include \
-I$(src)/include/arch/$(ARCH)/ \
-I$(src)/mainboard/$(MAINBOARDDIR)/ \
-include $(obj)/config.h \
-include $(obj)/build.h
-include $(obj)/config.h
CC := $(CC_$(ARCH))
AS := $(AS_$(ARCH))

View file

@ -248,6 +248,11 @@ $(obj)/coreboot.stage2 $(obj)/coreboot.stage2.map: $(obj)/stage0.o $(STAGE2_OBJ_
# Build rules.
#
$(obj)/arch/x86/coreboot_table.o: $(src)/arch/x86/coreboot_table.c $(obj)/build.h
$(Q)mkdir -p $(dir $@)
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(CC) $(INITCFLAGS) -c $< -o $@
$(obj)/arch/x86/%.o: $(src)/arch/x86/%.c
$(Q)mkdir -p $(dir $@)
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"

View file

@ -31,6 +31,7 @@
//#include <pirq_routing.h>
//#include <smp/mpspec.h>
//#include <acpi.h>
#include <build.h>
struct lb_header *lb_table_init(unsigned long addr)
{

View file

@ -44,6 +44,11 @@ else
nrv2b:
endif
$(obj)/lib/console.o: $(src)/lib/console.c $(obj)/build.h
$(Q)mkdir -p $(dir $@)
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(CC) $(INITCFLAGS) -c $< -o $@
$(obj)/lib/%.o: $(src)/lib/%.c
$(Q)mkdir -p $(dir $@)
$(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n"

View file

@ -6,6 +6,7 @@
#include <stdarg.h>
#include <string.h>
#include <globalvars.h>
#include <build.h>
int vtxprintf(void (*)(unsigned char, void *arg),
void *arg, const char *, va_list);

View file

@ -43,7 +43,7 @@
#define __X86EMU_X86EMU_H
/* FIXME: undefine printk for the moment */
#ifdef COREBOOT_VERSION
#if 1 /* Coreboot needs to map prinkf to printk. */
#include <console.h>
#define printk(x...) printk(BIOS_DEBUG, x)
#else

View file

@ -45,7 +45,7 @@
#include <x86emu/regs.h>
#include "debug.h"
#include "prim_ops.h"
#ifdef COREBOOT_VERSION
#if 1 /* Coreboot needs to map prinkf to printk. */
#include "io.h"
#else
#include <sys/io.h>