[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux 5.0 and altivec



On Sun, Mar 10, 2019 at 1:36 PM Elimar Riesebieter <riesebie@lxtec.de> wrote:
>
> * Elimar Riesebieter <riesebie@lxtec.de> [2019-03-09 09:56 +0100]:
>
> > Hi all,
> >
> > I tried to compile linux 5.0 on my G4 powerbook 7447A altivec supported:
> >
> >  arch/powerpc/kernel/ptrace.c: In function ‘vr_get’:
> >   arch/powerpc/kernel/ptrace.c:567:5: note: ‘vrsave’ declared here
> >      } vrsave;
> >        ^~~~~~
> >   cc1: error: AltiVec not supported in this target
> >   make[5]: *** [scripts/Makefile.build:277: arch/powerpc/lib/xor_vmx.o] Error 1
> >   make[4]: *** [scripts/Makefile.build:492: arch/powerpc/lib] Error 2
> >   make[3]: *** [Makefile:1046: arch/powerpc] Error
> >
> > Doesn't 5.0 support altivec anymore?
>
> Have had to set "CONFIG_GENERIC_CPU=y" instead of
> "CONFIG_E300C2_CPU=y". Sorry for the noise.

Just in case you are actually using 5.x, pay attention you can now use:

CONFIG_G4_CPU=y

See:

bbb7f84b0bbb powerpc: Allow CPU selection of G4/74xx variant


Reply to: