diff options
| -rw-r--r-- | meta/recipes-core/systemd/systemd-boot_254.bb | 7 |
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:])} " | |||
| 13 | EFI_LD = "bfd" | 13 | EFI_LD = "bfd" |
| 14 | LDFLAGS:append = " -fuse-ld=${EFI_LD}" | 14 | LDFLAGS:append = " -fuse-ld=${EFI_LD}" |
| 15 | 15 | ||
| 16 | do_write_config[vardeps] += "CC OBJCOPY EFI_LD" | 16 | do_write_config[vardeps] += "EFI_LD" |
| 17 | do_write_config:append() { | 17 | do_write_config:append() { |
| 18 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | 18 | cat >${WORKDIR}/meson-${PN}.cross <<EOF |
| 19 | [binaries] | 19 | [binaries] |
| 20 | c = ${@meson_array('CC', d)} | ||
| 21 | objcopy = ${@meson_array('OBJCOPY', d)} | ||
| 22 | c_ld = ${@meson_array('EFI_LD', d)} | 20 | c_ld = ${@meson_array('EFI_LD', d)} |
| 23 | EOF | 21 | EOF |
| 24 | } | 22 | } |
| 25 | 23 | ||
| 24 | MESON_CROSS_FILE:append = " --cross-file ${WORKDIR}/meson-${PN}.cross" | ||
| 25 | |||
| 26 | MESON_TARGET = "systemd-boot" | 26 | MESON_TARGET = "systemd-boot" |
| 27 | 27 | ||
| 28 | EXTRA_OEMESON += "-Defi=true \ | 28 | EXTRA_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, |
