]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic/bootimg-efi: Factor out some common bits
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 30 Jul 2022 08:24:04 +0000 (10:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Aug 2022 10:29:57 +0000 (11:29 +0100)
commitc700cfd88473b9ed4e12a6620fb089f41bd95a9e
tree6bce3073f59e80dc494b3bcf845599a0b99b0d1a
parent6996472cd33d2d4b91821f2dfe24a27a697e4afe
wic/bootimg-efi: Factor out some common bits

The paths for configuring grub and systemd-boot have some common bits
around copying the initrd files. This will even grow when adding dtb
support. Factor this out into a class function.

Along this, avoid evaluating 'create-unified-kernel-image' multiple
times in do_configure_systemdboot and suppress a bogus warning about
"Ignoring missing initrd" when it is turned on.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
scripts/lib/wic/plugins/source/bootimg-efi.py