From 9ec9290ab839e57e4c993516b00f9420ccd15057 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 13 Feb 2017 08:48:04 -0700 Subject: [PATCH] systemd-boot: fix build issue on x86_64 Ensure -m32/-m64 are passed for EFI, as the buildsystem currently relies on the default for the toolchain, which isn't necessarily correct for an external toolchain. Signed-off-by: Christopher Larson --- recipes-bsp/systemd-boot/systemd-boot_232.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-bsp/systemd-boot/systemd-boot_232.bbappend diff --git a/recipes-bsp/systemd-boot/systemd-boot_232.bbappend b/recipes-bsp/systemd-boot/systemd-boot_232.bbappend new file mode 100644 index 0000000..801492e --- /dev/null +++ b/recipes-bsp/systemd-boot/systemd-boot_232.bbappend @@ -0,0 +1,7 @@ +# Ensure -m32/-m64 are passed for EFI, as the buildsystem currently relies on +# the default for the toolchain, which isn't necessarily correct for an +# external toolchain. +EFI_TUNE_ARCH = "-m32" +EFI_TUNE_ARCH_x86-64 = "-m64" +EFI_CC = "${@'${CC}'.split()[0]} ${EFI_TUNE_ARCH}" +EXTRA_OECONF += "'EFI_CC=${EFI_CC}'"