1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_INTEL_BROADWELL
),y
)
6 bootblock-y
+= bootblock.c
8 romstage-y
+= early_init.c
9 romstage-y
+= raminit.c
10 romstage-y
+= report_platform.c
11 romstage-y
+= romstage.c
12 romstage-
$(CONFIG_HAVE_SPD_IN_CBFS
) += spd.c
15 ramstage-y
+= finalize.c
17 ramstage-y
+= memmap.c
18 romstage-y
+= memmap.c
20 ramstage-y
+= minihd.c
21 ramstage-y
+= northbridge.c
22 ramstage-y
+= pei_data.c
23 romstage-y
+= pei_data.c
24 ramstage-
$(CONFIG_HAVE_REFCODE_BLOB
) += refcode.c
26 CPPFLAGS_common
+= -Isrc
/soc
/intel
/broadwell
/include
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.
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 }')
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
))