1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00
Commit Graph

1889 Commits

Author SHA1 Message Date
Ross Burton
980f37d4d3 arm-toolchain/gcc-arm-12.2: remove
This recipe is a rebuild from source of the Arm GCC release, with
patches from oe-core added to make it work well in our environment.

Most people are happy with the GCC in oe-core, and this release is often
behind: at the time of writing oe-core has mainline GCC 13.1, but Arm
GCC is 12.2.  Users who actually want the improvements in Arm GCC will
likely want to use the binary toolchain so that they can have support
from Arm, and they're welcome to do so via the "external-arm" binary
toolchain.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-13 10:11:37 -04:00
Ross Burton
7abee72670 arm/scp-firmware: use concerete toolchain
There are not any alternatives for the virtual/arm-non-eabi-gcc provider,
so just use the real recipe name.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-13 10:11:37 -04:00
Ross Burton
f83c4abdbd arm-toolchain/external-arm: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
The binary Arm compiler is based on GCC 12. Remove this GCC 13-specific
option until the next release.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-13 10:11:31 -04:00
Ross Burton
18be955c9a arm-bsp/external-system: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
This recipe uses the binary Arm compiler, which is based on GCC 12.
Remove this GCC 13-specific option until the next release.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-12 11:00:12 -04:00
Ross Burton
f7e551e479 arm/trusted-firmware-m: remove -fcanon-prefix-map from DEBUG_PREFIX_MAP
This recipe uses the binary Arm compiler, which is based on GCC 12.
Remove this GCC 13-specific option until the next release.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-12 11:00:12 -04:00
Jon Mason
088c6825f5 arm-bsp/tc1: update to use the latest tf-a
Change from using a patched, intermediate SHA to the latest.
Unfortunately, the latest stable mbedtls doesn't boot on tc1.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-09 10:35:42 -04:00
Jon Mason
ba93470738 trusted-firmware-a: update to the latest TF-A LTS
Update TF-A and fiptool (which is part of tf-a) to the latest stable version.
Also, use the tf-a tests lts branch (which is still at version 2.8.0).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-09 10:35:17 -04:00
Claus Stovgaard
3fcafa3a94 arm-toolchain/gcc: Workaround for missing libcrypt
gcc-arm-none-eabi and gcc-aarch64-none-elf both fails when packaged as
RPM for sdk with

nothing provides libcrypt.so.1()(64bit) needed by nativesdk-gcc-arm-none-eabi-12.2.rel1-r0.x86_64_nativesdk

