Hi, i tried to add CFLAGS += "-MMC_WRITE" (i dont know if -DMMC_WRITE was a typo or not and tryed both)
i dont get any error but in my recipes the code wrapped in #ifdef MMC_WRITE #endif is not compiled... i even tried to add a sintax error between the ifdef so, if compiler see MMC_WRITE macro, i should get a compiler error but i don't. Im still missing something? code example : #ifdef MMC_WRITE dev_info(host->parent , "retune_now MMC !!! \n\r"); asdasdasd //asdasdasdasd is a syntax error that should came out #elif SD_WRITE Thanks > > Il 18 febbraio 2019 alle 16.45 Khem Raj <raj.k...@gmail.com> ha scritto: > > On Mon, Feb 18, 2019 at 7:43 AM <luciosantin...@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@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto > > > > >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto