diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-01-09 23:27:23 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-11 10:53:44 +0000 |
| commit | a02cdb56749a07a2bdc2699d74d0e98dbb84b304 (patch) | |
| tree | 2c9609ff2304aa9421ea26f5314d5712f5685ce9 /meta/recipes-core/systemd/systemd-boot_250.1.bb | |
| parent | 12c90b3c83767b3d20a411729fbb3c6ce1ef9173 (diff) | |
| download | poky-a02cdb56749a07a2bdc2699d74d0e98dbb84b304.tar.gz | |
systemd: update 249.7 -> 250.1
(From OE-Core rev: e22188e47d2fce2406d9db9c95289b3878eda69f)
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.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_250.1.bb b/meta/recipes-core/systemd/systemd-boot_250.1.bb new file mode 100644 index 0000000000..23a64bf30d --- /dev/null +++ b/meta/recipes-core/systemd/systemd-boot_250.1.bb | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | require systemd.inc | ||
| 2 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:" | ||
| 3 | |||
| 4 | require conf/image-uefi.conf | ||
| 5 | |||
| 6 | DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native python3-jinja2-native" | ||
| 7 | |||
| 8 | inherit meson pkgconfig gettext | ||
| 9 | inherit deploy | ||
| 10 | |||
| 11 | LDFLAGS:prepend = "${@ " ".join(d.getVar('LD').split()[1:])} " | ||
| 12 | |||
| 13 | do_write_config[vardeps] += "CC OBJCOPY" | ||
| 14 | do_write_config:append() { | ||
| 15 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
| 16 | [binaries] | ||
| 17 | efi_cc = ${@meson_array('CC', d)} | ||
| 18 | objcopy = ${@meson_array('OBJCOPY', d)} | ||
| 19 | EOF | ||
| 20 | } | ||
| 21 | |||
| 22 | # need to use ${HOST_PREFIX} here, otherwise ld.bfd could be used from HOSTTOOLS_NONFATAL | ||
| 23 | EFI_LD = "bfd" | ||
| 24 | |||
| 25 | EXTRA_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. | ||
| 37 | python __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 | |||
| 47 | FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}" | ||
| 48 | |||
| 49 | RDEPENDS:${PN} += "virtual-systemd-bootconf" | ||
| 50 | |||
| 51 | # Imported from the old gummiboot recipe | ||
| 52 | TUNE_CCARGS:remove = "-mfpmath=sse" | ||
| 53 | |||
| 54 | COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*)-linux" | ||
| 55 | COMPATIBLE_HOST:x86-x32 = "null" | ||
| 56 | |||
| 57 | do_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 | |||
| 63 | do_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 | |||
| 68 | do_deploy () { | ||
| 69 | install ${B}/src/boot/efi/systemd-boot*.efi ${DEPLOYDIR} | ||
| 70 | install ${B}/src/boot/efi/linux*.efi.stub ${DEPLOYDIR} | ||
| 71 | } | ||
| 72 | |||
| 73 | addtask deploy before do_build after do_compile | ||
| 74 | |||
