Skip to content

Commit

Permalink
powerpc: Kconfig: remove BE-only platforms from LE kernel build
Browse files Browse the repository at this point in the history
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 <[email protected]>].

Signed-off-by: Boqun Feng <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
fbq authored and mpe committed Sep 29, 2015
1 parent 9ffecb1 commit e5e16d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/cell/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/maple/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pasemi/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powermac/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/ps3/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e5e16d8

Please sign in to comment.