@@ -8,11 +8,15 @@ deltask do_compile
do_install () {
install -Dm 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
+ # hardware ID tables for "ukify --hwids", as installed by systemd
+ install -d ${D}${nonarch_libdir}/systemd/boot
+ cp -R --no-preserve=ownership ${S}/src/boot/hwids ${D}${nonarch_libdir}/systemd/boot/
+ rm -rf ${D}${nonarch_libdir}/systemd/boot/hwids/test
}
addtask install after do_patch
PACKAGES = "${PN}"
-FILES:${PN} = "${bindir}/ukify"
+FILES:${PN} = "${bindir}/ukify ${nonarch_libdir}/systemd/boot/hwids"
RDEPENDS:${PN} += "python3-pefile-native"
Since systemd 260, ukify fills the .hwids section from /usr/lib/systemd/boot/hwids/<efi-arch> when --hwids is not given, where systemd installs the device tables from src/boot/hwids. The native recipe only installs ukify, so the only tables ukify can find are the build host's. Install them in the native sysroot, so that a UKI can use the ones from the same systemd version as the stub (UKI_HWIDS, next commit). AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com> --- meta/recipes-core/systemd/systemd-boot-native_262.2.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)