• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## SPDX-License-Identifier: GPL-2.0-only
2ifeq ($(CONFIG_SOC_INTEL_BROADWELL),y)
3
4subdirs-y += pch
5
6bootblock-y += bootblock.c
7
8romstage-y += early_init.c
9romstage-y += raminit.c
10romstage-y += report_platform.c
11romstage-y += romstage.c
12romstage-$(CONFIG_HAVE_SPD_IN_CBFS) += spd.c
13
14ramstage-y += acpi.c
15ramstage-y += finalize.c
16ramstage-y += gma.c
17ramstage-y += memmap.c
18romstage-y += memmap.c
19postcar-y += memmap.c
20ramstage-y += minihd.c
21ramstage-y += northbridge.c
22ramstage-y += pei_data.c
23romstage-y += pei_data.c
24ramstage-$(CONFIG_HAVE_REFCODE_BLOB) += refcode.c
25
26CPPFLAGS_common += -Isrc/soc/intel/broadwell/include
27
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.
31mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
32mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
33
34# Add memory reference code blob.
35cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
36mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
37mrc.bin-position := $(if $(findstring elf,$(CONFIG_MRC_FILE)),$(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ),$(CONFIG_MRC_BIN_ADDRESS))
38mrc.bin-type := mrc
39
40endif
41