For some reason that I've not been able to track down, using -DBL2=False on the cmake command line causes ASM_FLAGS to have duplicated debug flags and defines.

It does not happen to C_FLAGS and it doesn't happen with -DBL2=True.

I've worked around the issue in https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/5365, but a cleaner solution would be to avoid this in the first place.

I would appreciate if someone with more cmake experience could have a go at this.

It causes build failures with IAR, and ARMCLANG and GNUARM doesn't care about the duplicates.

Thomas
--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail: thomas.tornblom@iar.com Website: www.iar.com
Twitter: www.twitter.com/iarsystems