[PATCH 1/2] powerpc: Little endian should depend on PPC64

Michael Ellerman mpe at ellerman.id.au
Wed Apr 22 10:27:12 AEST 2015


On Tue, 2015-04-21 at 13:33 -0500, Scott Wood wrote:
> On Tue, 2015-04-21 at 19:41 +1000, Michael Ellerman wrote:
> > The only little endian configuration we support is ppc64le, so we
> > shouldn't be asking which endian to use when building 32-bit kernels,
> > they are always big endian.
> > 
> > Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> > ---
> >  arch/powerpc/platforms/Kconfig.cputype | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
> > index 7264e91190be..12fc443b9d54 100644
> > --- a/arch/powerpc/platforms/Kconfig.cputype
> > +++ b/arch/powerpc/platforms/Kconfig.cputype
> > @@ -421,6 +421,7 @@ config CPU_BIG_ENDIAN
> >  
> >  config CPU_LITTLE_ENDIAN
> >  	bool "Build little endian kernel"
> > +	depends on PPC64
> >  	select PPC64_BOOT_WRAPPER
> >  	help
> >  	  Build a little endian kernel.
> 
> Shouldn't this be PPC_BOOK3S_64?

Ah yeah, stupid BOOKE :)

Currently it's nothing so PPC64 was an improvement, but you're right, if we're
building 64-bit BOOKE then we shouldn't prompt.

cheers




More information about the Linuxppc-dev mailing list