[Buildroot] [BUILDROOT] Add a text file on "/tmp" directory during img compilation

Grant Edwards grant.b.edwards at gmail.com
Tue Feb 14 15:17:46 UTC 2017


On 2017-02-14, <thierry.xenomai43 at yahoo.com> <thierry.xenomai43 at yahoo.com> wrote:

> I would like to add a text files and bin files on "/tmp" directory
> during the image making.

https://buildroot.org/downloads/manual/manual.html#rootfs-custom

You can configure buildroot to run a script after the root tree is
done but but before the final image is created by setting the
BR2_ROOTFS_POST_BUILD_SCRIPT option. Look under

  System Configuration
    Custom scripts to run before creating filesystem images

In that script you can add/delete/remove files from the tree.

If all you want to do is add files, you can use the BR2_ROOTFS_OVERLAY
option to point to a tree that is copied on top of the target tree.

-- 
Grant Edwards               grant.b.edwards        Yow! An Italian is COMBING
                                  at               his hair in suburban DES
                              gmail.com            MOINES!




More information about the buildroot mailing list