Pre-builds and post-builds
A pre-build or post-build operation is typically a script file invoked by the build system. Such operations are possible at several stages in the build process. They can be specified at the application, BSP, and recipe levels.
You can pre-build and post-build arguments in the application Makefile. For example:
project_prebuild:
command1 -arg1
Command2 -arg2
The sequence of execution in a build is as follows:
Recipe pre-build – Defined using
recipe_prebuild
target.
BSP pre-build – Defined using
bsp_prebuild
target.
Project pre-build – Defined using
project_prebuild
target.
Source compilation and linking.
Recipe post-build – Defined using
recipe_postbuild
target.
BSP post-build – Defined using
bsp_postbuild
target.
Project post-build – Defined using
project_postbuild
target.