2 ## This file is part of the coreboot project.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; version 2 of the License.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
15 ifeq ($(CONFIG_SOC_QC_IPQ806X),y)
17 bootblock-y += clock.c
19 bootblock-$(CONFIG_SPI_FLASH) += spi.c
20 bootblock-y += timer.c
33 romstage-y += blobs_init.c
35 romstage-$(CONFIG_SPI_FLASH) += spi.c
43 ramstage-y += blobs_init.c
48 ramstage-$(CONFIG_SPI_FLASH) += spi.c
50 ramstage-y += uart.c # Want the UART always ready for the kernels' earlyprintk
52 ramstage-y += tz_wrapper.S
58 ifeq ($(CONFIG_USE_BLOBS),y)
60 # Add MBN header to allow SBL3 to start coreboot bootblock
61 $(objcbfs)/bootblock.mbn: $(objcbfs)/bootblock.raw.bin
62 @printf " ADD MBN $(subst $(obj)/,,$(@))\n"
63 ./util/qualcomm/ipqheader.py $(call loadaddr,bootblock) $< $@.tmp
66 # Create a complete bootblock which will start up the system
67 $(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_BLOB)) \
68 $(objcbfs)/bootblock.mbn
69 @printf " MBNCAT $(subst $(obj)/,,$(@))\n"
70 @util/qualcomm/mbncat.py -o $@.tmp $^
75 CPPFLAGS_common += -Isrc/soc/qualcomm/ipq806x/include
77 # List of binary blobs coreboot needs in CBFS to be able to boot up this SOC
78 mbn-files := cdt.mbn ddr.mbn rpm.mbn tz.mbn
80 # Location of the binary blobs
81 mbn-root := 3rdparty/blobs/cpu/qualcomm/ipq806x
83 # Create make variables to aid cbfs-files-handler in processing the blobs (add
84 # them all as raw binaries at the root level).
85 $(foreach f,$(mbn-files),$(eval cbfs-files-y += $(f))\
86 $(eval $(f)-file := $(mbn-root)/$(f))\
87 $(eval $(f)-type := raw))