[rtems commit] spec: add MPU CTRL option to be usable on ARMV7M based BSPs
Karel Gardas
karel at rtems.org
Thu Mar 16 14:23:46 UTC 2023
Module: rtems
Branch: master
Commit: 8f6d4b7d96158d41460bf1600f43e311dc4b4435
Changeset: http://git.rtems.org/rtems/commit/?id=8f6d4b7d96158d41460bf1600f43e311dc4b4435
Author: Karel Gardas <karel at functional.vision>
Date: Thu Mar 16 14:22:01 2023 +0100
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
---
spec/build/bsps/arm/imxrt/bspimxrt.yml | 2 ++
spec/build/bsps/arm/optmpuctrl.yml | 17 +++++++++++++++++
spec/build/bsps/arm/stm32h7/grp.yml | 2 ++
3 files changed, 21 insertions(+)
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
@@ -163,6 +163,8 @@ links:
uid: linkcmds
- role: build-dependency
uid: linkcmdsmemory
+- role: build-dependency
+ uid: ../optmpuctrl
- role: build-dependency
uid: ../../bspopts
source:
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
@@ -24,6 +24,8 @@ links:
uid: ../../objmem
- role: build-dependency
uid: optenmpualign
+- role: build-dependency
+ uid: ../optmpuctrl
- role: build-dependency
uid: optenuart4
- role: build-dependency
More information about the vc
mailing list