Search code examples
armembedded-linuxbuildroot

More than one post build scripts in buildroot


I am pretty new to buildroot and I wish to add more than 1 post-build scripts, as the documentation says:

3.3.1. Customizing the generated target filesystem

In the Buildroot configuration, you can specify the paths to one or more post-build scripts. These scripts are called in the given order, after Buildroot builds all the selected software, but before the rootfs images are assembled. The BR2_ROOTFS_POST_BUILD_SCRIPT allows you to specify the location of your post-build scripts

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

How can I specify more than one value in a buildroot setting?


Solution

  • See: buildroot Makefile, especially lines 782-784.

    The string is passed to a shell's for loop. So a space separator should be used. Each script gets a TARGET_DIR parameter.