Debian Codegraph @

src/soc/ti/am335x/Makefile.mk

raw symbols SCIP
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_TI_AM335X),y)
3 bootblock-y += bootblock.c
4 bootblock-y += timer.c
5 bootblock-y += gpio.c
6 bootblock-y += pinmux.c
7 bootblock-y += mmc.c
8
9 romstage-y += cbmem.c
10 romstage-y += timer.c
11 romstage-y += mmc.c
12 romstage-y += sdram.c
13
14 ramstage-y += timer.c
15 ramstage-y += soc.c
16 ramstage-y += mmc.c
17
18 bootblock-y += uart.c
19 romstage-y += uart.c
20 ramstage-y += uart.c
21
22 $(call add-class,omap-header)
23 $(eval $(call create_class_compiler,omap-header,arm))
24
25 omap-header-generic-ccopts += -D__COREBOOT_ARM_ARCH__=7
26
27 real-target: $(obj)/MLO
28
29 omap-header-y += header.ld
30 header_ld := $(call src-to-obj,omap-header,$(dir)/header.ld)
31
32 get_header_size= \
33 $(shell echo $$(wc -c < $(objcbfs)/bootblock.bin))
34
35 $(obj)/omap-header.bin: $$(omap-header-objs) $(objcbfs)/bootblock.bin
36 @printf " CC $(subst $(obj)/,,$(@))\n"
37 $(LD_omap-header) --defsym header_load_size=$(strip \
38 $(call get_header_size,$(obj)/coreboot.rom) \
39 ) -L$(obj) --whole-archive --start-group $(filter-out %.ld,$(omap-header-objs)) --end-group \
40 -o [email protected] -T $(header_ld)
41 $(OBJCOPY_omap-header) --only-section=".header" -O binary [email protected] $@
42
43 $(obj)/MLO: $(obj)/coreboot.rom $(obj)/omap-header.bin
44 @printf " HEADER $(subst $(obj)/,,$(@))\n"
45 $(Q)cat $(obj)/omap-header.bin $(obj)/coreboot.rom > $@
46
47 omap-header-y += header.c
48
49 omap-header-srcs += $(CONFIG_MEMLAYOUT_LD_FILE)
50 omap-header-y += header.ld
51 endif