Skip to content
Open
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
7 changes: 6 additions & 1 deletion classes-recipe/image_types_qcom.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ create_qcomflash_pkg() {
[ -n "${QCOM_ESP_FILE}" ] && install -m 0644 ${QCOM_ESP_FILE} efi.bin

# dtb image
bootloader_provider='${PREFERRED_PROVIDER_virtual/bootloader}'
if [ -n "${QCOM_DTB_DEFAULT}" ] && \
[ -f "${DEPLOY_DIR_IMAGE}/dtb-${QCOM_DTB_DEFAULT}-image.vfat" ]; then
# default image
Expand All @@ -61,6 +62,11 @@ create_qcomflash_pkg() {
install -m 0644 ${dtbimg} .
done
fi
case "$bootloader_provider" in
u-boot*)
install -m 0644 ${DEPLOY_DIR_IMAGE}/qclinuxfitImage ${QCOM_DTB_FILE}
;;
esac

# vmlinux
[ -e "${DEPLOY_DIR_IMAGE}/vmlinux" -a \
Expand Down Expand Up @@ -127,7 +133,6 @@ create_qcomflash_pkg() {

# bootloader selection
bootloader_bin="${DEPLOY_DIR_IMAGE}/${QCOM_BOOT_FILES_SUBDIR}/uefi.elf"
bootloader_provider='${PREFERRED_PROVIDER_virtual/bootloader}'
case "$bootloader_provider" in
u-boot*)
bootloader_bin="${DEPLOY_DIR_IMAGE}/u-boot-${UBOOT_CONFIG_DEFAULT}.mbn"
Expand Down
Loading