Open-CMSIS-Pack / devtools

Open-CMSIS-Pack development tools - C++
Apache License 2.0
69 stars 50 forks source link

[csolution] Output a warning if a `*.cproject.yml` defines a `device`. #1538

Closed jkrech closed 1 week ago

jkrech commented 1 month ago

Describe The Problem To Be Solved There is plans to deprecated the ability to specify a device in *.cproject.yml files in CMSIS-Toolbox 3.x.

Suggest A Solution csolution shall output a warning if a device is specified in a *.cproject.yml to give developers a hint that this node is going to be deprecated in future versions and should already be removed.

jkrech commented 1 week ago

using CMSIS-Toolbox: 2.5.0-intdev2

cbuild Hello.csolution.yml 
C:/projects/GitHub/csolution-examples/Hello/Hello.cproject.yml - warning csolution: 'device' name will be deprecated at this level, please move it to *.csolution.yml
+----------------------------------------
(1/2) Building context: "Hello.Debug+AVH"
Building CMake target 'Hello.Debug+AVH'
ninja: no work to do.
+------------------------------------------
(2/2) Building context: "Hello.Release+AVH"
Building CMake target 'Hello.Release+AVH'
ninja: no work to do.
+------------------------------------------------------------
Build summary: 2 succeeded, 0 failed - Time Elapsed: 00:00:01
+============================================================