Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] post-build script is called before rootfs tweaking
@ 2013-01-19 17:10 Stephan Hoffmann
  2013-01-19 18:19 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Stephan Hoffmann @ 2013-01-19 17:10 UTC (permalink / raw)
  To: buildroot

Hello,

buildroot's documentation says:
> In the Buildroot configuration, you can specify the path to a
> *post-build script*, that gets called /after/ Buildroot builds all the
> selected software, but /before/ the rootfs packages are assembled.
I understand this the way that the post-build script is called as the
last action before package assembly.

In fact the post-build script is called before some modifications take
place:
> >>>   Executing post-build script
> >>>   Completed post-build script
> mkdir -p /home/stephan/buildroot/output/target/etc
> echo "armstonea8" > /home/stephan/buildroot/output/target/etc/hostname
> /bin/sed -i -e '$a \127.0.1.1\tarmstonea8' \
>                 -e '/^127.0.1.1/d'
> /home/stephan/buildroot/output/target/etc/hosts
> mkdir -p /home/stephan/buildroot/output/target/etc
> echo "Welcome to armStoneA8" >
> /home/stephan/buildroot/output/target/etc/issue
> /bin/sed -i -e '/# GENERIC_SERIAL$/s~^.*#~ttySAC0::respawn:/sbin/getty
> -L ttySAC0 38400 vt100 #~' \
>                 /home/stephan/buildroot/output/target/etc/inittab
> /bin/sed -i -e '/^[^#].*# REMOUNT_ROOTFS_RW$/s~^~#~'
> /home/stephan/buildroot/output/target/etc/inittab
> rm -f /home/stephan/buildroot/output/build/locales.nopurge
> for i in C en_US de fr; do echo $i >>
> /home/stephan/buildroot/output/build/locales.nopurge; done
> for dir in ; \
>         do \
>                 for lang in $(cd $dir; ls .|grep -v man); \
>                 do \
>                         grep -qx $lang
> /home/stephan/buildroot/output/build/locales.nopurge || rm -rf
> $dir/$lang; \
>                 done; \
>         done
Is this a bug or a feature? I'd prefer having the script called after
the target directory is completely set up.

Kind regards

Stephan

-- 
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de     sho at reLinux.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-28 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-19 17:10 [Buildroot] post-build script is called before rootfs tweaking Stephan Hoffmann
2013-01-19 18:19 ` Peter Korsgaard
2013-01-19 18:28   ` Stephan Hoffmann
2013-01-28 16:09     ` Stephan Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox