summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd-boot_254.bb7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_254.bb b/meta/recipes-core/systemd/systemd-boot_254.bb
index 1b8ff6e3ab..642a5fafe7 100644
--- a/meta/recipes-core/systemd/systemd-boot_254.bb
+++ b/meta/recipes-core/systemd/systemd-boot_254.bb
@@ -13,22 +13,21 @@ LDFLAGS:prepend = "${@ " ".join(d.getVar('LD').split()[1:])} "
13EFI_LD = "bfd" 13EFI_LD = "bfd"
14LDFLAGS:append = " -fuse-ld=${EFI_LD}" 14LDFLAGS:append = " -fuse-ld=${EFI_LD}"
15 15
16do_write_config[vardeps] += "CC OBJCOPY EFI_LD" 16do_write_config[vardeps] += "EFI_LD"
17do_write_config:append() { 17do_write_config:append() {
18 cat >${WORKDIR}/meson-${PN}.cross <<EOF 18 cat >${WORKDIR}/meson-${PN}.cross <<EOF
19[binaries] 19[binaries]
20c = ${@meson_array('CC', d)}
21objcopy = ${@meson_array('OBJCOPY', d)}
22c_ld = ${@meson_array('EFI_LD', d)} 20c_ld = ${@meson_array('EFI_LD', d)}
23EOF 21EOF
24} 22}
25 23
24MESON_CROSS_FILE:append = " --cross-file ${WORKDIR}/meson-${PN}.cross"
25
26MESON_TARGET = "systemd-boot" 26MESON_TARGET = "systemd-boot"
27 27
28EXTRA_OEMESON += "-Defi=true \ 28EXTRA_OEMESON += "-Defi=true \
29 -Dbootloader=true \ 29 -Dbootloader=true \
30 -Dman=false \ 30 -Dman=false \
31 --cross-file ${WORKDIR}/meson-${PN}.cross \
32 " 31 "
33 32
34# install to the image as boot*.efi if its the EFI_PROVIDER, 33# install to the image as boot*.efi if its the EFI_PROVIDER,