As we don't control the dependencies for prebuilt libraries we create a
workaround by skipping the FILEDEPS

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 14:01:56 -04:00
Ross Burton
ca6df87315 arm/trusted-firmware-a: look for LTS releases when looking for releases
TF-A has LTS releases, which are prefixed with lts- for some reason.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Ross Burton
849eb7c517 arm/fvp: add LICENSE_FLAGS_DETAILS
Add a link to the FVP EULA in LICENSE_FLAGS_DETAILS, so the user has
some context as to what they're agreeing to upfront.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Ross Burton
692d017231 kas: remove obsolete armcompiler LICENSE_FLAGS_ACCEPTED
armcompiler was removed from meta-arm-toolchain (24c4cfa) so this isn't
needed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Emekcan Aras
8afdb9a895 arm-bsp/u-boot: corstone1000: enable PSCI reset
Even though corstone1000 platform does not support the entire PSCI APIs, it
relys on PSCI reset interface for system reset. The name of this config
changed in the new version of u-boot. This enables PSCI reset, so
the system can be resetted in u-boot again.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Adam Johnston
c1a7dd5eda CI: Platform specific Trusted Services config
Split trusted-services.xml into qemuarm64-secureboot-ts.yml and
n1sdp-ts.yml as collection of Trusted Services which can be tested on
each platform has diverged.

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Rui Miguel Silva
bd8d017051 arm-bps/corstone1000: setup trusted service proxy configuration
Make sure we setup the new variable for the configuration
of the SE-Proxy service for our machine. This will trigger
the right configuration building trusted services and all
psa-arch test pass as before.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:50 -04:00
Gyorgy Szing
78d9aafa2a optee-os: unblock NWd interrupts
Update Trusted Services and backport an OP-TEE update which allows
interrupting the SPs by NWd interrupts. This solves the kernel stall
problems which are due to long cryptographic operations being executed
in the SWd.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 13:58:43 -04:00
Gyorgy Szing
1f2ab563d1 arm/trusted-services: fix nanopb build error
The nanopb build step randomly fails in the yocto CI due to a race condition.
This change adds a patch file to disable parallel build for nanopb. This is a
temporary workaround and a proper fix will be up-streamed int he future.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Rui Miguel Silva
c3cc9cfbf7 arm-bsp/trusted-services: remove merged patches for corstone1000
Patch related with the changes to support the in/out_vec modifications
in TF-M v1.7 was merged in upstream trusted-services integration branch.
So, drop this 3 out of tree patches not needed to be applied any more.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
bcb0a72c93 arm/trusted-services: disable psa-iat on qemuarm64-secureboot
TF-A v2.8 does not support measured boot and FF-A which is mandatory for
PSA Initial Attestation SP to work correctly.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
eaac633fa6 trusted-services: update documentation
Add information related to SPMC tests and fix stale links.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Rui Miguel Silva
6e0f3be575 arm-bsp/trusted-services:corstone1000: remove already merged patches
Remove already merged patches in trusted services integration
branch to avoid clash during apply patch stage and rebase the
remaining patches.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
a13b63f9ea arm/oeqa: enable OP-TEE SPMC tests
Run the ffa_spmc test group of xtest if the optee-spmc-test machine
feature is enabled.

Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
cad5dd0f8f optee-os: enable SPMC test
Add ta-devkit and optee-test. Change configuration to enable building
and deploying OP-TEE SPMC tests.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
73d9318f0b optee-test: backport SWd ABI compatibility changes
The ABI used by the arm-ffa-user driver to call into the SWd changed.
The change was driven by the MM over FF-A ABI implementation which is
used by SmmGW SP and uefi-test. uefi-test uses the same arm-ffa-user
driver as xtest hence xtest needs to be updated to use the new driver.
This xtest change is already merged up-stream but after v3.20, which is
used here.
This change adds backported xtest changes as carried patches.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
260b335786 arm/trusted-firmware-a: Add TOS_FW_CONFIG handling for quemu
This change:
  - cherry-picks TF-A changes from master which implement passing
    TOS_FW_CONFIG DTB from the FIP package to the trusted OS.
  - add an OP-TEE SPMC specific SPMC manifest file
  - configures TF-A to build the manifest, add it to the FIP package
    and pass it to OP-TEE as a boot argument.

This functionality needs matching changes in OPTEE (OP-TEE v3.21
or v3.20 + carried patches.)

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
b81642c5f8 optee-os: Add support for TOS_FW_CONFIG on qemu
OP-TEE SPMC v3.20 and TF-A v2.8 is incompatible on qemu, and OP-TEE
panics during boot because having an SPMC manifest passed to the SPMC is
mandatory since v3.20. TF-A and OP-TEE upstream already fixed this issue
by modifying the ABI between the SPMD and SPMC. Moreover qemu support in
TF-A has been extended to allow building an SPMC manifest DTS file, and
loading it from the FIP package.
This change adds the needed OP-TEE fixes as carried patches. The TF-A
change will be added in the next commit.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Anton Antonov
e0c451ffd2 arm/oeqa: Make ts-service-test config match selected SPs
Split tests to groups, and enable groups based on machine features set.
This allows limiting tests to testing deployed SPs only.

Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
c5df0d9acd optee-os: remove v3.18 pin of OP-TEE on qemuarm64-secureboot
To enable up-to date version of Trusted Services op-tee v3.20 or newer
is needed.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Gyorgy Szing
cad1cc154f arm/trusted-services: update TS version
This change updates to latest available version of Trusted Services.
List of changes:
  - adapt SP recipes to file structure changes and support for
    "configurations". In TS each SP can be built in various different
    setups to allow adapting to platform and integration specific
    differences.
  - MbedTLS dependency has been updated to v3.3.0.
      - This needs new python dependencies are required in the build
        environment.
      - psa-acs was updated to a matching version.
      - do_patch() has been updated to support the MbedTLS patch added
        in TS.
  - Update TS dependency patching method to use git instead of patch.
  - Downgrade nanopb to match up-stream dependency version.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-06 09:42:25 -04:00
