summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd-boot_255.6.bb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-07-11 00:56:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-13 23:28:30 +0100
commit052ddf26b119560da6ef373add30805ed144d9ef (patch)
treecae26e393d24de729a042e28f83cc47bf75b1897 /meta/recipes-core/systemd/systemd-boot_255.6.bb
parent74cd617cbb093a2948413213942bd664fb83d83f (diff)
downloadpoky-052ddf26b119560da6ef373add30805ed144d9ef.tar.gz
systemd-boot: upgrade from 255.6 to 256
Patch 0001-src-boot-efi-meson.build-ensure-VERSION_TAG-exists-i.patch is added to resolve build time error. (From OE-Core rev: c3f53f641d04109bf88e51e44debb6c74582b5d0) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-boot_255.6.bb')
-rw-r--r--meta/recipes-core/systemd/systemd-boot_255.6.bb67
1 files changed, 0 insertions, 67 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_255.6.bb b/meta/recipes-core/systemd/systemd-boot_255.6.bb
deleted file mode 100644
index 9a6d8e9d6e..0000000000
--- a/meta/recipes-core/systemd/systemd-boot_255.6.bb
+++ /dev/null
@@ -1,67 +0,0 @@
1require systemd.inc
2FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"
3
4require conf/image-uefi.conf
5
6DEPENDS = "intltool-native libcap util-linux gperf-native python3-jinja2-native python3-pyelftools-native"
7
8inherit meson pkgconfig gettext
9inherit deploy
10
11LDFLAGS =+ "${@ " ".join(d.getVar('LD').split()[1:])} "
12
13EFI_LD = "bfd"
14LDFLAGS += "-fuse-ld=${EFI_LD}"
15
16do_write_config[vardeps] += "EFI_LD"
17do_write_config:append() {
18 cat >${WORKDIR}/meson-${PN}.cross <<EOF
19[binaries]
20c_ld = ${@meson_array('EFI_LD', d)}
21EOF
22}
23
24MESON_CROSS_FILE:append = " --cross-file ${WORKDIR}/meson-${PN}.cross"
25
26MESON_TARGET = "systemd-boot"
27
28EXTRA_OEMESON += "-Defi=true \
29 -Dbootloader=true \
30 -Dman=false \
31 "
32
33# install to the image as boot*.efi if its the EFI_PROVIDER,
34# otherwise install as the full name.
35# This allows multiple bootloaders to coexist in a single image.
36python __anonymous () {
37 import re
38 target = d.getVar('TARGET_ARCH')
39 prefix = "" if d.getVar('EFI_PROVIDER') == "systemd-boot" else "systemd-"
40 systemdimage = prefix + d.getVar("EFI_BOOT_IMAGE")
41 d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage)
42 prefix = "systemd-" if prefix == "" else ""
43 d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix)
44}
45
46FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
47
48RDEPENDS:${PN} += "virtual-systemd-bootconf"
49
50CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t"
51
52COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
53COMPATIBLE_HOST:x86-x32 = "null"
54
55do_install() {
56 install -d ${D}${EFI_FILES_PATH}
57 install ${B}/src/boot/efi/systemd-boot*.efi ${D}${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}
58}
59
60do_deploy () {
61 install ${B}/src/boot/efi/systemd-boot*.efi ${DEPLOYDIR}
62 install ${B}/src/boot/efi/linux*.efi.stub ${DEPLOYDIR}
63 install ${B}/src/boot/efi/addon*.efi.stub ${DEPLOYDIR}
64}
65
66addtask deploy before do_build after do_compile
67