[yocto] Add new compiler macro
Khem Raj
raj.khem at gmail.com
Mon Feb 18 07:45:42 PST 2019
On Mon, Feb 18, 2019 at 7:43 AM <luciosantinell at libero.it> wrote:
>
> Hi, i wanted to add a compiler macro (NEW_MACRO) in order to compile all the code hidden beetween
> #ifdef NEW_MACRO
>
> #endif
> in all my recipes. I think that the right place to do that is in bitbake.conf file present under poky/meta/conf but when i try to do:
>
> TARGET_CPPFLAGS += "-MMC_WRITE"
it depends on recipes respecting compiler flags from environment but
most of them do.
CFLAGS += "-DMMC_WRITE" could do it.
>
> I get the error :
> configure: error: cannot compute suffix of object files: cannot compile
>
> How can i send the macro to the compiler in the correct way?
>
> Thanks
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
More information about the yocto
mailing list