powerpc/configs: merge pseries_defconfig and pseries_le_defconfig
PATCH 1/2 powerpc/configs: merge pseries_defconfig and pseries_le_defconfig
These two configs should be identical with the exception of big or little endian
The big endian version has XMON_DEFAULT turned on while the little endian has XMON_DEFAULT not set. Enable XMON_DEFAULT for little endian.
--- arch/powerpc/configs/pseries_le_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/configs/pseries_le_defconfig +1 -0
@@ -298,6 +298,7 @@ CONFIG_CODE_PATCHING_SELFTEST=y CONFIG_FTR_FIXUP_SELFTEST=y CONFIG_MSI_BITMAP_SELFTEST=y CONFIG_XMON=y +CONFIG_XMON_DEFAULT=y CONFIG_CRYPTO_TEST=m CONFIG_CRYPTO_PCBC=m CONFIG_CRYPTO_HMAC=y
Signature · 1 line
1.9.1
PATCH 2/2 powerpc: replace pseries_le_defconfig with a Makefile target using merge_config
Rather than continuing to maintain a copy of pseries_defconfig with enabled CONFIG_CPU_LITTLE_ENDIAN, use the generic merge_config script and use an le.config to enable little endian on top of pseries_defconfig without the need for a duplicated _defconfig file.
This method will require less maintenance in the future and will ensure that both 'defconfigs' are always in sync.
--- arch/powerpc/Makefile | 3 + arch/powerpc/configs/le.config | 1 + arch/powerpc/configs/pseries_le_defconfig | 320 ------------------------------ 3 files changed, 4 insertions(+), 320 deletions(-) create mode 100644 arch/powerpc/configs/le.config delete mode 100644 arch/powerpc/configs/pseries_le_defconfig
arch/powerpc/Makefile +3 -0
@@ -269,6 +269,9 @@ bootwrapper_install: %.dtb: scripts $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) +pseries_le_defconfig: pseries_defconfig + $(Q)$(MAKE) le.config + define archhelp @echo '* zImage - Build default images selected by kernel config' @echo ' zImage.* - Compressed kernel image (arch/$(ARCH)/boot/zImage.*)'
arch/powerpc/configs/le.config new file +1 -0
@@ -0,0 +1 @@ +CONFIG_CPU_LITTLE_ENDIAN=y
arch/powerpc/configs/pseries_le_defconfig deleted +0 -320
320 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi Cyril,
Quoted 6 lines
These two configs should be identical with the exception of big or little endian
The big endian version has
XMON_DEFAULTturned on while the little endian hasXMON_DEFAULTnot set. EnableXMON_DEFAULTfor little endian.
I disabled it on the LE defconfig on purpose. In most cases we want to get the kernel back around and running again. I got sick of building a mainline kernel for a non development box and coming back to it stuck in xmon.
Should we disable it by default and require developers who want xmon to set the config option, or use the xmon=on boot?
Anton
Quoted 9 lines · Anton Blanchard
Hi Cyril,
Quoted 6 lines
These two configs should be identical with the exception of big or little endian
The big endian version has
XMON_DEFAULTturned on while the little endian hasXMON_DEFAULTnot set. EnableXMON_DEFAULTfor little endian.
Quoted 7 lines
I disabled it on the LE defconfig on purpose. In most cases we want to get the kernel back around and running again. I got sick of building a mainline kernel for a non development box and coming back to it stuck in xmon.
Should we disable it by default and require developers who want xmon to set the config option, or use the xmon=on boot?
I think that it's a good idea to keep it disabled by default
Quoted 6 lines
Anton
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
Quoted 15 lines · Denis Kirjanov
Quoted 14 lines · Anton Blanchard
Hi Cyril,
Quoted 6 lines
These two configs should be identical with the exception of big or little endian
The big endian version has
XMON_DEFAULTturned on while the little endian hasXMON_DEFAULTnot set. EnableXMON_DEFAULTfor little endian.I disabled it on the LE defconfig on purpose. In most cases we want to get the kernel back around and running again. I got sick of building a mainline kernel for a non development box and coming back to it stuck in xmon.
Quoted 4 lines
Quoted 2 lines
Should we disable it by default and require developers who want xmon to set the config option, or use the xmon=on boot?
I think that it's a good idea to keep it disabled by default
Sure, that behaviour makes sense since and the goal here is to have them be the same, I'll resent the patch to go the other way and turn XMON_DEFAULT off in big endian.
Thanks,
Cyril
Quoted 6 lines
Quoted 6 lines
Anton
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev