diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-09 13:50:55 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-11-21 13:25:37 +0100 |
commit | 0225d3f70943213a26fb88c128b2e94d51e93a1a (patch) | |
tree | 09093b48a9682a3cde3aa8eea96c87233eee7ee2 | |
parent | 887e3e5c5ca164c1bad0aee0e090bbd8ad43da1e (diff) |
build: Add RTEMS_CLANG_STATIC_ANALYZER option
-rw-r--r-- | spec/build/bsps/sparc/leon3/abi.yml | 4 | ||||
-rw-r--r-- | spec/build/bsps/sparc/leon3/abiclang.yml | 4 | ||||
-rw-r--r-- | spec/build/bsps/sparc/leon3/abiclanganalyzer.yml | 18 | ||||
-rw-r--r-- | spec/build/bsps/sparc/leon3/grp.yml | 4 | ||||
-rw-r--r-- | spec/build/cpukit/cpuopts.yml | 2 | ||||
-rw-r--r-- | spec/build/cpukit/optclanganalyzer.yml | 19 |
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 |