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

Re: (powerpc) kernel udebs (was Re: d-i and iBooks)



On Sun, Aug 03, 2003 at 04:37:59PM +0200, Gaudenz Steinlin wrote:
> Sven Luther schrieb:
> 
> >On Sun, Aug 03, 2003 at 04:13:02PM +0200, Gaudenz Steinlin wrote:
> > 
> >
> >>We will need some additional logic in the makefile. You have to list
> >>all the possible kernel image names in build/config/arch/linux-powerpc
> >>and adjust the makefile logic in build/make/arch/linux-powerpc
> >>   
> >>
> >
> >That would be the d-i makefiles ?
> >
> yes.
> 
> >
> > 
> >
> >>>Ok, i will see if i can do that, altough the real problem is to build
> >>>more than just the vmlinux and vmlinux.coff images. I guess we could get
> >>>the images directly out of the arch/ppc/boot/images :
> >>>
> >>>
> >>>     
> >>>
> >>Sven, have a look at how Herbert Xu creates kernel udebs with
> >>kernel-image-2.4.20-1-i386-udeb. He has an additional source package
> >>for the udebs, which depens on the kernel-image. IMHO this is the best
> >>way to package kernel udebs. You don't need an extra kernel build for the
> >>udebs if you do it that way (even if kernel udebs change but the kernel 
> >>stays the same).
> >>   
> >>
> >
> >Ok, i will have a look. The real problem for ppc though is that there
> >are various subarches, which build different kind of images including
> >the subarch specific bootloaders. I don't think this problem exists on
> >i386.
> >
> >I suppose the udeb-source package gets the kernel-image package, and
> >extracts the needed kernel image or something from it to build the udeb ?
> >
> yes, it build-depends on kernel-image-??
> I'm not sure about the subarchs, but I think to best way for the moment 
> is what Thorsten suggested, to put them together into one udeb and 
> handling all the subarches in the d-i makefile. One other possibility 
> that comes into my mind, is to have one udeb for every subarch. But 
> subarches need special handling in the makefile anyway, so this is 
> probably overkill.

Yes, but as i see it, kernel-package needs to be patched to allow for
the kernel-images to have different subarches in it. I need to override
the kernel-package rule file in order to build a pmac kernel image on my
pegasos/chrp related box.

Not sure though, maybe it already allows this, i will have to check it.

Friendly,

Sven Luther



Reply to: