[PATCH 7/8] bsp/tms570: Add TMS570_VARIANT

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Apr 4 14:52:57 UTC 2023


---
 spec/build/bsps/arm/tms570/grp.yml        |  2 ++
 spec/build/bsps/arm/tms570/optvariant.yml | 21 +++++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 spec/build/bsps/arm/tms570/optvariant.yml

diff --git a/spec/build/bsps/arm/tms570/grp.yml b/spec/build/bsps/arm/tms570/grp.yml
index 578cba29ee..1acd00f84b 100644
--- a/spec/build/bsps/arm/tms570/grp.yml
+++ b/spec/build/bsps/arm/tms570/grp.yml
@@ -10,6 +10,8 @@ includes: []
 install: []
 ldflags: []
 links:
+- role: build-dependency
+  uid: optvariant
 - role: build-dependency
   uid: ../grp
 - role: build-dependency
diff --git a/spec/build/bsps/arm/tms570/optvariant.yml b/spec/build/bsps/arm/tms570/optvariant.yml
new file mode 100644
index 0000000000..2925b4bf04
--- /dev/null
+++ b/spec/build/bsps/arm/tms570/optvariant.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-integer: null
+- assert-in-set:
+  - 3137
+  - 4357
+- define: null
+build-type: option
+copyrights:
+- Copyright (C) 2023 embedded brains GmbH (http://www.embedded-brains.de)
+default:
+- enabled-by: true
+  value: 3137
+description: |
+  Defines the TMS570 family variant.  Use 3137 for the TMS570LS3137 and 4357
+  for the TMSLC4357.
+enabled-by: true
+format: '{}'
+links: []
+name: TMS570_VARIANT
+type: build
-- 
2.35.3



More information about the devel mailing list