1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 04:58:57 +00:00
Commit Graph

1750 Commits

Author SHA1 Message Date
Ross Burton 8015efe2f1 arm/fvp-envelope: name the FVP tarballs for checksums
We can download both x86-64 and aarch64 binaries, so ensure the SRC_URI
entry is named to identify them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-09 13:00:08 -05:00
Emekcan Aras a6211b6067 arm/qemuarm-secureboot: pin optee-os version
There is a new optee version 3.19. Currently, qemuarm-secureboot cannot boot
optee 3.19 out-of-the-box. This pins optee-os version to 3.18 for
qemuarm-secureboot.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Emekcan Aras 529d18e8a5 arm-bsp/optee-os: N1SDP support for optee-os 3.19
From: Emekcan <emekcan.aras@arm.com>

Adds build configuration to support optee-os 3.19 for N1SDP.
Also, it patches optee-os to support external DT for N1SDP.

Signed-off-by: Emekcan <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Emekcan Aras 3d9c97a0cc arm-bsp/optee-os: Adds 3.19 bbappend
From: Emekcan <emekcan.aras@arm.com>

This commit adds bbappend file for new optee-os 3.19 version.

Signed-off-by: Emekcan <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Emekcan Aras 3259a2a840 arm/optee: support optee 3.19
From: Emekcan <emekcan.aras@arm.com>

This commits adds a recipe to support optee-os 3.19.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Emekcan Aras b061104c87 arm/optee: Move optee-3.18 patches
Moves optee-3.18 and optee-tadevkit patches into
related directories.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Khem Raj ef20a1c9b5 gn: Replace lfs64 functions with original counterparts
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Adam Johnston 74f0ce7028 arm/trusted-services: Fix 'no such file' when building libts
The libts recipe assumes generated cmake file will be suffixed with
'-noconfig'. This is only true when building with the default type
i.e. "".

Check which target cmake file has been generated before trying to
patch it. This fixes 'no such file' error when building with an
explicit type (Debug, Release, etc).

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-08 12:41:08 -05:00
Mohamed Omar Asaker 95f83818ab arm-bsp/trusted-firmware-m: Remove TF-M 1.6 recipe
Remove old version recipe after adding TF-M 1.7 recipe

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
2023-01-05 11:35:52 +00:00
Mohamed Omar Asaker a57d99be63 arm-bsp/musca_b1: Edit the platform name
The Platform name in TFM has changed
from arm/musca_b1/sse_200 to arm/musca_b1

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
2023-01-05 11:32:40 +00:00
Mohamed Omar Asaker 9952e98bb5 arm-bsp/trusted-firmware-m: corstone1000: TFM 1.7
Add TFM corstone append file for v1.7

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
2023-01-05 11:32:40 +00:00
Mohamed Omar Asaker 64b51c5e5c arm-bsp/trusted-firmware-m: Bump TFM to v1.7
Create tfm recipe for v1.7.x

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
2023-01-05 11:32:40 +00:00
Mohamed Omar Asaker 4d87fe01d1 arm-bsp/trusted-services: corstone1000: Use the stateless platform service calls
Apply patch to use the stateless platform service calls

Calls to psa_connect is not needed and psa_call can be called
directly with a pre defined handle.

Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
2023-01-05 11:32:40 +00:00
Ross Burton 132089830b meta-gem5: remove
The meta-gem5 layer is unmaintained and gem5 is incompatible with Python
3.11, so won't work with master without work that is still ongoing.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:51:03 +00:00
Ross Burton c7b85230a2 meta-atp: remove
The meta-atp layer is unmaintained and gem5 is incompatible with Python
3.11, so won't work with master without work that is still ongoing.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:49:24 +00:00
Ross Burton 64d1f783b9 CI: use qemuarm64 for pending-updates report job
Instead of using the side-effect of gem5-arm64 pulling in many layers,
do it explicitly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:48:56 +00:00
Ross Burton dafc5ec028 arm-bsp/documentation: update fvp-base documentation to use runfvp
Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:31:15 +00:00
Ross Burton bd12f11348 ci/get-binary-toolchains: rewrite, slightly
Add set -e so errors are fatal.

Allow HOST_ARCH and VER to be overridden by the environment, for testing.

Pull the tarball basename into a variable to reduce duplication.

Turn the wget call into a function to reduce duplication.

Drop the big-endian binaries as we never use those.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:15:44 +00:00
Ross Burton 1bdc38cdb7 arm-bsp/edk2-firmware: allow clang builds on juno
This now works, so there's no need to restrict it to gcc.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:15:42 +00:00
Ross Burton 391265fe3f arm/fvp-base-a-aem: upgrade to 11.20.15
Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:15:40 +00:00
Ross Burton 52bbe75624 CI: use the .setup fragment in machine-coverage
Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-04 11:15:38 +00:00
Ross Burton 29b5d0df19 CI: fix builds with clang
meta-clang has a langdale branch now, so unset the explicit refspec.

linux-yocto needs to use non-clang objcopy, apply the change locally
until the commit has been merged into meta-clang's langdale branch.

