Skip to content

Commit af1ebca

Browse files
committed
powerpc: Add allmodconfig for all 32-bit sub-arches
32-bit powerpc kernels can be built for one of 5 sub-arches, see Kconfig.cputype: PPC_BOOK3S_32: "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx" PPC_85xx: "Freescale 85xx" PPC_8xx: "Freescale 8xx" 40x: "AMCC 40x" 44x: "AMCC 44x, 46x or 47x" By default none of these are built for a plain allmodconfig build, because it selects PPC64 which builds a 64-bit kernel. There is already a ppc32_allmodconfig, which enables PPC_BOOK3S_32. Add similar targets for the other 32-bit sub-arches to increase build coverage: ppc40x_allmodconfig ppc44x_allmodconfig ppc8xx_allmodconfig ppc85xx_allmodconfig Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240229114108.743810-1-mpe@ellerman.id.au
1 parent 3f9f355 commit af1ebca

5 files changed

Lines changed: 27 additions & 0 deletions

File tree

arch/powerpc/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,26 @@ ppc32_allmodconfig:
314314
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/book3s_32.config \
315315
-f $(srctree)/Makefile allmodconfig
316316

317+
generated_configs += ppc40x_allmodconfig
318+
ppc40x_allmodconfig:
319+
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/40x.config \
320+
-f $(srctree)/Makefile allmodconfig
321+
322+
generated_configs += ppc44x_allmodconfig
323+
ppc44x_allmodconfig:
324+
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/44x.config \
325+
-f $(srctree)/Makefile allmodconfig
326+
327+
generated_configs += ppc8xx_allmodconfig
328+
ppc8xx_allmodconfig:
329+
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/8xx.config \
330+
-f $(srctree)/Makefile allmodconfig
331+
332+
generated_configs += ppc85xx_allmodconfig
333+
ppc85xx_allmodconfig:
334+
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/85xx-32bit.config \
335+
-f $(srctree)/Makefile allmodconfig
336+
317337
generated_configs += ppc_defconfig
318338
ppc_defconfig:
319339
$(call merge_into_defconfig,book3s_32.config,)

arch/powerpc/configs/40x.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_PPC64=n
2+
CONFIG_40x=y

arch/powerpc/configs/44x.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_PPC64=n
2+
CONFIG_44x=y

arch/powerpc/configs/85xx-32bit.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CONFIG_PPC64=n
12
CONFIG_HIGHMEM=y
23
CONFIG_KEXEC=y
34
CONFIG_PPC_85xx=y

arch/powerpc/configs/8xx.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_PPC64=n
2+
CONFIG_PPC_8xx=y

0 commit comments

Comments
 (0)