Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 1 | ifeq ($(CONFIG_SOC_INTEL_BROADWELL),y) |
| 2 | |
Angel Pons | c200e8c7 | 2020-10-23 21:37:21 +0200 | [diff] [blame] | 3 | subdirs-y += pch |
| 4 | |
Angel Pons | 1500dd0 | 2020-10-26 00:32:42 +0100 | [diff] [blame] | 5 | bootblock-y += bootblock.c |
| 6 | |
| 7 | romstage-y += early_init.c |
| 8 | romstage-y += raminit.c |
| 9 | romstage-y += report_platform.c |
| 10 | romstage-y += romstage.c |
Arthur Heymans | 5bb15f1 | 2018-12-22 16:02:25 +0100 | [diff] [blame] | 11 | |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 12 | ramstage-y += acpi.c |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 13 | ramstage-y += finalize.c |
Angel Pons | 9bf45b4 | 2020-10-13 01:12:06 +0200 | [diff] [blame] | 14 | ramstage-y += gma.c |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 15 | ramstage-y += memmap.c |
| 16 | romstage-y += memmap.c |
Arthur Heymans | 90cca54 | 2018-11-29 13:36:54 +0100 | [diff] [blame] | 17 | postcar-y += memmap.c |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 18 | ramstage-y += minihd.c |
Angel Pons | c8e86de | 2020-10-26 00:44:38 +0100 | [diff] [blame] | 19 | ramstage-y += northbridge.c |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 20 | ramstage-y += pei_data.c |
| 21 | romstage-y += pei_data.c |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 22 | ramstage-$(CONFIG_HAVE_REFCODE_BLOB) += refcode.c |
Alexandru Gagniuc | 1d85700 | 2015-09-09 22:38:06 -0700 | [diff] [blame] | 23 | |
Julius Werner | 4ee4bd5 | 2014-10-20 13:46:39 -0700 | [diff] [blame] | 24 | CPPFLAGS_common += -Isrc/soc/intel/broadwell/include |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 25 | |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 26 | # If an MRC file is an ELF file determine the entry address and first loadable |
| 27 | # section offset in the file. Subtract the offset from the entry address to |
| 28 | # determine the final location. |
Patrick Georgi | 0a1699e | 2014-11-12 19:15:34 +0100 | [diff] [blame] | 29 | mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' ) |
| 30 | mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }') |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 31 | |
| 32 | # Add memory reference code blob. |
| 33 | cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin |
| 34 | mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE)) |
| 35 | mrc.bin-position := $(if $(findstring elf,$(CONFIG_MRC_FILE)),$(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ),$(CONFIG_MRC_BIN_ADDRESS)) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 36 | mrc.bin-type := mrc |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 37 | |
| 38 | endif |