perf needs some patches backported, until that has been done use gcc to
build perf.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2023-01-03 20:49:21 +00:00
Peter Hoyes 735f560aeb arm/fvpboot: Disable timing annotation by default
Timing Annotation is a feature of the model that enables high-level
performance estimations to be made [1]. It is not needed to demonstrate
a functioning software stack so set FASTSIM_DISABLE_TA to 1 in the model
environment to disable this feature. This also improves model
performance.

[1] https://developer.arm.com/documentation/100965/1119/Timing-Annotation

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-16 07:00:09 -05:00
Jon Mason c32c4043ff CI: define DEFAULT_TAG and CPU_REQUEST
DEFAULT_TAG and CPU_REQUEST are being used to help with internal Gitlab
pipeline setups know which type of machines to run on, but has no value
outside of Arm Corp.  Gitlab CI allows for variables to be overridden
by default.  So, we can give it a default value of NULL/empty and have
everything work internally and externally by default.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-15 11:41:43 -05:00
Jon Mason 1ba7d646da arm/trusted-firmware-m: update to 1.6.1
Update tf-m to the latest stable version and update the mbedtls git tree
to the new location.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-14 14:00:11 -05:00
Ross Burton 37bc037bea CI: no need to install telnet
The kas 3.1 container has telnet in. We can also remove python3-subunit
once kas 3.2 is released.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-12-14 15:25:35 +00:00
Ross Burton 0e398c77ec CI: add tags to all jobs
Tag all jobs with the DEFAULT_TAG variable so each instance can control
what tags the jobs have, whilst still explicitly tagging the jobs which
need specific tags (such as x86_64 for jobs which need to run x86-only
binaries)

Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-12-14 15:25:35 +00:00
Ross Burton b5909b7bc4 CI: add variables needed for k8s runners
The Kas container needs to use the entrypoint as that is where the user
changes from root to a normal user.

Also set the KUBERNETES_CPU_REQUEST to the variable CPU_REQUEST as this
needs to be tuned per-deployment.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2022-12-14 15:25:35 +00:00
Robbie Cao f39f483e4d arm/fvp-base-r-aem: upgrade to version 11.20.15
Update version in documentation.

Issue-Id: SCM-4874
Signed-off-by: Robbie Cao <robbie.cao@arm.com>
Change-Id: Ic66bdcdc5c6309331f80faab6eaf2e3e936a5da4
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-14 03:00:10 -05:00
Peter Hoyes 02b430d045 arm/fvp: Backport shlex.join from Python 3.8
721bec25 "arm/fvp: Join cli arguments in verbose logging" changed the
verbose output of FVPRunner to print the generated arguments using
shlex.join instead of as a list. However, this function is only
available in Python >= 3.8, whereas OE-core currently supports Python
3.6.

To fix this, backport its one-line implementation to a local function
shlex_join and update the call site.

Issue-Id: SCM-5314
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I56cab9dddcd0a91272464be15742a6ee726dad41
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-01 08:00:09 -05:00
Ross Burton fd57859e18 CI: revert a meta-clang change which breaks pixman (thus, xserver)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-28 15:47:35 -05:00
Emekcan Aras 05ce44eb40 arm-bsp/documentation: corstone1000: update the user guide
Aligning the user guide with the latest Corstone1000 SW updates.

Signed-off-by: Emekcan Aras <Emekcan.Aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-23 09:00:12 -05:00
Emekcan e407b94815 arm/fvp: Upgrade Corstone1000 FVP
Upgrades the Corstone1000 FVP to the latest release
version.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-23 09:00:12 -05:00
Adrián Herrera Arcila 9699e6698e ci: add meta-atp to check-layers
Signed-off-by: Adrián Herrera Arcila <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrián Herrera Arcila e695d0ee25 atp: fix machine overrides in recipes
Ensure meta-atp recipes are only performed if a compatible machine is
selected.

Signed-off-by: Adrián Herrera Arcila <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrián Herrera Arcila 8023f902ac atp: separate recipe for gem5 models
Previously, meta-atp extended the original gem5 recipe to add the ATP
Engine models; the .bbappend was complex, because it pulled from two
sources, and it was not possible to make machine-based overrides, as it
is a native recipe.

To solve this, we use the recent EXTRAS feature to add the gem5 models
from a different recipe.

Signed-off-by: Adrián Herrera Arcila <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrián Herrera Arcila 29fa253f00 gem5: support for EXTRAS
External models can be added to gem5 through EXTRAS:
https://www.gem5.org/documentation/general_docs/building/EXTRAS

Added GEM5_EXTRAS to the gem5-native recipe to support it.

Signed-off-by: Adrián Herrera Arcila <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrian Herrera dacbabae70 atp: move m5readfile to meta-gem5
The m5 readfile recipe provides general utility for gem5 users to
run any script on OS boot. We hence move it to the meta-gem5 layer.

Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrian Herrera 3786d6d016 atp: decouple m5readfile from m5ops
By making m5readfile into its own recipe, we avoid modifications to the
m5ops recipe when using the meta-atp layer, which break the Yocto
compatibility of the layer.

Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Adrián Herrera Arcila ffd0aca508 atp: fix failing test_readme
Test failed because there was no reference to maintainers in the
meta-atp README.

