call custom sh script in do_compile



I have a script used to build outside yocto, after sourcing the build environment.
I want to use the same script inside the recipe, in the do_compile task, something like:

do_compile () {

 ./ ${MACHINE}

The script eventually calls make for several targets, release debug etc...
The idea with this script is to be used both inside yocto and outside (after sourcing
build/tmp/environment-setup-cortexa5hf-neon-poky-linux-gnueabi), by reusing the code.

What is the proper way to use a custom shell script to build things ?
How to pass info from oe_runmake/EXTRA_OEMAKE ?


Join to automatically receive all group messages.