flags.cmake file loses flags from armgcc.cmake file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

flags.cmake file loses flags from armgcc.cmake file

1,109 次查看
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.

标记 (2)
0 项奖励
回复
1 回复

1,090 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @silent-dawn :

 

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

 

Regards

Daniel

0 项奖励
回复