Skip to contentSkip to conversation

CI: move FVP license auto-accept to fvp.yml

PATCH Applied Jon Mason 2 participants 6 messages May 25, 2023 – May 26, 2023

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/5 CI: move FVP license auto-accept to fvp.yml

It is only necessary to accept the FVP usage license when using FVPs. So, move that to the fvp.yml file from the base.yml file to make things a little cleaner.

---
 ci/base.yml               | 1 -
 ci/fvp-baser-aemv8r64.yml | 2 +-
 ci/fvp.yml                | 3 ++-
 ci/fvps.yml               | 2 ++
 4 files changed, 5 insertions(+), 3 deletions(-)
ci/base.yml +0 -1
index a724db65..26fbb602 100644
@@ -27,7 +27,6 @@ env:
 local_conf_header:
   base: |
     CONF_VERSION = "2"
-    LICENSE_FLAGS_ACCEPTED += "Arm-FVP-EULA"
   setup: |
     PACKAGE_CLASSES = "package_ipk"
     PACKAGECONFIG:remove:pn-qemu-system-native = "gtk+ sdl"
ci/fvp-baser-aemv8r64.yml +1 -1
index 40818bc6..cfaf9ef2 100644
@@ -2,6 +2,6 @@ header:
   version: 11
   includes:
     - ci/base.yml
+    - ci/fvp.yml
 
 machine: fvp-baser-aemv8r64
-
ci/fvp.yml +2 -1
index a8f8dfc0..3803d8ca 100644
@@ -3,9 +3,10 @@ header:
 
 local_conf_header:
   testimagefvp: |
+    LICENSE_FLAGS_ACCEPTED += "Arm-FVP-EULA"
     INHERIT += "fvpboot"
+  failing_tests: |
     # This fails but we can't add to the ignorelist from meta-arm yet
     # https://bugzilla.yoctoproject.org/show_bug.cgi?id=14604
     TEST_SUITES:remove = "parselogs"
-  failing_tests: |
     TEST_SUITES:remove = "xorg"
ci/fvps.yml +2 -0
index 58c29d53..44c153ab 100644
@@ -8,6 +8,8 @@ header:
 machine: qemuarm64
 
 local_conf_header:
+  license: |
+    LICENSE_FLAGS_ACCEPTED += "Arm-FVP-EULA"
   sdk: |
     SDKMACHINE = "x86_64"
 
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH 2/5 CI/corstone: remove debug-tweaks usage

debug-tweaks is useful in testing and internal usage, but is a massive security hole (as it allow password-less root login). Remove the default enablement on machine files and in kas base yml.

---
 ci/base.yml                                                     | 1 -
 ci/testimage.yml                                                | 1 +
 meta-arm-bsp/conf/machine/corstone500.conf                      | 1 -
 meta-arm-bsp/recipes-bsp/images/corstone1000-initramfs-image.bb | 2 --
 4 files changed, 1 insertion(+), 4 deletions(-)
ci/base.yml +0 -1
index 26fbb602..92fa7074 100644
@@ -30,7 +30,6 @@ local_conf_header:
   setup: |
     PACKAGE_CLASSES = "package_ipk"
     PACKAGECONFIG:remove:pn-qemu-system-native = "gtk+ sdl"
-    EXTRA_IMAGE_FEATURES:append = " debug-tweaks"
     PACKAGECONFIG:append:pn-perf = " coresight"
     INHERIT += "rm_work"
     DISTRO_FEATURES:remove = "ptest"
ci/testimage.yml +1 -0
index d7de7d06..b4b5599b 100644
@@ -3,6 +3,7 @@ header:
 
 local_conf_header:
   testimage: |
+    EXTRA_IMAGE_FEATURES:append = " debug-tweaks"
     IMAGE_CLASSES += "testimage"
     TESTIMAGE_AUTO = "1"
   kvm: |
meta-arm-bsp/conf/machine/corstone500.conf +0 -1
index c13c86c0..4794028a 100644
@@ -17,7 +17,6 @@ PREFERRED_VERSION_linux-yocto ?= "6.1%"
 EXTRA_IMAGEDEPENDS += "trusted-firmware-a u-boot"
 
 IMAGE_CLASSES += "wic_nopt"
-IMAGE_FEATURES += "debug-tweaks"
 IMAGE_FSTYPES:forcevariable = "cpio.gz squashfs wic wic.nopt"
 
 SERIAL_CONSOLES = "115200;ttyAMA0"
meta-arm-bsp/recipes-bsp/images/corstone1000-initramfs-image.bb +0 -2
index 46427b74..884d4b3b 100644
@@ -15,8 +15,6 @@ inherit core-image
 
 inherit image-buildinfo
 