Following the common structure of other layers in the meta-arm
repository, the README in meta-atp now refers to the top-level README,
and a documentation directory contains the guidance that was present in
the original meta-atp README.

Signed-off-by: Adrián Herrera Arcila <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:45:34 -05:00
Jon Mason 11698cd358 arm-bsp/trusted-services: add n1sdp support
Add support for n1sdp to trusted-services bbappends and rework some
things to make it easier to add more in the future.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:00:13 -05:00
Diego Sueiro f7c9f58eeb arm/trusted-firmware-m: Fix local source patches application
As TF-M ships patches that it needs applied to mbedcrypto, we apply them as
part of do_patch by using a postfunc. There is an issue when do_patch is
executed after do_deploy_source_date_epoch_setscene and apply_local_patches
tries to apply the patches already applied.

To fix this, make usage of the apply_local_src_patches bbclass.

Change-Id: Ia115b540b37ad3a2cce30e1e0461abd1f5a6ccc1
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:00:09 -05:00
Diego Sueiro 7fcff00498 arm/classes: Introduce apply_local_src_patches bbclass
This class is to be inherited by recipes where there are patches located inside
the fetched source code which need to be applied.

The following variables need to be set:
LOCAL_SRC_PATCHES_INPUT_DIR is the directory from where the patches are located
LOCAL_SRC_PATCHES_DEST_DIR is the directory where the patches will be applied

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I8f9c16a5fbc9d5569cba60136560f1951408bd60
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-21 10:00:09 -05:00
David Bagonyi 23aed71692 meta-arm-toolchain: Drop calls to datastore finalize
In d8e9ee8fd53b7620e72b2dfebb2e8d464b737dbb the finalize method was removed.

Signed-off-by: David Bagonyi <david.bagonyi@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-18 08:00:08 -05:00
Jon Mason 7b4c17632d arm/trusted-services: limit the ts compatible machines
World builds are trying to build trusted services, which has a
dependency on meta-python.  To avoid having to add a layer dependency
for meta-arm on meta-python, limit the compatible machines to the ones
using it (which already have a meta-python dependency).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-17 12:01:57 -05:00
Jon Mason a68a2a206e arm-bsp/trusted-services: rename bbappends with git version
"git" is the version and need not be part of the bbappend name.  Since
this isn't being done in any other part of meta-arm-bsp (and not
uniformly in the same directory), rename the bbappends to have the %
wild card.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-17 12:01:57 -05:00
Peter Hoyes d5f132b199 runfvp: Fix verbose output when using --console
Start a new thread to simultaneously log the output of FVP and the
telnet output if the --verbose flag is passed to runfvp. So that
ConsolePortParser can read the same stream, use itertools.tee to
temporarily duplicate the stream.

Use a custom log format string with an escape character to ensure that
log output always starts at the beginning of a line when interleaved
with console output.

Issue-Id: SCM-5314
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I3e815d9d899425e0d2af619524f09f2eda87562c
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-15 11:00:13 -05:00
Peter Hoyes 79e78fb31d arm/oeqa: Log the FVP output in OEFVPSSHTarget
It is often useful to inspect the FVP output after running the tests.

Refactor OEFVPSerialTarget._create_logfile into
OEFVPSSHTarget._create_log_filename, so that all FVP test controllers
are able to create secondary log files.

Pass a filehandle to the stdout argument of run_fvp so that the FVP
output is asynchronously logged to a file. Change the port parsing logic
to read back from the same log file instead of reading the stdout
directly.

Issue-Id: SCM-5314
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I2ddb423fa0d896c13d3e96884858c680c4d34555
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-15 11:00:13 -05:00
Peter Hoyes 2265bffdc7 arm/lib: Decouple console parsing from the FVPRunner
To simplify the FVPRunner class, create a separate ConsolePortParser
class to handle reading an iterator of lines and parsing port numbers
for FVP consoles. Use this in runfvp and the test targets.

This refactor also allows the stream being monitored to be changed more
easily, e.g. to a log file.

Issue-Id: SCM-5314
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: Iade3a4c803fb355b04af7afa298d0a41fe707d94
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-15 11:00:13 -05:00
Peter Hoyes 81e0cf090b arm/lib: Factor out asyncio in FVPRunner
FVPRunner relies heavily on asyncio, despite there being very little
concurrent work happening. Additionally, while the runfvp entry point
starts an asyncio runner, it is not practical to have a single asyncio
runtime during testimage, which is fully synchronous.

Refactor to use subprocess.Popen and related functionality. The process
object has a similar interface to its async equivalent.

Cascade the API changes to runfvp and the test target classes.

Issue-Id: SCM-5314
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I3e7517e8bcbb3b93c41405d43dbd8bd24a9e7eb8
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-15 11:00:13 -05:00