-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
image_types_qcom: create image-specific subfolders
Create image-specific subfolder in DEPLOY_DIR + 1 qcomflash archive using the contents of that subfolder. This allows to run QDL for device flashing on that folder directly for local builds. Example of subfolder layout: core-image-base-qcs6490-rb3gen2-core-kit ├── aop.mbn -> ../aop.mbn ├── cpucp.elf -> ../cpucp.elf ├── devcfg.mbn -> ../devcfg.mbn ├── dtb.bin -> ../dtb-qcs6490-rb3gen2-image.vfat ├── dtb-qcs6490-rb3gen2-image.vfat -> ../dtb-qcs6490-rb3gen2-image.vfat ... The qcomflash image type was split on two types, as creation of tarball requires all generated symlinks in the image subfolder to be deployed to DEPLOY_DIR_IMAGE from IMGDEPLOY. Signed-off-by: Igor Opaniuk <[email protected]>
- Loading branch information
1 parent
9fd1724
commit 8745012
Showing
3 changed files
with
43 additions
and
19 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
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,16 @@ | ||
# Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. | ||
# SPDX-License-Identifier: BSD-3-Clause-Clear | ||
|
||
inherit image_types | ||
|
||
IMAGE_TYPES += "qcomflashpkg" | ||
|
||
QCOMFLASH_DIR = "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}" | ||
IMAGE_CMD:qcomflashpkg = "create_qcomflash_tarball" | ||
IMAGE_TYPEDEP:qcomflashpkg += "qcomflash" | ||
|
||
create_qcomflash_tarball() { | ||
# Create qcomflash tarball | ||
${IMAGE_CMD_TAR} --sparse --numeric-owner --transform="s,^\./,${IMAGE_BASENAME}-${MACHINE}/," -hcf- -C ${QCOMFLASH_DIR} . | gzip -f -9 -n -c --rsyncable > ${IMGDEPLOYDIR}/${IMAGE_NAME}.qcomflash.tar.gz | ||
ln -sf ${IMAGE_NAME}.qcomflash.tar.gz ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.qcomflash.tar.gz | ||
} |