All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linux: Fix powerpc64le defconfig selection
@ 2022-05-10  2:20 Joel Stanley
  2022-05-13 21:52 ` Arnout Vandecappelle
  2022-05-28 19:25 ` Peter Korsgaard
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Stanley @ 2022-05-10  2:20 UTC (permalink / raw)
  To: buildroot; +Cc: mpe

The default defconfig target for the 64 bit powerpc kernel is
ppc64_defconfig, the big endian configuration.

When building for powerpc64le users want the little endian kernel as
they can't boot LE userspace on a BE kernel.

Fix up the defconfig used in this case. This will avoid the following
autobuilder failure:

 VDSO32A arch/powerpc/kernel/vdso32/sigtramp.o
 cc1: error: ‘-m32’ not supported in this configuratioin
 make[4]: *** [arch/powerpc/kernel/vdso32/Makefile:49: arch/powerpc/kernel/vdso32/sigtramp.o] Error 1

 http://autobuild.buildroot.net/results/dd76d53bab56470c0b83e296872d7bb90f9e8296/

Note that the failure indicates the toolchain is configured to disable
the 32 bit target, causing the kernel to fail when building the 32 bit
VDSO. This is only a problem on the BE kernel as the LE kernel disables
CONFIG_COMPAT, aka 32 bit userspace support, by default.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
Alternatively, we could disalow BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
when BR2_powerpc64le=y.

 linux/linux.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/linux/linux.mk b/linux/linux.mk
index b27e436b0d57..67832127d92e 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -307,7 +307,11 @@ endif
 ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
 LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
 else ifeq ($(BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG),y)
+ifeq ($(BR2_powerpc64le),y)
+LINUX_KCONFIG_DEFCONFIG = ppc64le_defconfig
+else
 LINUX_KCONFIG_DEFCONFIG = defconfig
+endif
 else ifeq ($(BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG),y)
 LINUX_KCONFIG_FILE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE))
 endif
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-28 19:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  2:20 [Buildroot] [PATCH] linux: Fix powerpc64le defconfig selection Joel Stanley
2022-05-13 21:52 ` Arnout Vandecappelle
2022-05-16 13:17   ` Michael Ellerman
2022-05-18 12:03     ` Arnd Bergmann
2022-05-18 17:23     ` Arnout Vandecappelle
2022-05-18 17:23       ` Arnout Vandecappelle
2022-05-26  6:57       ` Michael Ellerman
2022-05-17  6:13   ` Joel Stanley
2022-05-18 17:32     ` Arnout Vandecappelle
2022-05-28 19:25 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.