cache_as_ram_auto.c and auto.c are both called "romstage.c" now. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5092 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
43 lines
1.7 KiB
Makefile
43 lines
1.7 KiB
Makefile
driver-y += mainboard.o
|
|
obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
|
|
obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
|
|
obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
|
|
|
|
# This is part of the conversion to init-obj and away from included code.
|
|
|
|
initobj-y += crt0.o
|
|
# FIXME in $(top)/Makefile
|
|
crt0s := $(src)/cpu/x86/16bit/entry16.inc
|
|
crt0s += $(src)/cpu/x86/32bit/entry32.inc
|
|
crt0s += $(src)/cpu/x86/16bit/reset16.inc
|
|
crt0s += $(src)/arch/i386/lib/id.inc
|
|
# Use Intel Core (not Core 2) code for CAR init, any CPU might be used.
|
|
crt0s += $(src)/cpu/intel/model_6ex/cache_as_ram.inc
|
|
crt0s += $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
|
|
|
|
ldscripts := $(src)/arch/i386/init/ldscript_fallback_cbfs.lb
|
|
ldscripts += $(src)/cpu/x86/16bit/entry16.lds
|
|
ldscripts += $(src)/cpu/x86/16bit/reset16.lds
|
|
ldscripts += $(src)/arch/i386/lib/id.lds
|
|
ldscripts += $(src)/arch/i386/lib/failover.lds
|
|
|
|
ifdef POST_EVALUATION
|
|
|
|
$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
|
|
iasl -p $(obj)/mainboard/$(MAINBOARDDIR)/dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dsdt.dsl
|
|
mv $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.hex $@
|
|
|
|
$(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.c
|
|
$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@
|
|
|
|
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(obj)/option_table.h
|
|
$(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/romstage.c -o $@
|
|
perl -e 's/\.rodata/.rom.data/g' -pi $@
|
|
perl -e 's/\.text/.section .rom.text/g' -pi $@
|
|
|
|
endif
|
|
|