* [PATCH 0/3 v2] Disable systemd-boot from building with x32 IA Machine
@ 2017-09-26 0:52 Saul Wold
2017-09-26 0:52 ` [PATCH 1/3 v2] arch-x86: Add x86-x32 to MACHINEOVERRIDES Saul Wold
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Saul Wold @ 2017-09-26 0:52 UTC (permalink / raw)
To: openembedded-core, richard.purdie
systemd-boot has to be build for the native IA instruction set size, this
patch series is needed to disable it from building or being depended on
by WIC when building x32 as DEFAULTTUNE and not just as multilib.
V2: fixed x86_x32 to be x86-32 and made it consistent.
Sau!
Saul Wold (3):
arch-x86: Add x86-x32 to MACHINEOVERRIDES
wic: remove systemd-boot for x32
systemd-boot: Should not build x32
meta/classes/image_types_wic.bbclass | 1 +
meta/conf/machine/include/x86/arch-x86.inc | 1 +
meta/recipes-core/meta/wic-tools.bb | 1 +
meta/recipes-core/systemd/systemd-boot_234.bb | 1 +
4 files changed, 4 insertions(+)
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/3 v2] arch-x86: Add x86-x32 to MACHINEOVERRIDES 2017-09-26 0:52 [PATCH 0/3 v2] Disable systemd-boot from building with x32 IA Machine Saul Wold @ 2017-09-26 0:52 ` Saul Wold 2017-09-26 0:52 ` [PATCH 2/3 v2] wic: remove systemd-boot for x32 Saul Wold 2017-09-26 0:52 ` [PATCH 3/3 v2] systemd-boot: Should not build x32 Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Saul Wold @ 2017-09-26 0:52 UTC (permalink / raw) To: openembedded-core, richard.purdie This is needed as an x32 more generic x32 override later in the OVERRIDES, currently linux-gnux32 is the first override, but we need a stronger (later in the list) x32 override to deal with some needed x32 dependency overrides. Signed-off-by: Saul Wold <sgw@linux.intel.com> --- meta/conf/machine/include/x86/arch-x86.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/conf/machine/include/x86/arch-x86.inc b/meta/conf/machine/include/x86/arch-x86.inc index e51d595f74..31d30b3304 100644 --- a/meta/conf/machine/include/x86/arch-x86.inc +++ b/meta/conf/machine/include/x86/arch-x86.inc @@ -26,6 +26,7 @@ TUNE_LDARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-m elf32_x86_64', TUNE_ASARGS += "${@bb.utils.contains('TUNE_FEATURES', 'mx32', '-x32', '', d)}" # user mode qemu doesn't support x32 MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'mx32', 'qemu-usermode', '', d)}" +MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'mx32', 'x86-x32:', '' ,d)}" # ELF64 ABI TUNEVALID[m64] = "IA32e (x86_64) ELF64 standard ABI" -- 2.11.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3 v2] wic: remove systemd-boot for x32 2017-09-26 0:52 [PATCH 0/3 v2] Disable systemd-boot from building with x32 IA Machine Saul Wold 2017-09-26 0:52 ` [PATCH 1/3 v2] arch-x86: Add x86-x32 to MACHINEOVERRIDES Saul Wold @ 2017-09-26 0:52 ` Saul Wold 2017-09-26 0:52 ` [PATCH 3/3 v2] systemd-boot: Should not build x32 Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Saul Wold @ 2017-09-26 0:52 UTC (permalink / raw) To: openembedded-core, richard.purdie Currently systemd-boot actually incorporates libgcc, since the systemd-boot needs to be built with 64bit instructions it can not use the x32 based libgcc. Use the new override to ensure it gets overriden, linux-gnux32 could not be used because x86-64 has higher priority. Signed-off-by: Saul Wold <sgw@linux.intel.com> --- meta/classes/image_types_wic.bbclass | 1 + meta/recipes-core/meta/wic-tools.bb | 1 + 2 files changed, 2 insertions(+) diff --git a/meta/classes/image_types_wic.bbclass b/meta/classes/image_types_wic.bbclass index b825b47ce5..b9503c69c5 100644 --- a/meta/classes/image_types_wic.bbclass +++ b/meta/classes/image_types_wic.bbclass @@ -45,6 +45,7 @@ WKS_FILE_DEPENDS_DEFAULT = "syslinux-native bmap-tools-native cdrtools-native bt WKS_FILE_DEPENDS_BOOTLOADERS = "" WKS_FILE_DEPENDS_BOOTLOADERS_x86 = "syslinux grub-efi systemd-boot" WKS_FILE_DEPENDS_BOOTLOADERS_x86-64 = "syslinux grub-efi systemd-boot" +WKS_FILE_DEPENDS_BOOTLOADERS_x86-x32 = "syslinux grub-efi" WKS_FILE_DEPENDS ??= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" diff --git a/meta/recipes-core/meta/wic-tools.bb b/meta/recipes-core/meta/wic-tools.bb index 57dd37a440..09eb409e87 100644 --- a/meta/recipes-core/meta/wic-tools.bb +++ b/meta/recipes-core/meta/wic-tools.bb @@ -10,6 +10,7 @@ DEPENDS = "\ " DEPENDS_append_x86 = " syslinux grub-efi systemd-boot" DEPENDS_append_x86-64 = " syslinux grub-efi systemd-boot" +DEPENDS_append_x86-x32 = " syslinux grub-efi" INHIBIT_DEFAULT_DEPS = "1" -- 2.11.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3 v2] systemd-boot: Should not build x32 2017-09-26 0:52 [PATCH 0/3 v2] Disable systemd-boot from building with x32 IA Machine Saul Wold 2017-09-26 0:52 ` [PATCH 1/3 v2] arch-x86: Add x86-x32 to MACHINEOVERRIDES Saul Wold 2017-09-26 0:52 ` [PATCH 2/3 v2] wic: remove systemd-boot for x32 Saul Wold @ 2017-09-26 0:52 ` Saul Wold 2 siblings, 0 replies; 4+ messages in thread From: Saul Wold @ 2017-09-26 0:52 UTC (permalink / raw) To: openembedded-core, richard.purdie Since systemd-boot is a bootloader, it needs to be built for the native IA instruction set size and x32 is not valid. Signed-off-by: Saul Wold <sgw@linux.intel.com> --- meta/recipes-core/systemd/systemd-boot_234.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/systemd/systemd-boot_234.bb b/meta/recipes-core/systemd/systemd-boot_234.bb index 655797f3cc..7b18b25e35 100644 --- a/meta/recipes-core/systemd/systemd-boot_234.bb +++ b/meta/recipes-core/systemd/systemd-boot_234.bb @@ -21,6 +21,7 @@ EXTRA_OECONF = " --enable-gnuefi \ # Imported from the old gummiboot recipe TUNE_CCARGS_remove = "-mfpmath=sse" COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux" +COMPATIBLE_HOST_linux-gnux32 = "null" do_compile() { SYSTEMD_BOOT_EFI_ARCH="ia32" -- 2.11.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-26 0:52 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-26 0:52 [PATCH 0/3 v2] Disable systemd-boot from building with x32 IA Machine Saul Wold 2017-09-26 0:52 ` [PATCH 1/3 v2] arch-x86: Add x86-x32 to MACHINEOVERRIDES Saul Wold 2017-09-26 0:52 ` [PATCH 2/3 v2] wic: remove systemd-boot for x32 Saul Wold 2017-09-26 0:52 ` [PATCH 3/3 v2] systemd-boot: Should not build x32 Saul Wold
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox