cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vanmierlo
Mentor
Mentor
363 Views
Registered: ‎06-10-2008

FSBL compiler flags have no effect

Hi,

I'm using Petalinux 2020.2 and in petalinux-config I found two entries for providing extra compiler flags for compiling the FSBL.

FSBL Configuration
-  () FSBL BSP extra compiler flags
-  () FSBL compiler flags

However, when I fill either with -DFSBL_DEBUG_INFO it seems this define is still not made and thus the generated FSBL stays silent.

Note that placing this flag in project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend as below does make the FSBL verbose.

YAML_COMPILER_FLAGS_append = " -DFSBL_DEBUG_INFO"

What am I doing wrong?

Maarten

0 Kudos
4 Replies
patocarr
Teacher
Teacher
352 Views
Registered: ‎01-28-2008

Hi @vanmierlo 

  I've also been using the YAML setting to add compile flags to FSBL. Perhaps the petalinux-config for FSBL prepends the "-D" in front of the flags? Have you tried not including it? i.e. just set it to FSBL_DEBUG_INFO.

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

0 Kudos
vanmierlo
Mentor
Mentor
335 Views
Registered: ‎06-10-2008

That would be really weird. To be precise the -D is the flag. It would also mean you cannot provide e.g. -O2 as optimization flag.

But I tried it anyway and it did nothing. It not even failed to build!

It seems the flags are assigned to bsp_compiler_flags_pn-fsbl but a grep for that seems to show it is never used anywhere.

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
319 Views
Registered: ‎09-12-2007

Can you try force the build:

petalinux-build -c bootloader -f

0 Kudos
vanmierlo
Mentor
Mentor
312 Views
Registered: ‎06-10-2008

Ok, I tried that. But to my surprise images/linux/zynq_fsbl.elf is not even updated! What is that command supposed to do?

0 Kudos