Fix AUTO_XIP_ROM_BASE issues on AMD boards with certain compilers,
and expose the error earlier in the build. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5119 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
535e3b4baa
commit
ba295dce84
|
@ -87,8 +87,10 @@ $(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o: $(src)/mainboard/$(MAINBOARDDIR)
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/ap_romstage.c -o $@
|
||||||
|
|
||||||
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
|
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -include $(obj)/build.h -I$(src) -I. -c -S $< -o - | sed -e 's/\.rodata/.rom.data/g' -e 's/\.text/.section .rom.text/g' > $@.tmp
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -include $(obj)/build.h -I$(src) -I. -c -S $< -o $@.tmp1
|
||||||
|
sed -e 's/\.rodata/.rom.data/g' -e 's/\.text/.section .rom.text/g' $@.tmp1 > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
rm -f $@.tmp1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ static void do_amd_early_mtrr_init(const unsigned long *mtrr_msrs)
|
||||||
|
|
||||||
#if defined(CONFIG_XIP_ROM_SIZE)
|
#if defined(CONFIG_XIP_ROM_SIZE)
|
||||||
#if defined(CONFIG_TINY_BOOTBLOCK) && CONFIG_TINY_BOOTBLOCK
|
#if defined(CONFIG_TINY_BOOTBLOCK) && CONFIG_TINY_BOOTBLOCK
|
||||||
|
extern unsigned long AUTO_XIP_ROM_BASE;
|
||||||
#define REAL_XIP_ROM_BASE AUTO_XIP_ROM_BASE
|
#define REAL_XIP_ROM_BASE AUTO_XIP_ROM_BASE
|
||||||
#else
|
#else
|
||||||
#define REAL_XIP_ROM_BASE CONFIG_XIP_ROM_BASE
|
#define REAL_XIP_ROM_BASE CONFIG_XIP_ROM_BASE
|
||||||
|
|
|
@ -101,6 +101,7 @@ static void do_early_mtrr_init(const unsigned long *mtrr_msrs)
|
||||||
|
|
||||||
#if defined(CONFIG_XIP_ROM_SIZE)
|
#if defined(CONFIG_XIP_ROM_SIZE)
|
||||||
#if defined(CONFIG_TINY_BOOTBLOCK) && CONFIG_TINY_BOOTBLOCK
|
#if defined(CONFIG_TINY_BOOTBLOCK) && CONFIG_TINY_BOOTBLOCK
|
||||||
|
extern unsigned long AUTO_XIP_ROM_BASE;
|
||||||
#define REAL_XIP_ROM_BASE AUTO_XIP_ROM_BASE
|
#define REAL_XIP_ROM_BASE AUTO_XIP_ROM_BASE
|
||||||
#else
|
#else
|
||||||
#define REAL_XIP_ROM_BASE CONFIG_XIP_ROM_BASE
|
#define REAL_XIP_ROM_BASE CONFIG_XIP_ROM_BASE
|
||||||
|
|
Loading…
Reference in New Issue