linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] powerpc: Add ppc32_allmodconfig defconfig target
@ 2018-07-09 14:24 Michael Ellerman
  2018-07-09 14:24 ` [PATCH 2/2] powerpc: Add ppc64le and ppc64_book3e allmodconfig targets Michael Ellerman
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Michael Ellerman @ 2018-07-09 14:24 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: npiggin, rdunlap, malat

Because the allmodconfig logic just sets every symbol to M or Y, it
has the effect of always generating a 64-bit config, because
CONFIG_PPC64 becomes Y.

So to make it easier for folks to test 32-bit code, provide a phony
defconfig target that generates a 32-bit allmodconfig.

The 32-bit port has several mutually exclusive CPU types, we choose
the Book3S variants as that's what the help text in Kconfig says is
most common.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/Makefile                 | 5 +++++
 arch/powerpc/configs/book3s_32.config | 2 ++
 2 files changed, 7 insertions(+)
 create mode 100644 arch/powerpc/configs/book3s_32.config

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 2ea575cb3401..2556c2182789 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -354,6 +354,11 @@ mpc86xx_smp_defconfig:
 	$(call merge_into_defconfig,mpc86xx_basic_defconfig,\
 		86xx-smp 86xx-hw fsl-emb-nonhw)
 
+PHONY += ppc32_allmodconfig
+ppc32_allmodconfig:
+	$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/book3s_32.config \
+		-f $(srctree)/Makefile allmodconfig
+
 define archhelp
   @echo '* zImage          - Build default images selected by kernel config'
   @echo '  zImage.*        - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)'
diff --git a/arch/powerpc/configs/book3s_32.config b/arch/powerpc/configs/book3s_32.config
new file mode 100644
index 000000000000..8721eb7b1294
--- /dev/null
+++ b/arch/powerpc/configs/book3s_32.config
@@ -0,0 +1,2 @@
+CONFIG_PPC64=n
+CONFIG_PPC_BOOK3S_32=y
-- 
2.14.1

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

end of thread, other threads:[~2018-07-24 13:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 14:24 [PATCH 1/2] powerpc: Add ppc32_allmodconfig defconfig target Michael Ellerman
2018-07-09 14:24 ` [PATCH 2/2] powerpc: Add ppc64le and ppc64_book3e allmodconfig targets Michael Ellerman
2018-07-15 19:40   ` Randy Dunlap
2018-07-20 11:51     ` Michael Ellerman
2018-07-10  7:58 ` [PATCH 1/2] powerpc: Add ppc32_allmodconfig defconfig target Mathieu Malaterre
2018-07-10 13:47   ` Michael Ellerman
2018-07-11  7:09     ` Mathieu Malaterre
2018-07-11 13:50       ` Michael Ellerman
2018-07-14  1:59 ` Randy Dunlap
2018-07-20 11:58   ` Michael Ellerman
2018-07-14  4:35 ` Randy Dunlap
2018-07-20 12:18   ` Michael Ellerman
2018-07-24 13:59 ` [1/2] " Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).