Skip to content

Commit

Permalink
powerpc/Makefile: Add ppc32/ppc64_randconfig targets
Browse files Browse the repository at this point in the history
Make it easier to generate a 32 or 64-bit specific randconfig.

Signed-off-by: Michael Ellerman <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Requested-by: Randy Dunlap <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
mpe committed May 23, 2021
1 parent 40999b0 commit f259fb8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/powerpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,16 @@ ppc64_book3e_allmodconfig:
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/85xx-64bit.config \
-f $(srctree)/Makefile allmodconfig

PHONY += ppc32_randconfig
ppc32_randconfig:
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/32-bit.config \
-f $(srctree)/Makefile randconfig

PHONY += ppc64_randconfig
ppc64_randconfig:
$(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctree)/arch/powerpc/configs/64-bit.config \
-f $(srctree)/Makefile randconfig

define archhelp
@echo '* zImage - Build default images selected by kernel config'
@echo ' zImage.* - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)'
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/configs/32-bit.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# CONFIG_PPC64 is not set
1 change: 1 addition & 0 deletions arch/powerpc/configs/64-bit.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_PPC64=y

0 comments on commit f259fb8

Please sign in to comment.