Skip to content

Commit

Permalink
firmware-qcom-boot-qcs6490: Add boot firmware recipe for qcs6490
Browse files Browse the repository at this point in the history
Add boot firmware recipe to package the boot binaries for Qualcomm
qcs6490/qcm6490 boards.

Signed-off-by: Atul Dhudase <[email protected]>
  • Loading branch information
adhudase authored and ricardosalveti committed Nov 14, 2024
1 parent 9929fa2 commit 7e92335
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipes-bsp/firmware/firmware-qcom-boot-common.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Install NHLOS boot binaries in DEPLOY_DIR

inherit deploy

do_deploy() {
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.bin' -exec install -m 0644 {} ${DEPLOYDIR} \;
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.elf' -exec install -m 0644 {} ${DEPLOYDIR} \;
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.fv' -exec install -m 0644 {} ${DEPLOYDIR} \;
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.mbn' -exec install -m 0644 {} ${DEPLOYDIR} \;
find "${UNPACKDIR}/${BOOTBINARIES}" -name '*.melf' -exec install -m 0644 {} ${DEPLOYDIR} \;
}
addtask deploy before do_build after do_install
21 changes: 21 additions & 0 deletions recipes-bsp/firmware/firmware-qcom-boot-qcs6490_00005.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
DESCRIPTION = "QCOM NHLOS Firmware for Qualcomm Robotics RB3Gen2 platform"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/${BOOTBINARIES}/Qualcomm-Technologies-Inc.-Proprietary;md5=58d50a3d36f27f1a1e6089308a49b403"

FW_ARTIFACTORY = "softwarecenter.qualcomm.com/download/software/chip/qualcomm_linux-spf-1-0/qualcomm-linux-spf-1-0_test_device_integrationandtest_publictest"
FW_BUILD_ID = "r1.0_${PV}/qcm6490-le-1-0"
FW_BIN_PATH = "common/build/ufs/bin"
BOOTBINARIES = "QCM6490_bootbinaries"

SRC_URI = "https://${FW_ARTIFACTORY}/${FW_BUILD_ID}/${FW_BIN_PATH}/${BOOTBINARIES}.zip"
SRC_URI[sha256sum] = "5e597229af9103cfea5b398c7e83a05dd078a18af010a40f1b9adf92967d4c1e"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

INHIBIT_DEFAULT_DEPS = "1"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

include firmware-qcom-boot-common.inc

0 comments on commit 7e92335

Please sign in to comment.