greenhills: add cmake support
Summary
- refactor the toolchain management in CMake
- unify the cmake toolchain name style
- support greenhills build procedure with CMake
- add protect build for greenhills and gnu with CMake
Impact
- refactor the cmake toolchain management, each toolchain has its own cmake file, make the toolchain specific feature modification constrain in its own cmake file, which is more clear
Testing
- has pass the os test,
- has test on gcc/ghs compiler
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
the current build break is fixed by: https://github.com/apache/nuttx/pull/13717 which is still under review
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.
@extinguish @xiaoxiang781216 hi, after this PR the colored output from compilation with cmake doesn't work.
Before this PR:
after this PR compiler output on terminal looks like normal text also for warnings and errors:
@extinguish @xuxin930 please take a look.
@extinguish @xuxin930 please take a look.
this is fixed is https://github.com/apache/nuttx/pull/14404, and is under review