-IMAGE_FEATURES += "debug-tweaks"
-
 #package management is not supported in corstone1000
 IMAGE_FEATURES:remove = "package-management"
 
Signature · 1 line
2.30.2
author
#2 lore raw

PATCH 3/5 arm/qemuarm-secureboot: add musl testing

In reply to Jon Mason

Add musl testing to have qemuarm-secureboot match qemuarm64-secureboot. Since the Arm GCC binary toolchain cannot work with musl, move that out into it's own testing.

---
 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
.gitlab-ci.yml +4 -1
index df1f0f5a..0344de58 100644
@@ -188,7 +188,10 @@ qemuarm-secureboot:
   parallel:
     matrix:
       - KERNEL: [linux-yocto, linux-yocto-dev, linux-yocto-rt]
-        TOOLCHAINS: [gcc, clang, external-gccarm]
+        TOOLCHAINS: [gcc, clang]
+        TCLIBC: [glibc, musl]
+        TESTING: testimage
+      - TOOLCHAINS: external-gccarm
         TESTING: testimage
 
 qemuarm:
Signature · 1 line
2.30.2
author
#3 lore raw

PATCH 4/5 arm/linux-yocto: remove 5.15 bbappend

In reply to Jon Mason
---
 meta-arm/recipes-kernel/linux/linux-yocto_5.15%.bbappend | 8 --------
 1 file changed, 8 deletions(-)
 delete mode 100644 meta-arm/recipes-kernel/linux/linux-yocto_5.15%.bbappend
meta-arm/recipes-kernel/linux/linux-yocto_5.15%.bbappend deleted +0 -8
deleted file mode 100644
index 9a18dd8a..00000000
@@ -1,8 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.15:"
-
-SRC_URI:append:qemuarm64-secureboot = " \
-    file://skip-unavailable-memory.patch \
-    "
-
-FFA_TEE_INCLUDE = "${@bb.utils.contains('MACHINE_FEATURES', 'arm-ffa', 'arm-ffa-5.15.inc', '' , d)}"
-require ${FFA_TEE_INCLUDE}
Signature · 1 line
2.30.2
author
#4 lore raw

PATCH 5/5 Revert "arm-bsp/tc1: re-enable signed kernel image"

In reply to Jon Mason

This reverts commit 5cbe3041befbf4cd588e8f45a793448833cc3f64.

---
 meta-arm-bsp/conf/machine/include/tc.inc | 11 -----------
 1 file changed, 11 deletions(-)
meta-arm-bsp/conf/machine/include/tc.inc +0 -11
index 75bfea07..14ec7205 100644
@@ -10,17 +10,6 @@ UBOOT_RD_LOADADDRESS = "0x88000000"
 UBOOT_RD_ENTRYPOINT = "0x88000000"
 UBOOT_LOADADDRESS = "0x80080000"
 UBOOT_ENTRYPOINT = "0x80080000"
-# Below options will generate a key to sign the kernel Image and INITRAMFS_IMAGE
-# according to the default parameters of kernel-fitimage.bbclass. If the user
-# would prefer to use their own keys, disable the key generation using the
-# FIT_GENERATE_KEYS parameter and specify the location of the keys using the
-# below paramters.
-UBOOT_SIGN_ENABLE = "1"
-UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb"
-UBOOT_SIGN_KEYNAME = "dev_key"
-UBOOT_SIGN_KEYDIR = "${DEPLOY_DIR_IMAGE}/keys"
-FIT_GENERATE_KEYS = "1"
-FIT_SIGN_INDIVIDUAL = "1"
 
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
 
Signature · 1 line
2.30.2
Applied
#5 lore raw
In reply to Jon Mason
Quoted 3 lines · Jon Mason

It is only necessary to accept the FVP usage license when using FVPs. So, move that to the fvp.yml file from the base.yml file to make things a little cleaner.

Applied, thanks!

[1/5] CI: move FVP license auto-accept to fvp.yml

      commit: 0442164a3007d05b0d79a72251d089c8c541d1bb
[2/5] CI/corstone: remove debug-tweaks usage
      commit: ab01e64bb3f4ccb9d0a1e542e2bab5e621d9aac7
[3/5] arm/qemuarm-secureboot: add musl testing
      commit: 93cc222bf656bd59ce2e803a5b1367f68f57176c
[4/5] arm/linux-yocto: remove 5.15 bbappend
      commit: f0c11d46aa042d1a3adce2f46e18dbcd24c29d32
[5/5] Revert "arm-bsp/tc1: re-enable signed kernel image"
      commit: c6e2ebc670faae21dfd3f39893c5d5204f9457d6

Best regards,

Signature · 1 line
Jon Mason <[email protected]>