]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6413d456e95427c5fdf6d8f293e4f5d744b38c9d
treee7a5f8c66f04e6ed1dc75740447dbbeda5f40e0d
parent10081a8d386e8d27bd6237c502ee0d88f0b2db40
powerpc: Kconfig: remove BE-only platforms from LE kernel build

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