| 1 |
|
| 2 |
ifeq ($(CONFIG_SOC_INTEL_BROADWELL),y) |
| 3 |
|
| 4 |
subdirs-y += pch |
| 5 |
|
| 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 |
| 12 |
romstage-$(CONFIG_HAVE_SPD_IN_CBFS) += spd.c |
| 13 |
|
| 14 |
ramstage-y += acpi.c |
| 15 |
ramstage-y += finalize.c |
| 16 |
ramstage-y += gma.c |
| 17 |
ramstage-y += memmap.c |
| 18 |
romstage-y += memmap.c |
| 19 |
postcar-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 |
| 25 |
|
| 26 |
CPPFLAGS_common += -Isrc/soc/intel/broadwell/include |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 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 }') |
| 33 |
|
| 34 |
|
| 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)) |
| 38 |
mrc.bin-type := mrc |
| 39 |
|
| 40 |
endif |