soc/intel/denverton_ns: Remove unused memcpy_s function
[coreboot2.git] / src / soc / intel / broadwell / Makefile.mk
blob3565cd180bd6365afefb3d1c75922edb0683c743
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_INTEL_BROADWELL),y)
4 subdirs-y += pch
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
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
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))
38 mrc.bin-type := mrc
40 endif