12-02-2020 09:43 AM
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?
12-02-2020 10:11 AM
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.
Give kudos if helpful. Accept as solution if it solves your problem.
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.