[meta-arm,v2,5/6] arm-bsp: musca_b1: Add machine

Submitted by Gabor Abonyi on July 1, 2020, 1:19 p.m. | Patch ID: 174127

Details

Message ID 20200701131940.3084-6-gabor.abonyi@arm.com
State New
Headers show

Commit Message

Gabor Abonyi July 1, 2020, 1:19 p.m.
Add Musca B1 machine. Also add it to the supported targets
for Trusted Firmware M.

Change-Id: I66dcc87df9a8dcb258de701ffbdcde264b0886c5
Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
---
 meta-arm-bsp/conf/machine/armv8m.inc                  | 10 ++++++++++
 meta-arm-bsp/conf/machine/musca_b1.conf               | 11 +++++++++++
 .../trusted-firmware-m/trusted-firmware-m_%.bbappend  |  2 ++
 3 files changed, 23 insertions(+)
 create mode 100644 meta-arm-bsp/conf/machine/armv8m.inc
 create mode 100644 meta-arm-bsp/conf/machine/musca_b1.conf
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_%.bbappend

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/armv8m.inc b/meta-arm-bsp/conf/machine/armv8m.inc
new file mode 100644
index 0000000..e7c7ca8
--- /dev/null
+++ b/meta-arm-bsp/conf/machine/armv8m.inc
@@ -0,0 +1,10 @@ 
+DEFAULTTUNE ?= "armv8m"
+
+TUNEVALID[armv8m] = "Enable instructions for ARMv8-m"
+AVAILTUNES += "armv8m"
+
+ARMPKGARCH_tune-armv8m ?= "armv8m"
+TUNE_FEATURES_tune-armv8m = "armv8m"
+PACKAGE_EXTRA_ARCHS_tune-armv8m = "armv8m"
+
+require conf/machine/include/arm/arch-arm.inc
diff --git a/meta-arm-bsp/conf/machine/musca_b1.conf b/meta-arm-bsp/conf/machine/musca_b1.conf
new file mode 100644
index 0000000..0f9734b
--- /dev/null
+++ b/meta-arm-bsp/conf/machine/musca_b1.conf
@@ -0,0 +1,11 @@ 
+# Configuration for Musca-B1 development board
+
+#@TYPE: Machine
+#@NAME: Musca-B1 machine
+#@DESCRIPTION: Machine configuration for Musca-B1
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-m"
+
+PREFERRED_VERSION_trusted-firmware-m = "1.0"
+
+require armv8m.inc
diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_%.bbappend b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_%.bbappend
new file mode 100644
index 0000000..f86e2b1
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-m/trusted-firmware-m_%.bbappend
@@ -0,0 +1,2 @@ 
+COMPATIBLE_MACHINE = "musca_b1"
+TFM_PLATFORM_musca_b1 = "MUSCA_B1"