[Buildroot] CPIO Kernel Image Build Order for initramfs

Charles Lohr lohr85 at gmail.com
Thu Nov 24 19:00:03 UTC 2022


Thank you!

On Thu, Nov 24, 2022, 04:00 Andreas Ziegler <br015 at umbiko.net> wrote:

> Hi Charles,
>
> On 2022-11-21 06:26, Charles Lohr <lohr85 at gmail.com> wrote:
> > (Forgive me if this list isn't for questions, please direct me to the
> > right
> > place. This is my first message to the list)
> >
> > I want to build full executable images, with the rootfs built into the
> > kernel without compression, so I'm using CPIO.  But, buildroot doesn't
> > seem
> > to like this when starting from a clean slate.
>
> You can enable this under 'Filesystem images' -> 'Initial RAM filesystem
> linked into Linux kernel' (BR2_TARGET_ROOTFS_INITRAMFS). This will
> execute the steps you now perform manually.
>
> > It wants to build the kernel before the image, but if I do that, I get
> > this
> > error.
> >
> > make[4]: *** No rule to make target '../../images/rootfs.cpio', needed
> > by
> > 'usr/initramfs_inc_data'.  Stop.
> >
> > Right now, my process is: touch an empty images/rootfs.cpio file,
> > compile,
> > touch the kernel config, recompile and this works but it's yucky.
> >
> > What is the "right" answer?
> >
> > Charles
>
> Kind regards,
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20221124/46cc9ed3/attachment-0001.html>


More information about the buildroot mailing list