All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
@ 2022-05-11 13:52 vishnu.banavath
  2022-05-11 13:52 ` [PATCH 1/1] " vishnu.banavath
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vishnu.banavath @ 2022-05-11 13:52 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Vishnu Banavath

From: Vishnu Banavath <vishnu.banavath@arm.com>

TFTF is TF-A tests that runs at NS-EL2. This is primarily developed to
test the TF-A interfaces exposed to NS code.

Vishnu Banavath (1):
  arm-bsp/tf-a-tests: Add recipe to build and install TFTF

 .gitlab-ci.yml                                |  2 +-
 ci/tftf.yml                                   |  7 +++
 kas/tftf.yml                                  |  7 +++
 .../conf/machine/include/corstone1000.inc     |  1 -
 .../tf-a-tests_2.6.bbappend                   |  3 ++
 .../trusted-firmware-a-corstone1000.inc       |  2 +-
 .../trusted-firmware-a/tf-a-tests_2.6.bb      | 53 +++++++++++++++++++
 .../trusted-firmware-a/trusted-firmware-a.inc |  4 ++
 8 files changed, 76 insertions(+), 3 deletions(-)
 create mode 100644 ci/tftf.yml
 create mode 100644 kas/tftf.yml
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
 create mode 100644 meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb

-- 
2.17.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
  2022-05-11 13:52 [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF vishnu.banavath
@ 2022-05-11 13:52 ` vishnu.banavath
  2022-05-11 15:41 ` [PATCH 0/1] " Jon Mason
  2022-05-16 16:45 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: vishnu.banavath @ 2022-05-11 13:52 UTC (permalink / raw)
  To: meta-arm, Ross.Burton; +Cc: nd, Vishnu Banavath

From: Vishnu Banavath <vishnu.banavath@arm.com>

TFTF is TF-A tests that runs at NS-EL2. This is primarily developed to
test the TF-A interfaces exposed to NS code.

Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
---
 .gitlab-ci.yml                                |  2 +-
 ci/tftf.yml                                   |  7 +++
 kas/tftf.yml                                  |  7 +++
 .../conf/machine/include/corstone1000.inc     |  1 -
 .../tf-a-tests_2.6.bbappend                   |  3 ++
 .../trusted-firmware-a-corstone1000.inc       |  2 +-
 .../trusted-firmware-a/tf-a-tests_2.6.bb      | 53 +++++++++++++++++++
 .../trusted-firmware-a/trusted-firmware-a.inc |  4 ++
 8 files changed, 76 insertions(+), 3 deletions(-)
 create mode 100644 ci/tftf.yml
 create mode 100644 kas/tftf.yml
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
 create mode 100644 meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40e00fc0..a6804215 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,7 +82,7 @@ corstone1000-fvp:
   extends: .build
   parallel:
     matrix:
-      - TESTING: testimage
+      - TESTING: [testimage,tftf]
   tags:
     - x86_64
 
diff --git a/ci/tftf.yml b/ci/tftf.yml
new file mode 100644
index 00000000..6e42d9c6
--- /dev/null
+++ b/ci/tftf.yml
@@ -0,0 +1,7 @@
+header:
+  version: 9
+
+local_conf_header:
+  tftf: |
+    TFA_UBOOT = "0"
+    TFTF_TESTS = "1"
diff --git a/kas/tftf.yml b/kas/tftf.yml
new file mode 100644
index 00000000..6e42d9c6
--- /dev/null
+++ b/kas/tftf.yml
@@ -0,0 +1,7 @@
+header:
+  version: 9
+
+local_conf_header:
+  tftf: |
+    TFA_UBOOT = "0"
+    TFTF_TESTS = "1"
diff --git a/meta-arm-bsp/conf/machine/include/corstone1000.inc b/meta-arm-bsp/conf/machine/include/corstone1000.inc
index d38773a3..380ed30f 100644
--- a/meta-arm-bsp/conf/machine/include/corstone1000.inc
+++ b/meta-arm-bsp/conf/machine/include/corstone1000.inc
@@ -63,4 +63,3 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0"
 WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
 
 WKS_FILE ?= "corstone1000-image.corstone1000.wks"
-
diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
new file mode 100644
index 00000000..ff22ff12
--- /dev/null
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
@@ -0,0 +1,3 @@
+# Machine specific TFAs
+
+COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-corstone1000.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-corstone1000.inc
index e59d31a7..ac4a412c 100644
--- a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-corstone1000.inc
+++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-corstone1000.inc
@@ -11,7 +11,7 @@ SRC_URI:remove = " \
      "  
 
 TFA_DEBUG = "1"
-TFA_UBOOT = "1"
+TFA_UBOOT ?= "1"
 TFA_MBEDTLS = "1"
 TFA_BUILD_TARGET = "bl2 bl31 fip"
 
diff --git a/meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb b/meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb
new file mode 100644
index 00000000..2da61165
--- /dev/null
+++ b/meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb
@@ -0,0 +1,53 @@
+DESCRIPTION = "Trusted Firmware-A tests(aka TFTF)"
+LICENSE = "BSD-3-Clause & NCSA"
+
+LIC_FILES_CHKSUM += "file://docs/license.rst;md5=6175cc0aa2e63b6d21a32aa0ee7d1b4a"
+
+inherit deploy
+
+COMPATIBLE_MACHINE ?= "invalid"
+
+SRC_URI = "git://git.trustedfirmware.org/TF-A/tf-a-tests.git;protocol=https;branch=master"
+# post v2.6 snapshot
+SRCREV ?= "af5a517ae9f295455122109100fe5d55668e8eaf"
+PV .= "+git${SRCPV}"
+
+DEPENDS += "optee-os"
+
+EXTRA_OEMAKE += "USE_NVM=0"
+EXTRA_OEMAKE += "SHELL_COLOR=1"
+EXTRA_OEMAKE += "DEBUG=1"
+
+# Platform must be set for each machine
+TFA_PLATFORM ?= "invalid"
+
+EXTRA_OEMAKE += "ARCH=aarch64"
+EXTRA_OEMAKE += "LOG_LEVEL=50"
+
+S = "${WORKDIR}/git"
+B = "${WORKDIR}/build"
+
+# Add platform parameter
+EXTRA_OEMAKE += "BUILD_BASE=${B} PLAT=${TFA_PLATFORM}"
+
+# Requires CROSS_COMPILE set by hand as there is no configure script
+export CROSS_COMPILE="${TARGET_PREFIX}"
+
+do_compile() {
+    oe_runmake -C ${S} tftf
+}
+
+do_compile[cleandirs] = "${B}"
+
+FILES:${PN} = "/firmware/tftf.bin"
+SYSROOT_DIRS += "/firmware"
+
+do_install() {
+    install -d -m 755 ${D}/firmware
+    install -m 0644 ${B}/${TFA_PLATFORM}/debug/tftf.bin ${D}/firmware/tftf.bin
+}
+
+do_deploy() {
+    cp -rf ${D}/firmware/* ${DEPLOYDIR}/
+}
+addtask deploy after do_install
diff --git a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
index 9f588a71..2e3b50c5 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
+++ b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
@@ -135,6 +135,10 @@ EXTRA_OEMAKE += "${@bb.utils.contains('TFA_UBOOT', '1', 'BL33=${DEPLOY_DIR_IMAGE
 DEPENDS += " ${@bb.utils.contains('TFA_UEFI', '1', 'edk2-firmware', '', d)}"
 EXTRA_OEMAKE += "${@bb.utils.contains('TFA_UEFI', '1', 'BL33=${RECIPE_SYSROOT}/firmware/uefi.bin', '', d)}"
 
+# TFTF test support
+DEPENDS += " ${@bb.utils.contains('TFTF_TESTS', '1', 'tf-a-tests', '', d)}"
+EXTRA_OEMAKE += "${@bb.utils.contains('TFTF_TESTS', '1', 'BL33=${RECIPE_SYSROOT}/firmware/tftf.bin', '',d)}"
+
 # Hafnium support
 SEL2_SPMC = "${@'${TFA_SPMD_SPM_AT_SEL2}' if d.getVar('TFA_SPD', True) == 'spmd' else ''}"
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
  2022-05-11 13:52 [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF vishnu.banavath
  2022-05-11 13:52 ` [PATCH 1/1] " vishnu.banavath
