diff options
author | Karel Gardas <karel@functional.vision> | 2023-03-16 14:22:01 +0100 |
---|---|---|
committer | Karel Gardas <karel@functional.vision> | 2023-03-16 15:40:22 +0100 |
commit | 8f6d4b7d96158d41460bf1600f43e311dc4b4435 (patch) | |
tree | 810e3b7d2da6442079a657f5d2890e99906fdc3b | |
parent | doxygen: Document hash algorithm files (diff) | |
download | rtems-8f6d4b7d96158d41460bf1600f43e311dc4b4435.tar.bz2 |
spec: add MPU CTRL option to be usable on ARMV7M based BSPs
The patch also enables usage of the option on imxrt and stm32h7 based BSPs.
Sponsored-By: Precidata
-rw-r--r-- | spec/build/bsps/arm/imxrt/bspimxrt.yml | 2 | ||||
-rw-r--r-- | spec/build/bsps/arm/optmpuctrl.yml | 17 | ||||
-rw-r--r-- | spec/build/bsps/arm/stm32h7/grp.yml | 2 |
3 files changed, 21 insertions, 0 deletions
diff --git a/spec/build/bsps/arm/imxrt/bspimxrt.yml b/spec/build/bsps/arm/imxrt/bspimxrt.yml index b666be5241..b6a45ae90a 100644 --- a/spec/build/bsps/arm/imxrt/bspimxrt.yml +++ b/spec/build/bsps/arm/imxrt/bspimxrt.yml @@ -164,6 +164,8 @@ links: - role: build-dependency uid: linkcmdsmemory - role: build-dependency + uid: ../optmpuctrl +- role: build-dependency uid: ../../bspopts source: - bsps/arm/imxrt/console/console.c diff --git a/spec/build/bsps/arm/optmpuctrl.yml b/spec/build/bsps/arm/optmpuctrl.yml new file mode 100644 index 0000000000..2515a24971 --- /dev/null +++ b/spec/build/bsps/arm/optmpuctrl.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- define-unquoted: null +build-type: option +copyrights: +- Copyright (C) 2023 Karel Gardas +description: | + Default value of the ARM MPU CTRL register +default: +- enabled-by: true + value: (ARMV7M_MPU_CTRL_ENABLE | ARMV7M_MPU_CTRL_PRIVDEFENA) +enabled-by: true +format: '{}' +links: [] +name: ARMV7M_MPU_CTRL_DEFAULT +type: build diff --git a/spec/build/bsps/arm/stm32h7/grp.yml b/spec/build/bsps/arm/stm32h7/grp.yml index 9735b6734c..c415a7a71d 100644 --- a/spec/build/bsps/arm/stm32h7/grp.yml +++ b/spec/build/bsps/arm/stm32h7/grp.yml @@ -25,6 +25,8 @@ links: - role: build-dependency uid: optenmpualign - role: build-dependency + uid: ../optmpuctrl +- role: build-dependency uid: optenuart4 - role: build-dependency uid: optenuart5 |