blob: 55eddf18fde8e2cb4023064bb959ed1604a5029c [file] [log] [blame]
Stefan Reinaueraae53ab2015-04-27 14:03:57 -07001ifeq ($(CONFIG_SOC_INTEL_BROADWELL),y)
2
Angel Ponsc200e8c72020-10-23 21:37:21 +02003subdirs-y += pch
4
Angel Pons1500dd02020-10-26 00:32:42 +01005bootblock-y += bootblock.c
6
7romstage-y += early_init.c
8romstage-y += raminit.c
9romstage-y += report_platform.c
10romstage-y += romstage.c
Arthur Heymans5bb15f12018-12-22 16:02:25 +010011
Duncan Lauriec88c54c2014-04-30 16:36:13 -070012ramstage-y += acpi.c
Duncan Lauriec88c54c2014-04-30 16:36:13 -070013ramstage-y += finalize.c
Angel Pons9bf45b42020-10-13 01:12:06 +020014ramstage-y += gma.c
Duncan Lauriec88c54c2014-04-30 16:36:13 -070015ramstage-y += memmap.c
16romstage-y += memmap.c
Arthur Heymans90cca542018-11-29 13:36:54 +010017postcar-y += memmap.c
Duncan Lauriec88c54c2014-04-30 16:36:13 -070018ramstage-y += minihd.c
Angel Ponsc8e86de2020-10-26 00:44:38 +010019ramstage-y += northbridge.c
Duncan Lauriec88c54c2014-04-30 16:36:13 -070020ramstage-y += pei_data.c
21romstage-y += pei_data.c
Duncan Lauriec88c54c2014-04-30 16:36:13 -070022ramstage-$(CONFIG_HAVE_REFCODE_BLOB) += refcode.c
Alexandru Gagniuc1d857002015-09-09 22:38:06 -070023
Julius Werner4ee4bd52014-10-20 13:46:39 -070024CPPFLAGS_common += -Isrc/soc/intel/broadwell/include
Duncan Lauriec88c54c2014-04-30 16:36:13 -070025
Duncan Lauriec88c54c2014-04-30 16:36:13 -070026# 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 Georgi0a1699e2014-11-12 19:15:34 +010029mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
30mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
Duncan Lauriec88c54c2014-04-30 16:36:13 -070031
32# Add memory reference code blob.
33cbfs-files-$(CONFIG_HAVE_MRC) += mrc.bin
34mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
35mrc.bin-position := $(if $(findstring elf,$(CONFIG_MRC_FILE)),$(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) ),$(CONFIG_MRC_BIN_ADDRESS))
Martin Roth72a8e5e2015-03-24 16:02:27 -060036mrc.bin-type := mrc
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070037
38endif