1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_SOC_QC_IPQ806X
),y
)
7 bootblock-
$(CONFIG_SPI_FLASH
) += spi.c
21 romstage-y
+= blobs_init.c
23 romstage-
$(CONFIG_SPI_FLASH
) += spi.c
31 ramstage-y
+= blobs_init.c
36 ramstage-
$(CONFIG_SPI_FLASH
) += spi.c
38 ramstage-y
+= uart.c
# Want the UART always ready for the kernels' earlyprintk
40 ramstage-y
+= tz_wrapper.S
46 ifeq ($(CONFIG_USE_BLOBS
),y
)
48 # Add MBN header to allow SBL3 to start coreboot bootblock
49 $(objcbfs
)/bootblock.mbn
: $(objcbfs
)/bootblock.raw.bin
50 @printf
" ADD MBN $(subst $(obj)/,,$(@))\n"
51 .
/util
/qualcomm
/ipqheader.py
$(call loadaddr
,bootblock
) $< $@.tmp
54 # Create a complete bootblock which will start up the system
55 $(objcbfs
)/bootblock.bin
: $(call strip_quotes
,$(CONFIG_SBL_BLOB
)) \
56 $(objcbfs
)/bootblock.mbn
57 @printf
" MBNCAT $(subst $(obj)/,,$(@))\n"
58 @util
/qualcomm
/mbncat.py
-o
$@.tmp
$^
63 CPPFLAGS_common
+= -Isrc
/soc
/qualcomm
/ipq806x
/include
65 # List of binary blobs coreboot needs in CBFS to be able to boot up this SOC
66 mbn-files
:= cdt.mbn ddr.mbn rpm.mbn tz.mbn
68 # Location of the binary blobs
69 mbn-root
:= 3rdparty
/blobs
/cpu
/qualcomm
/ipq806x
71 # Create make variables to aid cbfs-files-handler in processing the blobs (add
72 # them all as raw binaries at the root level).
73 $(foreach f
,$(mbn-files
),$(eval cbfs-files-y
+= $(f
))\
74 $(eval
$(f
)-file
:= $(mbn-root
)/$(f
))\
75 $(eval
$(f
)-type
:= raw
))