From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] post-buil script in chrooted
Date: Fri, 12 Oct 2012 09:30:32 +0200 [thread overview]
Message-ID: <20121012093032.7ef6b972@skate> (raw)
In-Reply-To: <5077A820.7050202@free.fr>
Dear David Bonnin,
On Fri, 12 Oct 2012 07:18:24 +0200, David Bonnin wrote:
> Few ask in finalise target:
> 1- to do root task, i can only use permission: target in each
> packages..........
Not sure I understand this part.
> CAN i use a "root script" in chrooted mode?
> ROOTFS_POST_BUILD_SCRIPT is not executed chrooted in the target.
No because it doesn't make sense. Buildroot is used in many cases for
cross-compilation, so the development machine is x86 or x86_64 and the
target filesystem contain ARM, PowerPC or MIPS binaries. So chrooting
into it is not possible (unless we use Qemu or something like that, but
it's not the idea of Buildroot, we want to do cross-compilation).
> 2-
> why rootfs targets are generated 2 times? (in my case: rootfs.tar
> and rootfs.ubifs)
> Generate 1 time and then generate tar and UBIFS is quicker.....so why?
Well, this is exactly what Buildroot is doing:
1) It generates your root filesystem in output/target
2) At the end of the build it uses the contents of output/target to
create the different root filesystem images you requested. So if
you requested a tarball image and an UBIFS image, it is going to
call tar inside fakeroot to create the tarball image using the
contents of output/target, and then mkfs.ubifs inside fakeroot to
create the UBIFS image using the contents of output/target.
Hope this helps,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-10-12 7:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-12 5:18 [Buildroot] post-buil script in chrooted David Bonnin
2012-10-12 7:30 ` Thomas Petazzoni [this message]
2012-10-12 8:41 ` Thomas De Schampheleire
2012-10-12 18:52 ` Arnout Vandecappelle
2012-10-15 22:03 ` David Bonnin
2012-10-17 20:32 ` Arnout Vandecappelle
2012-10-26 20:56 ` David Bonnin
2012-10-26 23:05 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121012093032.7ef6b972@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.