Re: Specifying different make flags for different tasks.


Chris Larson <clarson@...>
 



On Mon, Dec 17, 2012 at 1:36 AM, Alex Gonzalez <alex@...> wrote:
I am using EXTRA_OEMAKE to pass extra flags to make.

How can I pass different flags for different tasks?

In this case I am compiling an external kernel module and I need
different make flags for the do_make_scripts and do_compile tasks. If
I set EXTRA_OEMAKE in the recipe, all tasks use the same make flags.

You could use the task-<taskname> override. E.g.:

EXTRA_OEMAKE_append_task-do_compile = " FOO=bar"
--
Christopher Larson

Join yocto@lists.yoctoproject.org to automatically receive all group messages.