Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-qcom-image cleanup #689

Merged
merged 6 commits into from
Dec 5, 2024
Merged
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
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"
Loading