[Buildroot] [PATCH] linux: allow own initramfs to be specified

Daniel Mack daniel at caiaq.de
Mon Jul 27 16:00:35 UTC 2009


On Mon, Jul 27, 2009 at 04:21:48PM +0200, Thomas Petazzoni wrote:
> Le Mon, 27 Jul 2009 15:45:30 +0200,
> Daniel Mack <daniel at caiaq.de> a écrit :
> 
> > The initramfs source location is removed from the given Linux kernel
> > configuration at the moment and only filled in again in case BR2 is
> > asked to provide a cpio for that feature.
> > 
> > This patch allows to specify an own location for such an image file.
> 
> Just curious, what's the use case for this ?
> 
> Buildroot already allows to integrate the root filesystem it generated
> into the initramfs. It seems your patch allows to integrate a different
> initramfs that the one generated by Buildroot. Is this correct ? If so,
> what's your use case ?

Yep, you're right. We should do it that way. I was thinking of offering
a way to let a precompiled cpio image become the initramfs of the built
kernel, but it is really better to let br2 handle it all.

There are, however, two problems with the existing code.

1) the linux modules are installed unconditionally which we must avoid
   our case
2) the initramfs target is currently broken

So, forget about this patch, I'll provide two new ones to make this
work.

Thanks,
Daniel



More information about the buildroot mailing list