@ 2022-05-11 15:41 ` Jon Mason
  2022-05-16 16:45 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-05-11 15:41 UTC (permalink / raw)
  To: meta-arm, vishnu.banavath, Ross.Burton; +Cc: nd

On Wed, 11 May 2022 14:52:30 +0100, vishnu.banavath@arm.com wrote:
> TFTF is TF-A tests that runs at NS-EL2. This is primarily developed to
> test the TF-A interfaces exposed to NS code.
> 
> Vishnu Banavath (1):
>   arm-bsp/tf-a-tests: Add recipe to build and install TFTF
> 
>  .gitlab-ci.yml                                |  2 +-
>  ci/tftf.yml                                   |  7 +++
>  kas/tftf.yml                                  |  7 +++
>  .../conf/machine/include/corstone1000.inc     |  1 -
>  .../tf-a-tests_2.6.bbappend                   |  3 ++
>  .../trusted-firmware-a-corstone1000.inc       |  2 +-
>  .../trusted-firmware-a/tf-a-tests_2.6.bb      | 53 +++++++++++++++++++
>  .../trusted-firmware-a/trusted-firmware-a.inc |  4 ++
>  8 files changed, 76 insertions(+), 3 deletions(-)
>  create mode 100644 ci/tftf.yml
>  create mode 100644 kas/tftf.yml
>  create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
>  create mode 100644 meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb

Applied, thanks!

[1/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
      commit: f68fa49bcae00f9aa25473ef878ef8a72e2dd41e

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
  2022-05-11 13:52 [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF vishnu.banavath
  2022-05-11 13:52 ` [PATCH 1/1] " vishnu.banavath
  2022-05-11 15:41 ` [PATCH 0/1] " Jon Mason
@ 2022-05-16 16:45 ` Jon Mason
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Mason @ 2022-05-16 16:45 UTC (permalink / raw)
  To: meta-arm, vishnu.banavath, Ross.Burton; +Cc: nd

