From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 19 Mar 2015 10:19:22 +0100 Subject: [Buildroot] [PATCH 1/5] Makefile: add media image generation In-Reply-To: <20150319084435.GA4367@free.fr> References: <1426632719-4807-1-git-send-email-vivien.didelot@savoirfairelinux.com> <1426632719-4807-2-git-send-email-vivien.didelot@savoirfairelinux.com> <20150319000445.GD4578@free.fr> <20150319092741.31bddb93@free-electrons.com> <20150319084435.GA4367@free.fr> Message-ID: <20150319101922.5e68220b@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Yann E. MORIN, On Thu, 19 Mar 2015 09:44:35 +0100, Yann E. MORIN wrote: > However, what I wonder about, is that all those defconfigs rely on the > image already generated by Buildroot, and I fail to see how one would > write a mutli-partition genimage config file. > > Furthermore, I've read the genimage docs (a mere README, far from being > complete), and it does not look obvious to me. > > Also, rather than letting Buildroot build the filesystem images and then > aggregate that with genimage, it would be meuch more interesting (IMHO) > to provide an example that lets genimage do the filesystem. That would > be a good example on how to do it. Well, the boot.vfat image in the raspberry pi example is a good illustration of this: the FAT filesystem image is not created by Buildroot, but by genimage itself. > Also, in the case of multiple partitions, I wonder how /etc/fstab is > updated (since the current examples only use a pre-generated filesystem > image, they can't update fstab). Using a post-build script ? > It might even be interesting to have an example (e.g. in the manual or > somewhere else...) with a more complex setup, like a multi-partition > setup where parts are inherited from Buildroot (the rootfs) and others > are generated by genimage, or whatever seemingly complex setup we can > come up with... Yes, I agree it would be interesting to have more complicated cases covered in the Buildroot manual. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com