Skip to contentSkip to conversation

powerpc/configs: merge pseries_defconfig and pseries_le_defconfig

PATCH Superseded Cyril Bur 3 participants 5 messages May 15, 2015 – May 25, 2015 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Cyril Bur

author
#0 lore raw

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
index 09bc96e..2497c7d 100644
@@ -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
author
#1 lore raw

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
index 07a4808..e302c2c 100644
@@ -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
new file mode 100644
index 0000000..ee43fdb
@@ -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
#2 lore raw
In reply to Cyril Bur

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_DEFAULT turned on while the little endian has XMON_DEFAULT not set. Enable XMON_DEFAULT for 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

#3 lore raw
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_DEFAULT turned on while the little endian has XMON_DEFAULT not set. Enable XMON_DEFAULT for 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

author
#4 lore raw
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_DEFAULT turned on while the little endian has XMON_DEFAULT not set. Enable XMON_DEFAULT for 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