summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-09 13:50:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-12-19 08:26:46 +0100
commitcfc0b3208cfe69b7b626b03c702a1b0dc068bec6 (patch)
tree035c3152560fd58869d7b05da092be7e78dd1617
parent16771d55dae129a7c4dff367829d12674eae73f7 (diff)
build: Add RTEMS_CLANG_STATIC_ANALYZER option
-rw-r--r--spec/build/bsps/sparc/leon3/abi.yml4
-rw-r--r--spec/build/bsps/sparc/leon3/abiclang.yml4
-rw-r--r--spec/build/bsps/sparc/leon3/abiclanganalyzer.yml18
-rw-r--r--spec/build/bsps/sparc/leon3/grp.yml4
-rw-r--r--spec/build/cpukit/cpuopts.yml2
-rw-r--r--spec/build/cpukit/optclanganalyzer.yml19
6 files changed, 48 insertions, 3 deletions
diff --git a/spec/build/bsps/sparc/leon3/abi.yml b/spec/build/bsps/sparc/leon3/abi.yml
index f4f1628093..a4c4153e94 100644
--- a/spec/build/bsps/sparc/leon3/abi.yml
+++ b/spec/build/bsps/sparc/leon3/abi.yml
@@ -25,7 +25,9 @@ default:
description: |
ABI flags
enabled-by:
-- gcc
+ and:
+ - gcc
+ - not: RTEMS_CLANG_STATIC_ANALYZER
links: []
name: ABI_FLAGS
type: build
diff --git a/spec/build/bsps/sparc/leon3/abiclang.yml b/spec/build/bsps/sparc/leon3/abiclang.yml
index 577129762c..1235baf789 100644
--- a/spec/build/bsps/sparc/leon3/abiclang.yml
+++ b/spec/build/bsps/sparc/leon3/abiclang.yml
@@ -27,7 +27,9 @@ default:
description: |
ABI flags
enabled-by:
-- clang
+ and:
+ - clang
+ - not: RTEMS_CLANG_STATIC_ANALYZER
links: []
name: ABI_FLAGS
type: build
diff --git a/spec/build/bsps/sparc/leon3/abiclanganalyzer.yml b/spec/build/bsps/sparc/leon3/abiclanganalyzer.yml
new file mode 100644
index 0000000000..437fdaccf0
--- /dev/null
+++ b/spec/build/bsps/sparc/leon3/abiclanganalyzer.yml
@@ -0,0 +1,18 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-string: null
+- split: null
+- env-append: null
+build-type: option
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value:
+ - -mcpu=leon3
+description: |
+ ABI flags
+enabled-by: RTEMS_CLANG_STATIC_ANALYZER
+links: []
+name: ABI_FLAGS
+type: build
diff --git a/spec/build/bsps/sparc/leon3/grp.yml b/spec/build/bsps/sparc/leon3/grp.yml
index 0e2792c3a6..15c1407cce 100644
--- a/spec/build/bsps/sparc/leon3/grp.yml
+++ b/spec/build/bsps/sparc/leon3/grp.yml
@@ -23,9 +23,11 @@ links:
- role: build-dependency
uid: ../grp
- role: build-dependency
+ uid: abi
+- role: build-dependency
uid: abiclang
- role: build-dependency
- uid: abi
+ uid: abiclanganalyzer
- role: build-dependency
uid: obj
- role: build-dependency
diff --git a/spec/build/cpukit/cpuopts.yml b/spec/build/cpukit/cpuopts.yml
index c9c366b92a..c09f8e6cd4 100644
--- a/spec/build/cpukit/cpuopts.yml
+++ b/spec/build/cpukit/cpuopts.yml
@@ -16,6 +16,8 @@ links:
- role: build-dependency
uid: optclang
- role: build-dependency
+ uid: optclanganalyzer
+- role: build-dependency
uid: optqual
- role: build-dependency
uid: optarflags
diff --git a/spec/build/cpukit/optclanganalyzer.yml b/spec/build/cpukit/optclanganalyzer.yml
new file mode 100644
index 0000000000..4404a09b21
--- /dev/null
+++ b/spec/build/cpukit/optclanganalyzer.yml
@@ -0,0 +1,19 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-boolean: null
+- env-enable: null
+- define-condition: null
+- set-value: -D_Atomic=
+- env-append: CFLAGS
+build-type: option
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH & Co. KG
+default:
+- enabled-by: true
+ value: false
+description: |
+ Enable the Clang Static Analyzer support.
+enabled-by: true
+links: []
+name: RTEMS_CLANG_STATIC_ANALYZER
+type: build