Hi Anuj,
"bitbake -e" is very useful for debugging out-of-tree build issue. However, looks like I have another issue. From "devtool build" output, I could see variables passed into makefile. Let's focus on "CC" for now: CC=x86_64-poky-linux-gcc -fuse-ld=bfd If we compare this to "bitbake -e" dump: export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/a/ryeung/dev/yocto-git/yocto_build/build/tmp/sysroots/intel-corei7-64" You can see somehow the variable is modified. Let's focus on --sysroot portion. Without it, there seems to be no way for me to control LIBRARY_PATH's value. The result is that the linker couldn't find crti.o and a few other files. By manually adding back --sysroot portion, I could now get past this failure, onto the next. I suppose, as a possible final solution, I could do: $(CC) --sysroot=$(KERNEL_SRC) ... I'm really looking for simpler, more intuitive solution. What about the missing "-m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2" in the export? Raymond ________________________________ From: Anuj Mittal <anuj.mit...@intel.com> Sent: Thursday, April 5, 2018 9:52 PM To: Raymond Yeung; yocto@yoctoproject.org Subject: Re: [yocto] Adding debug output in recipe On 04/05/2018 03:33 PM, Raymond Yeung wrote: > Is there a way to add simple debug output (ideally don't need to control > debug level) to echo out values of variables? I tried the bb.xxx > variants, but couldn't get them to work. > To find out what a variable is being set to, you can try: bitbake -e <recipename> Please see: https://wiki.yoctoproject.org/wiki/Technical_FAQ#I_set_a_variable_but_it_doesn.27t_seem_to_be_having_an_effect.2C_how_do_I_fix_this.3F Is that what you were looking for?
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto