Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ machine: unset

target:
- core-image-base
- packagegroup-qcom-ci
1 change: 1 addition & 0 deletions ci/qcom-distro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ repos:

target:
- qcom-multimedia-image
- packagegroup-qcom-ci
8 changes: 6 additions & 2 deletions classes-recipe/image_types_qcom.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ create_qcomflash_pkg() {
if [ -n "${QCOM_CDT_FILE}" ]; then
install -m 0644 ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/${QCOM_CDT_FILE}.bin cdt.bin
# For machines with a published cdt file, let's make sure we flash it
sed -i '/label="cdt"/ s/filename=""/filename="cdt.bin"/' rawprogram*.xml
sed -i '/label="cdt"/ s/filename="[^"]*"/filename="cdt.bin"/' rawprogram*.xml
fi

for logfs in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name 'logfs_*.bin'`; do
Expand All @@ -103,7 +103,11 @@ create_qcomflash_pkg() {
done

# boot firmware
for bfw in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f -name '*.elf' -o -name '*.mbn' -o -name '*.fv'`; do
for bfw in `find ${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR} -maxdepth 1 -type f \
-name '*.elf' -o \
-name '*.mbn*' -o \
-name '*.fv' -o \
-name 'sec.dat'` ; do
install -m 0644 ${bfw} .
done

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SUMMARY = "Prebuilt bootlader images for Dragonboard 410c"

LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4d087ee0965cb059f1b2f9429e166f64"

SRC_URI = "https://releases.linaro.org/96boards/dragonboard410c/qualcomm/firmware/linux-board-support-package-r${PV}.zip"
SRC_URI[sha256sum] = "93070f58fa3aa6467baa881935c37c4da2df2a8af3248746931ce3d11a3a1200"

BOOTBINARIES = "linux-board-support-package-r${PV}"

QCOM_BOOT_IMG_SUBDIR = "dragonboard-410c"

include firmware-qcom-boot-common.inc

DEPENDS = "lk-db410c"

# Disable archall as we depend on arch-specific package
allarch_package_arch_handler:prepend() {
return
}

do_deploy() {
install -d ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
find "${S}/bootloaders-linux" -maxdepth 1 -name '*.mbn' -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;

install -m 0644 ${S}/cdt-linux/sbc_1.0_8016.bin ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
install -m 0644 ${S}/efs-seed/fs_image_linux.tar.gz.mbn.img ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
install -m 0644 ${S}/loaders/prog_emmc_firehose_8916.mbn ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}

install -m 0644 ${S}/LICENSE ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SUMMARY = "Prebuilt bootlader images for Dragonboard 820c"

LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4d087ee0965cb059f1b2f9429e166f64"

SRC_URI = "https://releases.linaro.org/96boards/dragonboard820c/qualcomm/firmware/linux-board-support-package-r${PV}.zip"
SRC_URI[sha256sum] = "6ee9c461b2b5dd2d3bd705bb5ea3f44b319ecb909b2772f305ce12439e089cd9"

BOOTBINARIES = "linux-board-support-package-r${PV}"

QCOM_BOOT_IMG_SUBDIR = "dragonboard-820c"

include firmware-qcom-boot-common.inc

DEPENDS = "lk-db820c"

# Disable archall as we depend on arch-specific package
allarch_package_arch_handler:prepend() {
return
}

do_deploy() {
install -d ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
find "${S}/bootloaders-linux" -maxdepth 1 \( -name '*.mbn' -o -name '*.elf' -o -name 'sec.dat' \) -exec install -m 0644 {} ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR} \;

install -m 0644 ${S}/cdt-linux/sbc_1.0_8096.bin ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
install -m 0644 ${S}/loaders/prog_ufs_firehose_8996_ddr.elf ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}

install -m 0644 ${S}/LICENSE ${DEPLOYDIR}/${QCOM_BOOT_IMG_SUBDIR}
}
6 changes: 6 additions & 0 deletions recipes-bsp/lk/lk-db410c-sd-boot_git.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require lk.inc

LK_BRANCH = "release/LA.BR.1.2.7-03810-8x16.0+sdboot"
LK_REVISION = "089944963d354403ab3b6a37b504c29f0949ecdc"
LK_MACHINE = "dragonboard-410c"
LK_FLAVOUR = "-sd-boot"
6 changes: 6 additions & 0 deletions recipes-bsp/lk/lk-db410c_git.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require lk.inc

