Skip to content

Commit b003e51

Browse files
sm8750-mtp.conf: add boot firmware for SM8750-MTP (#1635)
Add boot firmware recipe and include in machine conf systemd-boot is enabled, so drop ABL_SIGNATURE_VERSION definition from machine conf as we no longer need to use abl2esp.elf file during boot. SM8750-MTP uses xbl_s_devprg_ns.melf as device programmer while flashing, and xbl_s.melf file is flashed in xbl partiiton, so include *.melf files in image_types_qcom.bbclass
2 parents ab74e2d + dc31a78 commit b003e51

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

classes-recipe/image_types_qcom.bbclass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ create_qcomflash_pkg() {
9696
for bfw in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f \
9797
\( -name '*.elf' ! -name 'abl2esp*.elf' ! -name 'xbl_config*.elf' ! -name 'uefi.elf' \) -o \
9898
-name '*.mbn*' -o \
99+
-name '*.melf*' -o \
99100
-name '*.fv' -o \
100101
-name 'cdt_*.bin' -o \
101102
-name 'logfs_*.bin' -o \

conf/machine/sm8750-mtp.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ MACHINE_FEATURES = "efi usbhost usbgadget alsa wifi bluetooth"
88

99
QCOM_DTB_DEFAULT ?= "sm8750-mtp"
1010

11-
ABL_SIGNATURE_VERSION ?= "v7"
12-
1311
KERNEL_DEVICETREE ?= " \
1412
qcom/sm8750-mtp.dtb \
1513
"
@@ -19,3 +17,9 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
1917
packagegroup-sm8750-mtp-hexagon-dsp-binaries \
2018
qcom-fastcv-binaries-sm8750-mtp-dsp \
2119
"
20+
21+
QCOM_CDT_FILE = "cdt_pakala_mtp_0.4.0"
22+
QCOM_BOOT_FILES_SUBDIR = "sm8750"
23+
QCOM_PARTITION_FILES_SUBDIR ?= "partitions/sm8750-mtp/ufs"
24+
25+
QCOM_BOOT_FIRMWARE = "firmware-qcom-boot-sm8750"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
DESCRIPTION = "QCOM NHLOS Firmware for Qualcomm SM8750-MTP platform"
2+
LICENSE = "LICENSE.qcom-2"
3+
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE.${BPN};md5=6e1bae7ef13289c332a27b917fb49764"
4+
5+
FW_ARTIFACTORY = "softwarecenter.qualcomm.com/nexus/generic/software/chip/qualcomm_linux-spf-0-0/qualcomm-linux-spf-0-0_test_device_public"
6+
FW_BUILD_ID = "r0.0_${PV}/pakala-le-0-0"
7+
FW_BIN_PATH = "common/build/ufs/bin"
8+
BOOTBINARIES = "pakala_bootbinaries"
9+
10+
SRC_URI = " \
11+
https://${FW_ARTIFACTORY}/${FW_BUILD_ID}/${FW_BIN_PATH}/${BOOTBINARIES}.zip;downloadfilename=${BOOTBINARIES}_r0.0_${PV}.zip;name=bootbinaries \
12+
https://${FW_ARTIFACTORY}/${FW_BUILD_ID}/LICENSE.txt;downloadfilename=LICENSE.${BPN};name=license \
13+
https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/SM8750/cdt/sm8750-mtp_wcn7881.zip;downloadfilename=sm8750-mtp_wcn7881_${PV}.zip;name=sm8750-mtp_wcn7881 \
14+
"
15+
SRC_URI[license.sha256sum] = "3ad8f1fd82f2918c858cec2d0887b7df6f71a06416beecfdb3efe7d62874d863"
16+
SRC_URI[sm8750-mtp_wcn7881.sha256sum] = "474c35a6f06948808be118a8b0dac61ca53fd71182c1f03b92ca30d34dbb8a58"
17+
18+
QCOM_BOOT_IMG_SUBDIR = "sm8750"
19+
20+
include firmware-qcom-boot-common.inc
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require firmware-qcom-boot-sm8750.inc
2+
3+
SRC_URI[bootbinaries.sha256sum] = "3e09eef0dbdecf2c5680f9278ed4fd6f32b0b5f89cb16e7ad3459a56986c4469"

0 commit comments

Comments
 (0)