Skip to content

Commit

Permalink
Merge pull request #689 from ricardosalveti/esp-qcom-image
Browse files Browse the repository at this point in the history
esp-qcom-image cleanup
  • Loading branch information
lumag authored Dec 5, 2024
2 parents 2fbe34c + f5c1048 commit 210c102
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions recipes-kernel/images/esp-qcom-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ DESCRIPTION = "EFI System Partition Image to boot Qualcomm boards"
PACKAGE_INSTALL = " \
linux-qcom-uki \
systemd-boot \
systemd-bootconf \
"

KERNELDEPMODDEPEND = ""
Expand All @@ -14,4 +13,19 @@ inherit image
IMAGE_FSTYPES = "vfat"
IMAGE_FSTYPES_DEBUGFS = ""

LINGUAS_INSTALL = ""
# UFS requires vfat sector size of 4096 (default is 512)
VFAT_SECTOR_SIZE ?= "4096"
EXTRA_IMAGECMD:vfat += " -S ${VFAT_SECTOR_SIZE}"

# Align image size with the expected partition size (512MB)
IMAGE_ROOTFS_SIZE = "524288"
IMAGE_ROOTFS_MAXSIZE = "524288"
IMAGE_ROOTFS_EXTRA_SPACE = "0"

IMAGE_LINGUAS = ""
IMAGE_FEATURES = ""

remove_unused_files() {
find ${IMAGE_ROOTFS} -mindepth 1 ! -path "${IMAGE_ROOTFS}/EFI*" -exec rm -rf {} +
}
IMAGE_PREPROCESS_COMMAND:append = " remove_unused_files"

0 comments on commit 210c102

Please sign in to comment.