Debian Codegraph @

src/soc/amd/common/block/cpu/noncar/Makefile.mk

raw symbols SCIP
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_NONCAR),y)
3
4 bootblock-y += bootblock.c
5 bootblock-y += cpu.c
6 bootblock-y += early_cache.c
7 bootblock-y += pre_c.S
8 bootblock-y += write_resume_eip.c
9 bootblock-$(CONFIG_TPM_MEASURED_BOOT) += bootblock_measure.c
10 romstage-y += memmap.c
11 romstage-y += romstage.c
12 ramstage-y += cpu.c
13 romstage-y += cpu.c
14 ramstage-y += memmap.c
15 ramstage-y += mpinit.c
16
17 # See memlayout_x86.ld for details:
18 # AMDCOMPRESS only supports one PT_LOAD segment.
19 # 1. Copy .data section to .datacopy section
20 # Assembly will copy .datacopy to .data at runtime
21 # 2. Mark .data and .bss as NOLOAD
22 # Drops the second PT_LOAD segment from ELF
23 $(objcbfs)/bootblock_fixed_data.elf: $(objcbfs)/bootblock.elf
24 @printf " OBJCOPY $(notdir $(@))\n"
25 $(OBJCOPY_bootblock) --dump-section .data=$(objcbfs)/data.section $<
26 cp $< $@
27 $(OBJCOPY_bootblock) --set-section-flags .datacopy=load \
28 --set-section-flags .bss=noload --set-section-flags .data=noload $@
29 $(OBJCOPY_bootblock) --update-section .datacopy=$(objcbfs)/data.section $@
30
31 endif # CONFIG_SOC_AMD_COMMON_BLOCK_NONCAR