debug in PBL

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Mar 5 15:29:50 EST 2013


On 23:15 Tue 05 Mar     , Alexander Shiyan wrote:
> > On Tue, Mar 05, 2013 at 07:52:28PM +0400, Alexander Shiyan wrote:
> > > Hello All.
> > > 
> > > I tried to compile latest bb.
> > > pcm038 + pbl + debug level 7
> > > 
> > > Compilation failed with following error:
> > >   LD      arch/arm/pbl/zbarebox
> > > arch/arm/mach-imx/built-in-pbl.o: In function `imx_nand_load_image':
> > > /home/git/bb-mar05/arch/arm/mach-imx/external-nand-boot.c:232: undefined reference to `printf'
> > > 
> > > How we should handle debug messages in PBL in this case?
> > 
> > Until recently the debug macro was defined empty, now it expands to
> > printf and only compiled away when the debug level is lower. It seems
> > we have to either drop the debug() calls in the pbl or add an empty
> > printf implementation.
> 
> As far i understand "__PBL__" condition should be used for this?
yes __PBL__ indicate you are compiled for the pbl target

Best Regards,
J.
> 
> ---
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



More information about the barebox mailing list