-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #651 from avs-sas/sas/master/u-boot
meta-qcom: initial u-boot support
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
LICENSE = "GPL-2.0-or-later" | ||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1" | ||
|
||
DEPENDS += "flex-native bison-native" | ||
|
||
SRC_URI = "git://git.codelinaro.org/linaro/qcomlt/u-boot.git;branch=${SRCBRANCH};protocol=https" | ||
|
||
SRCREV = "bea334ce7578d4cb645cf22d423ec11271feecfe" | ||
SRCBRANCH = "caleb/rbx-integration" | ||
|
||
S = "${WORKDIR}/git" | ||
B = "${WORKDIR}/build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SUMMARY = "U-Boot bootloader with support for Qualcom Computer on Modules" | ||
HOMEPAGE = "https://git.codelinaro.org/linaro/qcomlt/u-boot" | ||
SECTION = "bootloaders" | ||
|
||
DESCRIPTION = "U-Boot based on mainline U-Boot used by Qualcomm BSP in \ | ||
order to provide support for some backported features and fixes, or because it \ | ||
was submitted for revision and it takes some time to become part of a stable \ | ||
version, or because it is not applicable for upstreaming." | ||
|
||
BASEPV = "2024.10" | ||
PV = "${BASEPV}+git${SRCPV}" | ||
|
||
require recipes-bsp/u-boot/u-boot.inc | ||
require u-boot-qcom-common_${BASEPV}.inc | ||
|
||
DEPENDS += " \ | ||
xxd-native \ | ||
dtc-native \ | ||
qtestsign-native\ | ||
" | ||
|
||
PROVIDES += "u-boot" | ||
|
||
B = "${WORKDIR}/build" | ||
|
||
PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
COMPATIBLE_MACHINE = "(qcom-armv8a)" | ||
|
||
do_compile:append() { | ||
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 | ||
qtestsign -v6 aboot -o ${B}/qcm6490_defconfig/u-boot.mbn ${B}/qcm6490_defconfig/u-boot.elf | ||
} | ||
|
||
do_deploy:append() { | ||
cp -r ${B}/qcm6490_defconfig/u-boot.mbn ${DEPLOYDIR}/u-boot-qcs6490-rb3gen2.mbn | ||
cp -r ${B}/qcm6490_defconfig/u-boot.elf ${DEPLOYDIR}/u-boot-qcs6490-rb3gen2.elf | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
SUMMARY = "qtestsign is a simple tool to sign ELF Qualcomm firmware images" | ||
HOMEPAGE = "https://github.com/msm8916-mainline/qtestsign" | ||
LICENSE = "GPL-2.0-only" | ||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
|
||
SRC_URI = "git://github.com/msm8916-mainline/qtestsign.git;branch=main;protocol=https" | ||
SRCREV = "ce6ba20f4ead008e5b522a81179c98dd48ccf06e" | ||
|
||
INHIBIT_DEFAULT_DEPS = "1" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
inherit python3native | ||
|
||
do_install() { | ||
install -d ${D}${bindir} | ||
install -d ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign | ||
|
||
cd ${S} | ||
cp -r * ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign | ||
|
||
rm ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign/README.md | ||
rm ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign/COPYING | ||
rm ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign/requirements.txt | ||
|
||
ln -sr ${D}${PYTHON_SITEPACKAGES_DIR}/qtestsign/qtestsign.py ${D}${bindir}/qtestsign | ||
} | ||
|
||
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/qtestsign" | ||
RDEPENDS:${PN} = "python3 python3-cryptography" | ||
|
||
BBCLASSEXTEND = "native nativesdk" |