Jon Mason
864d2a2c6a arm/linux-yocto: add gcc 13 gimple backport patch
Issue when building the kernel on FVP (and probably all aarch64
platforms) with GCC 13 on the 6.1 kernel (and possibly others).
Backport the upstream fix.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-05 08:19:29 -05:00
Jon Mason
cc9859e5b3 CI: add debug yml file for ease of use
There are cases where a developer might want to enable things, like
debug-tweaks, which are useful in their testing but not something we
would want in a production environment.  Create a file where these can
be added without affecting other things.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-05 08:19:29 -05:00
Jon Mason
83ff3b1bd6 arm-bsp/optee: Remove unreferenced patches
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-05 08:19:29 -05:00
Jon Mason
ebe669ad9c arm/linux-yocto: remove unused 5.15 patches and inc file
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-06-05 08:19:29 -05:00
Mikko Rapeli
a00a1fe845 scp-firmware: remove -fcanon-prefix-map
virtual/arm-none-eabi-gcc-native is still at version 12 which
doesn't support it. poky comes with gcc 13 already.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-29 12:00:09 -04:00
Jon Mason
c6e2ebc670 Revert "arm-bsp/tc1: re-enable signed kernel image"
This reverts commit 5cbe3041be.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-25 17:00:23 -04:00
Jon Mason
f0c11d46aa arm/linux-yocto: remove 5.15 bbappend
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-25 17:00:23 -04:00
Jon Mason
93cc222bf6 arm/qemuarm-secureboot: add musl testing
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.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-25 17:00:23 -04:00
Jon Mason
ab01e64bb3 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.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-25 17:00:23 -04:00
Jon Mason
0442164a30 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.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-25 17:00:23 -04:00
Jon Mason
5cbe3041be arm-bsp/tc1: re-enable signed kernel image 2023-05-24 13:17:48 -04:00
Jon Mason
6033dcb106 arm-bsp/tc1: use latest kernel and u-boot
Drop usage of the Android kernel and legacy u-boot in favor of the
latest of both

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-24 13:17:48 -04:00
Ross Burton
87831bf559 arm-bsp/fvp-base: remove u-boot version pinning
The fvp-base machine only has minimal patches, so should be good to
always track the latest release of u-boot.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-24 11:00:13 -04:00
Ross Burton
6fc35b9613 arm/lib/fvp: remove redundant trailing commas
These were left behind in a refactor.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-24 11:00:13 -04:00
Clément Péron
cb31d9e598 runfvp: update filepath in fvpconf to relative path
Using absolute path in fvpconf will leak the host machine path.

This is a bit annoying when the builder and the runner doesn't use
the same filepath hierachy.

Switch to relative path instead of absolute.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-22 09:25:15 -04:00
Clément Péron
1fa602ad3b fvp: runner: execute fvp process in the same working directory as fvpconf
In Order to be able to have filepath relative to fvpconf, execute the
fvp process in the same working directory.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-22 09:25:15 -04:00
Clément Péron
272359be5d runfvp: make fvp runner to hold the config
At the moment the config is load and pass to FVPRunner.

Change the ownership to FVPRunner.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-22 09:25:15 -04:00
Clément Péron
316e02c0f1 scripts/runfvp: Fix KeyError exception when there is no FVP_CONSOLE provided
We access the dictionnary element that doesn't exist.

Use the get() method instead that will default the element to None if it
doesn't exist.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-22 09:25:11 -04:00
Clément Péron
fa598021fb arm/lib: pass the PATH to fvp runner
When running an FVP machine the model executable need to be found
in the PATH environement.

At the moment the script doesn't provide any PATH to the subprocess.

Add PATH to the allowed environement variable to be forwaded.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-22 09:25:11 -04:00
Emekcan Aras
f9d80e1a14 arm-bsp/wic: corstone1000: Fix and limit the partition size for corstone1000
It fixes and limits the partition size to fix capsule update feature
after the GPT changes.
The partitions in the second bank needs to have correct size and
the partitions in first bank should have a fixed size since corstone1000 does
not support partial update and has a limited flash to support variable size.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-16 10:42:55 -04:00
Emekcan Aras
75eb154a61 arm-bsp/trusted-firmware-m: Align Capsule Update with GPT changes
This patch aligns capsule update feature in tfm with GPT/BL1 changes.
Adjusts BL2 flash and data size and adds missing CRC checks.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-05-16 10:42:55 -04:00
Rui Miguel Silva
0b5724266a arm-bsp/u-boot: corstone1000: remove debug messages and fix env
Remove log messages, that would never show up, but clean that
mess. And fix the env script and config so that trigger the
load of kernel from reading the gpt.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
4.2 yocto-4.2
2023-05-03 11:00:17 -04:00