On Wed, 11 May 2022 14:52:30 +0100, vishnu.banavath@arm.com wrote:
> TFTF is TF-A tests that runs at NS-EL2. This is primarily developed to
> test the TF-A interfaces exposed to NS code.
> 
> Vishnu Banavath (1):
>   arm-bsp/tf-a-tests: Add recipe to build and install TFTF
> 
>  .gitlab-ci.yml                                |  2 +-
>  ci/tftf.yml                                   |  7 +++
>  kas/tftf.yml                                  |  7 +++
>  .../conf/machine/include/corstone1000.inc     |  1 -
>  .../tf-a-tests_2.6.bbappend                   |  3 ++
>  .../trusted-firmware-a-corstone1000.inc       |  2 +-
>  .../trusted-firmware-a/tf-a-tests_2.6.bb      | 53 +++++++++++++++++++
>  .../trusted-firmware-a/trusted-firmware-a.inc |  4 ++
>  8 files changed, 76 insertions(+), 3 deletions(-)
>  create mode 100644 ci/tftf.yml
>  create mode 100644 kas/tftf.yml
>  create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bbappend
>  create mode 100644 meta-arm/recipes-bsp/trusted-firmware-a/tf-a-tests_2.6.bb

Applied, thanks!

[1/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF
      commit: 43224b60b7360925b7c3b2eb825189a20e58d3ec

Best regards,
-- 
Jon Mason <jon.mason@arm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-16 16:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 13:52 [PATCH 0/1] arm-bsp/tf-a-tests: Add recipe to build and install TFTF vishnu.banavath
2022-05-11 13:52 ` [PATCH 1/1] " vishnu.banavath
2022-05-11 15:41 ` [PATCH 0/1] " Jon Mason
2022-05-16 16:45 ` Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.