Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2007-2008 coresystems GmbH |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or |
| 7 | ## modify it under the terms of the GNU General Public License as |
| 8 | ## published by the Free Software Foundation; version 2 of |
| 9 | ## the License. |
| 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
| 16 | ## You should have received a copy of the GNU General Public License |
| 17 | ## along with this program; if not, write to the Free Software |
| 18 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 19 | ## MA 02110-1301 USA |
| 20 | ## |
| 21 | |
| 22 | driver-y += mainboard.o |
| 23 | driver-y += ../../../drivers/i2c/i2cmux2/i2cmux2.o |
| 24 | |
| 25 | # Needed by irq_tables and mptable and acpi_tables. |
| 26 | obj-y += get_bus_conf.o |
Myles Watson | b8e2027 | 2009-10-15 13:35:47 +0000 | [diff] [blame^] | 27 | obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o |
| 28 | obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 29 | |
| 30 | # This is part of the conversion to init-obj and away from included code. |
| 31 | |
| 32 | initobj-y += crt0.o |
| 33 | # FIXME in $(top)/Makefile |
| 34 | crt0-y += ../../../../src/cpu/x86/16bit/entry16.inc |
| 35 | crt0-y += ../../../../src/cpu/x86/32bit/entry32.inc |
| 36 | crt0-y += ../../../../src/cpu/x86/16bit/reset16.inc |
Patrick Georgi | 66b7404 | 2009-10-07 15:30:58 +0000 | [diff] [blame] | 37 | crt0-y += ../../../../src/southbridge/nvidia/mcp55/id.inc |
| 38 | crt0-y += ../../../../src/southbridge/nvidia/mcp55/romstrap.inc |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 39 | crt0-y += ../../../../src/cpu/amd/car/cache_as_ram.inc |
| 40 | crt0-y += auto.inc |
| 41 | |
| 42 | ldscript-y += ../../../../src/arch/i386/init/ldscript_fallback_cbfs.lb |
| 43 | ldscript-y += ../../../../src/cpu/x86/16bit/entry16.lds |
| 44 | ldscript-y += ../../../../src/cpu/x86/16bit/reset16.lds |
Patrick Georgi | 66b7404 | 2009-10-07 15:30:58 +0000 | [diff] [blame] | 45 | ldscript-y += ../../../../src/southbridge/nvidia/mcp55/id.lds |
| 46 | ldscript-y += ../../../../src/southbridge/nvidia/mcp55/romstrap.lds |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 47 | ldscript-y += ../../../../src/arch/i386/lib/failover.lds |
| 48 | |
| 49 | ifdef POST_EVALUATION |
| 50 | |
Patrick Georgi | 88f55b2 | 2009-09-25 18:43:02 +0000 | [diff] [blame] | 51 | $(obj)/dsdt.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl |
| 52 | iasl -p dsdt -tc $(src)/mainboard/$(MAINBOARDDIR)/dx/dsdt_lb.dsl |
| 53 | mv dsdt.hex $@ |
| 54 | |
| 55 | $(obj)/mainboard/$(MAINBOARDDIR)/dsdt.o: $(obj)/dsdt.c |
| 56 | $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c $< -o $@ |
| 57 | |
| 58 | $(obj)/ssdt2.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci2.asl |
| 59 | iasl -p $(CURDIR)/pci2 -tc $(CONFIG_MAINBOARD)/dx/pci2.asl |
| 60 | perl -pi -e 's/AmlCode/AmlCode_ssdt2/g' pci2.hex |
| 61 | mv pci2.hex ssdt2.c |
| 62 | |
| 63 | $(obj)/ssdt3.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci3.asl" |
| 64 | iasl -p $(CURDIR)/pci3 -tc $(CONFIG_MAINBOARD)/ |
| 65 | perl -pi -e 's/AmlCode/AmlCode_ssdt3/g' pci3.hex |
| 66 | mv pci3.hex ssdt3.c |
| 67 | |
| 68 | $(obj)/ssdt4.c: $(src)/mainboard/$(MAINBOARDDIR)/dx/pci4.asl" |
| 69 | iasl -p $(CURDIR)/pci4 -tc $(CONFIG_MAINBOARD)/dx/pci4.asl |
| 70 | perl -pi -e 's/AmlCode/AmlCode_ssdt4/g' pci4.hex |
| 71 | mv pci4.hex ssdt4.c |
| 72 | |
| 73 | $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc: $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c $(obj)/option_table.h |
| 74 | $(CC) $(DISTRO_CFLAGS) $(CFLAGS) $(CPPFLAGS) $(DEBUG_CFLAGS) -I$(src) -I. -c -S $(src)/mainboard/$(MAINBOARDDIR)/cache_as_ram_auto.c -o $@ |
| 75 | perl -e 's/\.rodata/.rom.data/g' -pi $@ |
| 76 | perl -e 's/\.text/.section .rom.text/g' -pi $@ |
| 77 | |
| 78 | endif |
| 79 | |