flags.cmake file loses flags from armgcc.cmake file

cancel
Showing results for 
Search instead for 
Did you mean: 

flags.cmake file loses flags from armgcc.cmake file

160 Views
silent-dawn
Contributor II

I have downloaded K64F SDK for the armgcc toolchain and Linux platform.

When changing some compiling flags in the armgcc.cmake file, it does not come into force.

After analyzing, I found that the set command in the flags.cmake file ignoring the compiling flags from the armgcc.cmake file.

The original example in the flags.cmake file looks like below:

SET(CMAKE_ASM_FLAGS_DEBUG " \ 
-DDEBUG \ 
-D__STARTUP_CLEAR_BSS \ 
-g \ ... 
")

However, it should be like the code snippet below so that it includes the flags from the armgcc.cmake:

SET(CMAKE_ASM_FLAGS_DEBUG " \ 
${CMAKE_ASM_FLAGS_DEBUG} \ 
-DDEBUG \ 
-D__STARTUP_CLEAR_BSS \ 
-g \ 
... ")

I do not check other SDKs, but I believe this problem exists in all the newest SDK.

Please patch it ASAP.

Tags (2)
0 Kudos
1 Reply

141 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @silent-dawn :

 

Thank you for your feedback.  I will forward this to software team.

 

Regards

Daniel

0 Kudos