summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd-boot_250.1.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-01-19 11:40:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-20 11:57:28 +0000
commite6d9cc20a2c34c31e40de8746674058dd89adeef (patch)
treea5fbb6389b5d0d66068adda715e34107e180ede3 /meta/recipes-core/systemd/systemd-boot_250.1.bb
parentd072d02acddf31c9c29e5fc1f33c0188a0468e70 (diff)
downloadpoky-e6d9cc20a2c34c31e40de8746674058dd89adeef.tar.gz
systemd: update 250.1 -> 250.3
(From OE-Core rev: 4d3d6c0093113166df2b395f0c2f1e833e84a093) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-boot_250.1.bb')
-rw-r--r--meta/recipes-core/systemd/systemd-boot_250.1.bb74
1 files changed, 0 insertions, 74 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_250.1.bb b/meta/recipes-core/systemd/systemd-boot_250.1.bb
deleted file mode 100644
index 23a64bf30d..0000000000
--- a/meta/recipes-core/systemd/systemd-boot_250.1.bb
+++ /dev/null
@@ -1,74 +0,0 @@
1require systemd.inc
2FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"
3
4require conf/image-uefi.conf
5
6DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native python3-jinja2-native"
7
8inherit meson pkgconfig gettext
9inherit deploy
10
11LDFLAGS:prepend = "${@ " ".join(d.getVar('LD').split()[1:])} "
12
13do_write_config[vardeps] += "CC OBJCOPY"
14do_write_config:append() {
15 cat >${WORKDIR}/meson-${PN}.cross <<EOF
16[binaries]
17efi_cc = ${@meson_array('CC', d)}
18objcopy = ${@meson_array('OBJCOPY', d)}
19EOF
20}
21
22# need to use ${HOST_PREFIX} here, otherwise ld.bfd could be used from HOSTTOOLS_NONFATAL
23EFI_LD = "bfd"
24
25EXTRA_OEMESON += "-Defi=true \
26 -Dgnu-efi=true \
27 -Defi-includedir=${STAGING_INCDIR}/efi \
28 -Defi-libdir=${STAGING_LIBDIR} \
29 -Defi-ld=${EFI_LD} \
30 -Dman=false \
31 --cross-file ${WORKDIR}/meson-${PN}.cross \
32 "
33
34# install to the image as boot*.efi if its the EFI_PROVIDER,
35# otherwise install as the full name.
36# This allows multiple bootloaders to coexist in a single image.
37python __anonymous () {
38 import re
39 target = d.getVar('TARGET_ARCH')
40 prefix = "" if d.getVar('EFI_PROVIDER') == "systemd-boot" else "systemd-"
41 systemdimage = prefix + d.getVar("EFI_BOOT_IMAGE")
42 d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage)
43 prefix = "systemd-" if prefix == "" else ""
44 d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix)
45}
46
47FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
48
49RDEPENDS:${PN} += "virtual-systemd-bootconf"
50
51# Imported from the old gummiboot recipe
52TUNE_CCARGS:remove = "-mfpmath=sse"
53
54COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux"
55COMPATIBLE_HOST:x86-x32 = "null"
56
57do_compile() {
58 ninja \
59 src/boot/efi/${SYSTEMD_BOOT_IMAGE_PREFIX}${SYSTEMD_BOOT_IMAGE} \
60 src/boot/efi/linux${EFI_ARCH}.efi.stub
61}
62
63do_install() {
64 install -d ${D}${EFI_FILES_PATH}
65 install ${B}/src/boot/efi/systemd-boot*.efi ${D}${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}
66}
67
68do_deploy () {
69 install ${B}/src/boot/efi/systemd-boot*.efi ${DEPLOYDIR}
70 install ${B}/src/boot/efi/linux*.efi.stub ${DEPLOYDIR}
71}
72
73addtask deploy before do_build after do_compile
74