T.Michael Turney would like T Michael Turney to review this change.

View Change

HACK sdm845: Drag in all of the binary blobs

This patch is a hack until licensing issues are resolved.
There is a lot of ugliness in the Makefile.inc to allow
build-bot to accept this patch without having access
to the binary blobs required to run on Napali hardware.

Change-Id: Ia7bd9fdc7295364c63366a6efe9a5c92db9b5b1a
Signed-off-by: T Michael Turney <mturney@codeaurora.org>
---
M src/soc/qualcomm/sdm845/Makefile.inc
1 file changed, 104 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/32450/1
diff --git a/src/soc/qualcomm/sdm845/Makefile.inc b/src/soc/qualcomm/sdm845/Makefile.inc
index 34064a1..8c64a2f 100644
--- a/src/soc/qualcomm/sdm845/Makefile.inc
+++ b/src/soc/qualcomm/sdm845/Makefile.inc
@@ -73,13 +73,117 @@
CPPFLAGS_common += -Isrc/soc/qualcomm/sdm845/include
CPPFLAGS_common += -Isrc/soc/qualcomm/common/include

+SDM845_BLOB := $(top)/3rdparty/blobs/soc/qualcomm/sdm845
+
BL31_MAKEARGS += PLAT=sdm845
ifeq ($(CONFIG_QC_SDI_ENABLE),y)
BL31_MAKEARGS += DEBUG=1
endif

+################################################################################
+ifeq ($(CONFIG_QC_SDI_ENABLE),y)
+QCSDI_FILE := $(SDM845_BLOB)/QcSdi.elf
+qcsdi_file := $(shell ls $(QCSDI_FILE))
+ifneq (,$(findstring $(QCSDI_FILE),$(qcsdi_file)))
+ QCSDI_CBFS := $(CONFIG_CBFS_PREFIX)/qcsdi
+ $(QCSDI_CBFS)-file := $(QCSDI_FILE)
+ $(QCSDI_CBFS)-type := stage
+ $(QCSDI_CBFS)-compression := none
+ cbfs-files-y += $(QCSDI_CBFS)
+endif
+endif
+
+################################################################################
+QCLIB_FILE := $(SDM845_BLOB)/QcLib.elf
+qclib_file := $(shell ls $(QCLIB_FILE))
+ifneq (,$(findstring $(QCLIB_FILE),$(qclib_file)))
+ QCLIB_CBFS := $(CONFIG_CBFS_PREFIX)/qclib
+ $(QCLIB_CBFS)-file := $(QCLIB_FILE)
+ $(QCLIB_CBFS)-type := stage
+ $(QCLIB_CBFS)-compression := none
+ cbfs-files-y += $(QCLIB_CBFS)
+endif
+
+################################################################################
+PMIC_FILE := $(SDM845_BLOB)/Pmic.bin
+pmic_file := $(shell ls $(PMIC_FILE))
+ifneq (,$(findstring $(PMIC_FILE),$(pmic_file)))
+ PMIC_CBFS := $(CONFIG_CBFS_PREFIX)/pmiccfg
+ $(PMIC_CBFS)-file := $(PMIC_FILE)
+ $(PMIC_CBFS)-type := raw
+ $(PMIC_CBFS)-compression := none
+ cbfs-files-y += $(PMIC_CBFS)
+endif
+
+################################################################################
+DCB_FILE := $(SDM845_BLOB)/6000_0200_1_dcb.bin
+dcb_file := $(shell ls $(DCB_FILE))
+ifneq (,$(findstring $(DCB_FILE),$(dcb_file)))
+ DCB_CBFS := $(CONFIG_CBFS_PREFIX)/dcb
+ $(DCB_CBFS)-file := $(DCB_FILE)
+ $(DCB_CBFS)-type := raw
+ $(DCB_CBFS)-compression := none
+ cbfs-files-y += $(DCB_CBFS)
+endif
+
+################################################################################
+AOP_FILE := $(SDM845_BLOB)/aop.mbn
+aop_file := $(shell ls $(AOP_FILE))
+ifneq (,$(findstring $(AOP_FILE),$(aop_file)))
+ AOP_CBFS := $(CONFIG_CBFS_PREFIX)/aop
+ $(AOP_CBFS)-file := $(AOP_FILE)
+ $(AOP_CBFS)-type := payload
+ $(AOP_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
+ cbfs-files-y += $(AOP_CBFS)
+endif
+
+################################################################################
+UART_FW_FILE := $(SDM845_BLOB)/uart_fw.bin
+uart_fw_file := $(shell ls $(UART_FW_FILE))
+ifneq (,$(findstring $(UART_FW_FILE),$(uart_fw_file)))
+ UART_FW_CBFS := $(CONFIG_CBFS_PREFIX)/uart_fw
+ $(UART_FW_CBFS)-file := $(UART_FW_FILE)
+ $(UART_FW_CBFS)-type := raw
+ $(UART_FW_CBFS)-compression := none
+ cbfs-files-y += $(UART_FW_CBFS)
+endif
+
+################################################################################
+SPI_FW_FILE := $(SDM845_BLOB)/spi_fw.bin
+spi_fw_file := $(shell ls $(SPI_FW_FILE))
+ifneq (,$(findstring $(SPI_FW_FILE),$(spi_fw_file)))
+ SPI_FW_CBFS := $(CONFIG_CBFS_PREFIX)/spi_fw
+ $(SPI_FW_CBFS)-file := $(SPI_FW_FILE)
+ $(SPI_FW_CBFS)-type := raw
+ $(SPI_FW_CBFS)-compression := none
+ cbfs-files-y += $(SPI_FW_CBFS)
+endif
+
+################################################################################
+I2C_FW_FILE := $(SDM845_BLOB)/i2c_fw.bin
+i2c_fw_file := $(shell ls $(I2C_FW_FILE))
+ifneq (,$(findstring $(I2C_FW_FILE),$(i2c_fw_file)))
+ I2C_FW_CBFS := $(CONFIG_CBFS_PREFIX)/i2c_fw
+ $(I2C_FW_CBFS)-file := $(I2C_FW_FILE)
+ $(I2C_FW_CBFS)-type := raw
+ $(I2C_FW_CBFS)-compression := none
+ cbfs-files-y += $(I2C_FW_CBFS)
+endif
+
+################################################################################
+QC_SEC_FILE := $(SDM845_BLOB)/qc_sec.mbn
+qc_sec_file := $(shell ls $(QC_SEC_FILE))
+ifneq (,$(findstring $(QC_SEC_FILE),$(qc_sec_file)))
+$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.elf
+ @util/qualcomm/createxbl.py -f $(objcbfs)/bootblock.elf \
+ -x $(QC_SEC_FILE) -o $(objcbfs)/merged_bb_qcsec.mbn \
+ -a 64 -d 64 -c 64
+ @util/qualcomm/qgpt.py $(objcbfs)/merged_bb_qcsec.mbn \
+ $(objcbfs)/bootblock.bin
+else
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
@printf "Generating: $(subst $(obj)/,,$(@))\n"
cp $(objcbfs)/bootblock.raw.bin $(objcbfs)/bootblock.bin
+endif

endif

To view, visit change 32450. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia7bd9fdc7295364c63366a6efe9a5c92db9b5b1a
Gerrit-Change-Number: 32450
Gerrit-PatchSet: 1
Gerrit-Owner: T.Michael Turney <tturne@codeaurora.org>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: T Michael Turney <mturney@codeaurora.org>
Gerrit-Reviewer: T.Michael Turney <tturne@codeaurora.org>
Gerrit-MessageType: newchange