Thread (10 messages) 10 messages, 4 authors, 2022-03-02

Re: powerpc{32,64} randconfigs

From: Christophe Leroy <hidden>
Date: 2021-04-21 06:13:10
Also in: linux-kbuild


Le 21/04/2021 à 01:31, Randy Dunlap a écrit :
quoted hunk ↗ jump to hunk
--- linux-next-20210420.orig/arch/powerpc/platforms/Kconfig.cputype
+++ linux-next-20210420/arch/powerpc/platforms/Kconfig.cputype
@@ -1,11 +1,12 @@
  # SPDX-License-Identifier: GPL-2.0
  config PPC32
  	bool
-	default y if !PPC64
+	default y if !PPC64 || "$(ARCH)" = "ppc32"
I don't think you need that change. If the ARCH is neither 'powerpc' not 'ppc64' CONFIG_PPC64 isn't 
set so CONFIG_PPC32 is set.

  	select KASAN_VMALLOC if KASAN && MODULES
  
  config PPC64
-	bool "64-bit kernel"
+	bool "64-bit kernel" if "$(ARCH)" = "powerpc"
+	default y if "$(ARCH)" = "ppc64"
  	select ZLIB_DEFLATE
  	help
  	  This option selects whether a 32-bit or a 64-bit kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help