mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
systemd-boot: improve cross file generation
The meson.cross generated by the class already has c and objcopy entries, so these can be removed. Pass the --cross-file option in MESON_CROSS_FILE to ensure the ordering is always correct. (From OE-Core rev: 302551de19edb1eb7333a6d1d5fdddacdbb9c349) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
90801cd8cb
commit
7f58848a32
@@ -13,22 +13,21 @@ LDFLAGS:prepend = "${@ " ".join(d.getVar('LD').split()[1:])} "
|
||||
EFI_LD = "bfd"
|
||||
LDFLAGS:append = " -fuse-ld=${EFI_LD}"
|
||||
|
||||
do_write_config[vardeps] += "CC OBJCOPY EFI_LD"
|
||||
do_write_config[vardeps] += "EFI_LD"
|
||||
do_write_config:append() {
|
||||
cat >${WORKDIR}/meson-${PN}.cross <<EOF
|
||||
[binaries]
|
||||
c = ${@meson_array('CC', d)}
|
||||
objcopy = ${@meson_array('OBJCOPY', d)}
|
||||
c_ld = ${@meson_array('EFI_LD', d)}
|
||||
EOF
|
||||
}
|
||||
|
||||
MESON_CROSS_FILE:append = " --cross-file ${WORKDIR}/meson-${PN}.cross"
|
||||
|
||||
MESON_TARGET = "systemd-boot"
|
||||
|
||||
EXTRA_OEMESON += "-Defi=true \
|
||||
-Dbootloader=true \
|
||||
-Dman=false \
|
||||
--cross-file ${WORKDIR}/meson-${PN}.cross \
|
||||
"
|
||||
|
||||
# install to the image as boot*.efi if its the EFI_PROVIDER,
|
||||
|
||||
Reference in New Issue
Block a user