[3/4] kas/ci: add corstone500 platform

Message ID 20220401144128.3517236-4-rui.silva@linaro.org
State New
Headers show
Series arm-bsp/corstone500: add kas, runfvp and wks | expand

Commit Message

Rui Miguel Silva April 1, 2022, 2:41 p.m. UTC
Add kas and ci, including testimage support for corstone500
platform. And for all to work add also the FVP setup.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
---
 .gitlab-ci.yml                             |  5 +++
 ci/corstone500.yml                         | 12 ++++++
 kas/corstone500.yml                        | 47 ++++++++++++++++++++++
 meta-arm-bsp/conf/machine/corstone500.conf | 11 +++++
 4 files changed, 75 insertions(+)
 create mode 100644 kas/corstone500.yml

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 21fcd43f768f..67739f3968b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -72,6 +72,11 @@  update-repos:
 
 corstone500:
   extends: .build
+  parallel:
+    matrix:
+      - TESTING: testimage
+  tags:
+    - x86_64
 
 corstone1000-fvp:
   extends: .build
diff --git a/ci/corstone500.yml b/ci/corstone500.yml
index 510a2ffb4ca7..ef78cacdf7fd 100644
--- a/ci/corstone500.yml
+++ b/ci/corstone500.yml
@@ -3,4 +3,16 @@  header:
   includes:
     - ci/base.yml
 
+local_conf_header:
+  testimagefvp: |
+    INHERIT += "fvpboot"
+    IMAGE_FEATURES:remove = " ssh-server-dropbear"
+  perf: |
+
 machine: corstone500
+
+distro: poky-tiny
+
+target:
+  - core-image-minimal
+  - perf
diff --git a/kas/corstone500.yml b/kas/corstone500.yml
new file mode 100644
index 000000000000..a454a469b7d2
--- /dev/null
+++ b/kas/corstone500.yml
@@ -0,0 +1,47 @@ 
+header:
+  version: 11
+
+distro: poky-tiny
+
+defaults:
+  repos:
+    refspec: master
+
+repos:
+  meta-arm:
+    layers:
+      meta-arm:
+      meta-arm-bsp:
+      meta-arm-toolchain:
+
+  poky:
+    url: https://git.yoctoproject.org/git/poky
+    refspec: master
+    layers:
+      meta:
+      meta-poky:
+      meta-yocto-bsp:
+
+  meta-openembedded:
+    url: https://git.openembedded.org/meta-openembedded
+    refspec: master
+    layers:
+      meta-oe:
+      meta-python:
+
+local_conf_header:
+  base: |
+    CONF_VERSION = "2"
+    PACKAGE_CLASSES = "package_ipk"
+    LICENSE_FLAGS_ACCEPTED += "armcompiler"
+    BB_NUMBER_THREADS ?= "16"
+    PARALLEL_MAKE ?= "-j16"
+    PACKAGECONFIG:append:pn-perf = " coresight"
+  fvp-config: |
+    IMAGE_CLASSES:append = " ${@bb.utils.contains('BUILD_ARCH', 'x86_64', 'fvpboot', '', d)}"
+    LICENSE_FLAGS_ACCEPTED:append = " Arm-FVP-EULA"
+
+machine: corstone500
+
+target:
+  - core-image-minimal
diff --git a/meta-arm-bsp/conf/machine/corstone500.conf b/meta-arm-bsp/conf/machine/corstone500.conf
index 2d939d19cfad..526fff78ec34 100644
--- a/meta-arm-bsp/conf/machine/corstone500.conf
+++ b/meta-arm-bsp/conf/machine/corstone500.conf
@@ -32,3 +32,14 @@  PREFERRED_VERSION_u-boot ?= "2022.01"
 WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
 
 WKS_FILE ?= "core-image-minimal.corstone500.wks"
+
+TEST_TARGET = "OEFVPTarget"
+TEST_SUITES = "noop"
+
+FVP_PROVIDER ?= "fvp-corstone500-native"
+FVP_EXE ?= "FVP_Corstone-500"
+FVP_CONFIG[board.flashloader0.fname] ?= "${DEPLOY_DIR_IMAGE}/bl1.bin"
+FVP_DATA ?= "css.cluster.cpu0=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.wic.nopt@0x80000000"
+FVP_CONSOLE ?= "terminal_0"
+FVP_TERMINALS[css.terminal_0] ?= "console"
+FVP_TERMINALS[css.terminal_1] ?= ""