[yocto] Enabling Macro from .bb file
Burton, Ross
ross.burton at intel.com
Mon Jun 4 02:43:20 PDT 2018
You want to pass -DSOME_MACRO to the compiler, so extend CPPFLAGS in
your recipe:
CPPFLAGS += "-DSOME_MACRO"
Note that this assumes the build system that the code is using is
listening to $CPPFLAGS.
Ross
On 29 May 2018 at 17:50, Ugesh Reddy <kumar.ugesh003 at yahoo.com> wrote:
> Hello,
> I have the source code were the part of the code kept inside the #ifdef
> SOME_MACRO and what would be the correct place to define SOME_MACRO this
> macro?
> note: This define is specific to the recipe.
>
> Regrds,
> Ugesh
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
More information about the yocto
mailing list