[Buildroot] [RFC 1/1] infra/pkg-generic: Add rootfs post gen hook

yann.morin at orange.com yann.morin at orange.com
Mon Apr 15 07:58:22 UTC 2019


Vadim, All,

On 2019-04-15 10:33 +0300, Vadim Kochan spake thusly:
> On Mon, Apr 15, 2019 at 08:58:19AM +0200, Thomas Petazzoni wrote:
> > Hello Vadim,
> > 
> > On Mon, 15 Apr 2019 03:26:35 +0300
> > Vadim Kochan <vadim4j at gmail.com> wrote:
> > 
> > > Add ability to generate image by custom package, and one of the
> > > way to do it - is to add new $(PKG)_ROOTFS_POST_GEN_HOOK which will be
> > > called after rootfs image is ready. This allows to have easier
> > > alternative to post-image script in form of package, which might be
> > > just selected by the user (or this package might be automatically
> > > selected already already).
> > 
> > Hum, this description is a bit vague/fuzzy to me. Do you have a
> > specific example that requires this rootfs post gen hook ?
> > 
> 
> The use case is simple - allow to generate firmware image by custom
> package instead of post-image script. I did not find some dependencies
> or other hook to make it installed after rootfs image is ready, so only
> option I found is to add yet-another-hook which will be called after
> rootfs image is generated.

If you have a custom tool to generate a custom image, why don't you also
provide a custom filesystem implementation of your own in fs/your-fs/
like any other filesystem ?

Note that a filesystem can also be defined in a br2-external tree.

Regards,
Yann E. MORIN.

-- 
                                        ____________
.-----------------.--------------------:       _    :------------------.
|  Yann E. MORIN  | Real-Time Embedded |    __/ )   | /"\ ASCII RIBBON |
| +33 534.541.179 | Software  Designer |  _/ - /'   | \ / CAMPAIGN     |
| +33 638.411.245 '--------------------: (_    `--, |  X  AGAINST      |
|      yann.morin (at) orange.com      |_="    ,--' | / \ HTML MAIL    |
'--------------------------------------:______/_____:------------------'


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.



More information about the buildroot mailing list