powerpc: Kconfig: remove BE-only platforms from LE kernel build
authorBoqun Feng <boqun.feng@gmail.com>
Sun, 6 Sep 2015 23:58:00 +0000 (07:58 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 29 Sep 2015 12:57:00 +0000 (22:57 +1000)
Currently, little endian is only supported on powernv and pseries,
however, Kconfigs still allow us to include other platforms in a LE
kernel, this may result in space wasting or even build error if some
BE-only platforms always assume they are built for a BE kernel. So just
modify the Kconfigs of BE-only platforms to remove them from being built
for a LE kernel.

For 32bit only platforms, nothing needs to be done, because
CPU_LITTLE_ENDIAN depends on PPC64. For 64bit supported platforms, add
CPU_BIG_ENDIAN to dependencies explicitly, so that these platforms will
be disabled for LE [Suggested-by: Cédric Le Goater <clg@fr.ibm.com>].

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/cell/Kconfig
arch/powerpc/platforms/maple/Kconfig
arch/powerpc/platforms/pasemi/Kconfig
arch/powerpc/platforms/powermac/Kconfig
arch/powerpc/platforms/ps3/Kconfig

index b0ac1773cea698b2bbcd73562a5e7a3a4c19f068..429fc59d2a476c0f0ca66589121d772909ec45b4 100644 (file)
@@ -25,7 +25,7 @@ config PPC_CELL_NATIVE
 
 config PPC_IBM_CELL_BLADE
        bool "IBM Cell Blade"
-       depends on PPC64 && PPC_BOOK3S
+       depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
        select PPC_CELL_NATIVE
        select PPC_OF_PLATFORM_PCI
        select PCI
@@ -35,7 +35,7 @@ config PPC_IBM_CELL_BLADE
 
 config PPC_CELL_QPACE
        bool "IBM Cell - QPACE"
-       depends on PPC64 && PPC_BOOK3S
+       depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
        select PPC_CELL_COMMON
 
 config AXON_MSI
index 1ea621a94c3b37b7be099b5e54bb36fbee0c6dcc..e359d0db092cf1c401bb9c4f4454d36c4ef97f9f 100644 (file)
@@ -1,5 +1,5 @@
 config PPC_MAPLE
-       depends on PPC64 && PPC_BOOK3S
+       depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
        bool "Maple 970FX Evaluation Board"
        select PCI
        select MPIC
index a2aeb327d185a4c1d1e4bbb77c117f1a22558736..00d4b28cbb6050cbbf0ed19bbbd81793637b100b 100644 (file)
@@ -1,5 +1,5 @@
 config PPC_PASEMI
-       depends on PPC64 && PPC_BOOK3S
+       depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
        bool "PA Semi SoC-based platforms"
        default n
        select MPIC
index 607124bae2e76942285208a4b42f4f3a4bc900f1..43c606268baf5afe650e972002d6f625b5d6a5c1 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_PMAC
        bool "Apple PowerMac based machines"
-       depends on PPC_BOOK3S
+       depends on PPC_BOOK3S && CPU_BIG_ENDIAN
        select MPIC
        select PCI
        select PPC_INDIRECT_PCI if PPC32
index 56f274064d6cfd192fb3a6f20b06068c68c5eb36..b27f40f26efc26c4cd8d22da5962536959c04d42 100644 (file)
@@ -1,6 +1,6 @@
 config PPC_PS3
        bool "Sony PS3"
-       depends on PPC64 && PPC_BOOK3S
+       depends on PPC64 && PPC_BOOK3S && CPU_BIG_ENDIAN
        select PPC_CELL
        select USB_OHCI_LITTLE_ENDIAN
        select USB_OHCI_BIG_ENDIAN_MMIO
This page took 0.028697 seconds and 5 git commands to generate.