From 575d502cc84189ef164d1b6d615bad278467f5d3 Mon Sep 17 00:00:00 2001 From: Rui Miguel Silva Date: Fri, 1 Apr 2022 15:41:27 +0100 Subject: [PATCH] kas/ci: add corstone500 platform 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 Signed-off-by: Jon Mason --- .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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 21fcd43f..67739f39 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 510a2ffb..ef78cacd 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 00000000..a454a469 --- /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 2d939d19..526fff78 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] ?= ""