src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / soc / qualcomm / ipq806x / Makefile.inc
blob09c4d7a6b114413e1d806fee1ee1959aa94a9d7a
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
5 ## SPDX-License-Identifier: GPL-2.0-only
7 ifeq ($(CONFIG_SOC_QC_IPQ806X),y)
9 bootblock-y += clock.c
10 bootblock-y += gpio.c
11 bootblock-$(CONFIG_SPI_FLASH) += spi.c
12 bootblock-y += timer.c
13 bootblock-y += uart.c
15 verstage-y += clock.c
16 verstage-y += gpio.c
17 verstage-y += gsbi.c
18 verstage-y += i2c.c
19 verstage-y += qup.c
20 verstage-y += spi.c
21 verstage-y += timer.c
22 verstage-y += uart.c
24 romstage-y += clock.c
25 romstage-y += blobs_init.c
26 romstage-y += gpio.c
27 romstage-$(CONFIG_SPI_FLASH) += spi.c
28 romstage-y += timer.c
29 romstage-y += uart.c
30 romstage-y += cbmem.c
31 romstage-y += i2c.c
32 romstage-y += gsbi.c
33 romstage-y += qup.c
35 ramstage-y += blobs_init.c
36 ramstage-y += clock.c
37 ramstage-y += gpio.c
38 ramstage-y += lcc.c
39 ramstage-y += soc.c
40 ramstage-$(CONFIG_SPI_FLASH) += spi.c
41 ramstage-y += timer.c
42 ramstage-y += uart.c  # Want the UART always ready for the kernels' earlyprintk
43 ramstage-y += usb.c
44 ramstage-y += tz_wrapper.S
45 ramstage-y += gsbi.c
46 ramstage-y += i2c.c
47 ramstage-y += qup.c
48 ramstage-y += spi.c
50 ifeq ($(CONFIG_USE_BLOBS),y)
52 # Add MBN header to allow SBL3 to start coreboot bootblock
53 $(objcbfs)/bootblock.mbn: $(objcbfs)/bootblock.raw.bin
54         @printf "    ADD MBN    $(subst $(obj)/,,$(@))\n"
55         ./util/qualcomm/ipqheader.py $(call loadaddr,bootblock) $< $@.tmp
56         @mv $@.tmp $@
58 # Create a complete bootblock which will start up the system
59 $(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_BLOB)) \
60                            $(objcbfs)/bootblock.mbn
61         @printf "    MBNCAT     $(subst $(obj)/,,$(@))\n"
62         @util/qualcomm/mbncat.py -o $@.tmp $^
63         @mv $@.tmp $@
65 endif
67 CPPFLAGS_common += -Isrc/soc/qualcomm/ipq806x/include
69 # List of binary blobs coreboot needs in CBFS to be able to boot up this SOC
70 mbn-files := cdt.mbn  ddr.mbn  rpm.mbn tz.mbn
72 # Location of the binary blobs
73 mbn-root := 3rdparty/blobs/cpu/qualcomm/ipq806x
75 # Create make variables to aid cbfs-files-handler in processing the blobs (add
76 # them all as raw binaries at the root level).
77 $(foreach f,$(mbn-files),$(eval cbfs-files-y += $(f))\
78           $(eval $(f)-file := $(mbn-root)/$(f))\
79           $(eval $(f)-type := raw))
81 endif