Re: ppc64 missing from upstream 2.6.15-rc6?
On Tue, Dec 20, 2005 at 01:47:09PM +0100, Wolfgang Pfeiffer wrote:
> On Tue, Dec 20, 2005 at 09:46:08AM +0200, Eduardo Trápani wrote:
> > >You need to do :
> > >
> > > make-kpkg --config oldconfig --arch powerpc ...
> >
> > I tried, the error is below. What is the alternative way to build the
> > kernel? In i386 I used to make zImage and then copy the files from
> > arch/boot or something like that. Is there documentation on how to do it
> > for these kernels?
> >
> > Thanks, Eduardo.
> >
> > # make-kpkg --arch powerpc --initrd kernel-image
> >
> > ====== making target debian/stamp-build-kernel [new prereqs: sanity_check
> > stamp-kernel-conf]======
> > /usr/bin/make ARCH=ppc \
> > zImage
> > make[1]: Entering directory `/usr/src/linux-2.6.15-rc6'
> > CHK include/linux/version.h
> > CHK include/linux/compile.h
> > CHK usr/initramfs_list
> > GEN .version
> > CHK include/linux/compile.h
> > UPD include/linux/compile.h
> > CC init/version.o
> > LD init/built-in.o
> > LD .tmp_vmlinux1
> > arch/powerpc/kernel/built-in.o: In function `power4_idle': multiple
> > definition of `power4_idle'
> > arch/ppc/kernel/idle_power4.o:arch/ppc/kernel/idle_power4.S:(.text+0x4):
> > first defined here
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > make[1]: Leaving directory `/usr/src/linux-2.6.15-rc6'
> > make: *** [debian/stamp-build-kernel] Error 2
> >
> > #
>
> Eduardo,
>
> In your earlier posting you wrote "Just leaving out the --subarch
> seems to work." If this means you already compiled successfully one
> kernel without a flag like that then I'd omit the "--arch" option:
> I don't remember having *ever* used this option for a, admittedly,
> non-ppc64, but ppc kernel. IIRC gcc automatically detects the
> architecture of a computer and then compiles accordingly ....
The problem is that for kernels 2.6.15 and up, the 64bit variant has
dissapeared, and we moved solely to ARCH=powerpc instead of the older
ARCH=ppc64. This will also happen for ppc, but it still stays. make-kpkg has
to be adjusted for that, which is why the experimental 2.6.15-rc kernels don't
build on powerpc yet. I hope to have this sorted out with Manoj before
christmas though.
Friendly,
Sven Luther
Reply to: