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