-
Notifications
You must be signed in to change notification settings - Fork 3k
CMake: add nuvoton targets #13922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: add nuvoton targets #13922
Conversation
@0xc0170, thank you for your changes. |
|
||
if("NUMAKER_IOT_M252" IN_LIST MBED_TARGET_LABELS) | ||
add_subdirectory(TARGET_NUMAKER_IOT_M252) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be NUMAKER_IOT_M263A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@0xc0170 , About some hex files in TARGET_M2351, it's the pre-built secure image, such like as some loader binary files. |
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/TARGET_NU_XRAM_SUPPORTED/NUC472.sct) | ||
elseif("NU_XRAM_UNSUPPORTED" IN_LIST MBED_TARGET_LABELS) | ||
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/TARGET_NU_XRAM_UNSUPPORTED/NUC472.sct) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be TOOLCHAIN_ARM_STD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Thank you for review, I'll remove .hex files from CMake for now - if there is a folder with only .hex files, I won't add CMake. I'll also fix the comments and let you know once updated. |
@cyliangtw @ccli8 updated. |
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/M251.ld) | ||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM") | ||
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/M251.sct) | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also support IAR linker file, such like as ?
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(LINKER_FILE device/TOOLCHAIN_IAR/M251.icf)
endif()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not support IAR with CMake , thus we do not port it neither. If IAR is supported, we will need to add targets support (will be done via separate PRs).
I requested additional review, meanwhile started CI |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
One more fix needed, .sct files need updating the comment for preprocessor. I'll fix now |
1da77b8
to
0efffa3
Compare
CI started ARMClang fixed |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
CI restarted |
Jenkins CI Test : ❌ FAILEDBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ✔️ SUCCESSBuild Number: 4 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Adding NUVOTON targets.
Note, there are some hex files. I added them as sources but I need more help to understand how they should be processed. I could not quickly find some references in Readme files in their directories or in the old tools.
We do not yet support TFM.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers