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:

  1. Recipe pre-build – Defined using

    recipe_prebuild

    target.

  2. BSP pre-build – Defined using

    bsp_prebuild

    target.

  3. Project pre-build – Defined using

    project_prebuild

    target.

  4. Source compilation and linking.

  5. Recipe post-build – Defined using

    recipe_postbuild

    target.

  6. BSP post-build – Defined using

    bsp_postbuild

    target.

  7. Project post-build – Defined using

    project_postbuild

    target.