src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / soc / qualcomm / ipq40xx / Makefile.inc
blob9bafd9fc47ad59179c8f10f5057a089c3f5406b5
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_IPQ40XX),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 += blsp.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 += blsp.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
46 ramstage-y += blsp.c
47 ramstage-y += i2c.c
48 ramstage-y += qup.c
49 ramstage-y += spi.c
51 ifeq ($(CONFIG_USE_BLOBS),y)
53 $(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_ELF)) \
54                            $(objcbfs)/bootblock.elf
55         @printf "    CRXBL      $(subst $(obj)/,,$(^)) $(subst $(obj)/,,$(@))\n"
56         @$(CONFIG_SBL_UTIL_PATH)/createxbl.py -f $(CONFIG_SBL_ELF) \
57                 -s $(objcbfs)/bootblock.elf -o $@ -a 32 -b 32
59 endif
61 CPPFLAGS_common += -Isrc/soc/qualcomm/ipq40xx/include
63 # List of binary blobs coreboot needs in CBFS to be able to boot up this SOC
64 mbn-files := $(CONFIG_CDT_MBN) $(CONFIG_DDR_MBN) $(CONFIG_TZ_MBN)
66 # Location of the binary blobs
67 mbn-root := 3rdparty/blobs/cpu/qualcomm/ipq40xx
69 # Create make variables to aid cbfs-files-handler in processing the blobs (add
70 # them all as raw binaries at the root level).
71 $(foreach f,$(mbn-files),$(eval cbfs-files-y += $(f))\
72           $(eval $(f)-file := $(mbn-root)/$(f))\
73           $(eval $(f)-type := raw))
75 endif