12-02-2020 09:43 AM
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
12-02-2020 10:11 AM
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
12-02-2020 11:38 AM
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.
12-02-2020 01:28 PM
Can you try force the build:
petalinux-build -c bootloader -f
12-02-2020 02:07 PM
Ok, I tried that. But to my surprise images/linux/zynq_fsbl.elf is not even updated! What is that command supposed to do?