LK_BRANCH = "release/LA.BR.1.2.7-03810-8x16.0"
LK_REVISION = "0a10f81d847e005244cfa59d7f4dd8c6acfd82f6"
LK_MACHINE = "dragonboard-410c"
LK_FLAVOUR = ""
9 changes: 9 additions & 0 deletions recipes-bsp/lk/lk-db820c_git.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require lk.inc

EXTRA_OEMAKE += "VERIFIED_BOOT=1"

LK_BRANCH = "release/LA.HB.1.3.2-19600-8x96.0"
LK_REVISION = "80e6b971bcb1d229ea90824b724b51398658c29a"
LK_SOC = "msm8996"
LK_MACHINE = "dragonboard-820c"
LK_FLAVOUR = ""
48 changes: 48 additions & 0 deletions recipes-bsp/lk/lk.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5a1abdab641eec675725c843f43f03af"

LK_BRANCH ?= "master"
LK_URI ?= "git://git.codelinaro.org/linaro/qcomlt/lk.git;protocol=https;branch=${LK_BRANCH};name=lk"
LK_REVISION ?= "179191bda57a555ca1803e157a03d2f0d33fa3c5"
LK_SOC ?= "msm8916"
LK_BUILDARGS ?= "EMMC_BOOT=1 TOOLCHAIN_PREFIX=${UNPACKDIR}/gcc/bin/arm-eabi- LD=${UNPACKDIR}/gcc/bin/arm-eabi-ld NOECHO="
LK_PV ?= "1.2.7-03810"

LK_MACHINE ?= "none"
LK_FLAVOUR ?= ""

# Use the "original" gcc for now
LK_GCC_URI ?= "git://git.codelinaro.org/clo/la/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8.git;protocol=https;name=gcc;subdir=gcc;nobranch=1"
#caf_migration/LA.BR.1.1.3.c4
LK_GCC_REVISION = "26e93f6af47f7bd3a9beb5c102a5f45e19bfa38a"

SRC_URI = " \
${LK_URI} \
${LK_GCC_URI} \
"
SRCREV_lk = "${LK_REVISION}"
SRCREV_gcc = "${LK_GCC_REVISION}"

EXTRA_OEMAKE = "${LK_SOC} ${LK_BUILDARGS}"

SRCREV_FORMAT = "lk_gcc"
PV = "${LK_PV}+git"

DEPENDS += "qtestsign-native"

do_compile:append() {
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1
qtestsign -v3 aboot -o ${S}/build-${LK_SOC}/emmc_appsboot_signed.mbn ${S}/build-${LK_SOC}/emmc_appsboot.mbn
}

#ALLOW_EMPTY:${PN} = "1"

inherit deploy

do_deploy() {
install -d ${DEPLOYDIR}/${LK_MACHINE}
install -D -p -m644 ${S}/build-${LK_SOC}/emmc_appsboot.mbn ${DEPLOYDIR}/${LK_MACHINE}/emmc_appsboot${LK_FLAVOUR}-unsigned.mbn
install -D -p -m644 ${S}/build-${LK_SOC}/emmc_appsboot_signed.mbn ${DEPLOYDIR}/${LK_MACHINE}/emmc_appsboot${LK_FLAVOUR}.mbn
}

addtask deploy before do_build after do_compile
13 changes: 13 additions & 0 deletions recipes-bsp/packagegroups/packagegroup-qcom-ci.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SUMMARY = "Extra userspace packages enabled for CI testing"

inherit packagegroup

# libssc depends on libqmi and protobuf which are part of meta-oe
RDEPENDS:${PN} = " \
firmware-qcom-boot-dragonboard410c \
firmware-qcom-boot-dragonboard820c \
hexagonrpc \
${@bb.utils.contains("BBLAYERS", "openembedded-layer", "libssc","", d)} \
libvmmem-dev \
libdmabufheap-dev \
"
8 changes: 0 additions & 8 deletions recipes-bsp/packagegroups/packagegroup-qcom.bb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ RDEPENDS:${PN}-boot-essential = " \
RDEPENDS:${PN}-boot-additional = " \
fastrpc \
"

# libssc depends on libqmi and protobuf which are part of meta-oe
RDEPENDS:${PN}-miscellaneous = " \
hexagonrpc \
${@bb.utils.contains("BBLAYERS", "openembedded-layer", "libssc","", d)} \
libvmmem-dev \
libdmabufheap-dev \
"
Loading