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
19 changes: 19 additions & 0 deletions classes/uki-esp-image.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Create an ESP image that has a type #2 EFI UKI and systemd-boot
#
# Copyright (c) 2025 Qualcomm Innovation Center, Inc.
#
# SPDX-License-Identifier: MIT
#

# Optional subfolder, dependant on where the ESP partition gets mounted
# intended to only have a leading slash, no trailing slash e.g. '/EFI', or just empty, ''
ESPFOLDER ?= "/EFI"

do_ukiesp() {
mkdir -p ${IMAGE_ROOTFS}${ESPFOLDER}/EFI/Linux

# Copy over files from deploy into the rootfs
install -m 0755 ${DEPLOY_DIR_IMAGE}/${UKI_FILENAME} ${IMAGE_ROOTFS}${ESPFOLDER}/EFI/Linux
}

addtask ukiesp after do_deploy uki before do_image_complete do_image_wic
11 changes: 9 additions & 2 deletions recipes-kernel/images/esp-qcom-image.bb
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
DESCRIPTION = "EFI System Partition Image to boot Qualcomm boards"

PACKAGE_INSTALL = " \
linux-qcom-uki \
systemd-boot \
"

KERNELDEPMODDEPEND = ""
KERNEL_DEPLOY_DEPEND = ""

inherit image
ESPFOLDER = ""
inherit image uki uki-esp-image

UKI_FILENAME = "${EFI_LINUX_IMG}"

UKI_CMDLINE = "root=${QCOM_BOOTIMG_ROOTFS} rw rootwait"

# Remove 'upstream' dtb, rely on EFI provided one
KERNEL_DEVICETREE = ""

IMAGE_FSTYPES = "vfat"
IMAGE_FSTYPES_DEBUGFS = ""
Expand Down
133 changes: 0 additions & 133 deletions recipes-kernel/images/linux-qcom-uki.bb

This file was deleted.

Loading