[Buildroot] skeleton updates
Heiko Zuerker
heiko at zuerker.org
Fri Dec 10 16:55:05 UTC 2010
Quoting Steve Calfee <nospamcalfee at yahoo.com>:
> ----- Original Message ----
>
>> From: Heiko Zuerker <heiko at zuerker.org>
>> > From: buildroot-bounces at busybox.net [mailto:buildroot-
>> > Subject: [Buildroot] skeleton updates
>> >
>> > Hi Guys,
>> >
>> > I am trying to follow up with Marcus Osdoba's work on dockstar and get
>> > something ready to submit to buildroot.
>> >
>> > I am having a real problem figuring out how stuff makes it into the the
>> final
>> > etc directory. My patch script in the
>> > target/device/sheevaplug/SeagateDockStar/patchrootfs.sh copies new files
>> > (inittab and shadow into output/target/skeleton/etc/ and this happens on
>> > re-invocation of make. However when I look at the rootfs.tar file the
>> > updated inittab is not there. Can anyone describe how the various /etc/
>> files
>> > in fs/skeleton and target/device/...skeleton and the final patch file get
>> to the
>> > final output image files.
>>
>> The best place to add these customizations is BR2_ROOTFS_POST_BUILD_SCRIPT,
>> which you can find under "Target filesystem options" in menuconfig.
>> This script is called after everything is build, but before the target
>> filesystem is generated.
>>
>> Here's the example I use:
>> BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/$(BOARD_PATH)/customize_target.sh"
>>
>
> Hi thanks for the comment. I am using that script and it gets
> invoked during the
> build.
>
> Investigating further, I was copying into the wrong output directory.
Not sure if you know this, but the target path is actually passed as
the only option to the script.
I set
TARGET_PATH=${1}
and from then from there on just work with that variable.
> The way I implemented rootfs updates, is I just have a device
> directory with the
> skeleton of things I want installed, and it gets copied over the
> default stuff
> from the build. In the case of the default all I am changing is inittab and
> shadow, but any file could be added there to replace or add to the default
> fs/skeleton.
--
Regards
Heiko Zuerker
http://www.devil-linux.org
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the buildroot
mailing list