1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-06 16:48:54 +00:00
Commit Graph

2093 Commits

Author SHA1 Message Date
Ross Burton
cadb42a66c arm/oeqa/selftest: tag all tests with "meta-arm"
Tag all of the tests in meta-arm so that they can be selectively ran
without needing to explicitly list them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-13 13:01:49 -04:00
Jon Mason
bc4d2e4124 CI: add sbsa-acs to recipe report
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-13 09:50:02 -04:00
Jon Mason
86e17cf073 arm/linux-yocto: remove defconfig patch
Patch was accepted upstream and has been pulled back the 6.5 and 6.1
kernels.  So, it is no longer needed here.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-13 09:50:02 -04:00
Jon Mason
07dbfed721 arm-bsp/linux-yocto: add recipe for v6.4 kernel
The v6.4 kernel is needed for some platforms in meta-arm-bsp.
Temporarily add it here to give those machines enough time to
update to the latest version.  Also, add the patch to the
defconfig.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-13 09:49:07 -04:00
Javier Tia
f2efb2a456 trusted-firmware-a: fix build error when using ccache
When ccache is enabled trusted-firmware-a recipe fails with this
error message:

    make: *** No rule to make target 'aarch64-poky-linux-gcc'. Stop.

ccache prefix CC variable with 'ccache' word before compiler. Because
there are no quotes assigned to CC, only 'ccache' is assigned. The
compiler becomes a make target, producing the build error.

Add single quotes to LD is a good measure to prevent this kind of error.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-07 19:00:37 -04:00
Jon Mason
e914891eee arm-bsp/u-boot: add recipe for 2023.07.02
Multiple machines in meta-arm-bsp have need of the 2023.07.02 version of
u-boot.  Temporarily add it here to give those machines enough time to
update to the latest version.

NOTE: MTD changes in u-boot require changes to the qemuarm config.
Specifically, not disabling it.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-06 09:30:14 -04:00
Emekcan Aras
95789365f7 arm-bsp/trusted-firmware-m: Enable authenticated capsule update
Enables authenticated capsule update and makes necessary changes to
align with new capsule generation tool (mkeficapsule in u-boot).

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-02 07:00:44 -04:00
Emekcan Aras
fdbf5f55ad arm-bsp/u-boot: corstone1000: introduce authenticated capsule update
Adds signature to device-tree overlay and enables authenticated capsule
update in u-boot for corstone1000.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-02 07:00:44 -04:00
Emekcan Aras
aafcf21459 kas: corstone1000: add meta-secure-core
Adds meta-secure-core to enable capsule update feature.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-02 07:00:44 -04:00
Emekcan Aras
bbc1732e4a CI: Include meta-secure-core in corstone1000
Adds meta-secure-core to corstone1000.yml to enable signed capsule
update feature.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-02 07:00:44 -04:00
Emekcan Aras
0be13f383d CI: Add meta-secure-core
Meta-secure-core is used to create signed capsule (firmware update
images). This adds meta-secure-core.yml file and since it depends on meta-perl
from oe-core, it adds that layer to meta-openembedded.yml

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-10-02 07:00:44 -04:00
Ross Burton
4d76ed4c75 CI: upgrade to Kas 4 container
The Kas binary is identical, but the container has been rebuilt using
Debian 12 (Bookworm).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
dbad5d9281 CI: use a venv for sphinx
The Kas container in version 4 onwards is based on Debian 12, which
forbids pip from installing files into /usr or ~/.local/.

We want to install the arbitrary dependencies for the documentation
build, so these should be installed in a venv.

The kas container doesn't currently install python3-venv, so we have to
install that manually (patch sent upstream).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
210a6ace83 arm/trusted-services: upgrade nanopb and fix build races
Upgrade nanopb, clean up how it is build, and hopefully fix the build
races.  This patch isn't quite ready to be upstreamed but discussion
with the TS maintainer is ongoing.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
46e6f42e31 arm/trusted-services: use apply_local_src_patches
Now that the apply_local_src_patches class supports being used with
multiple directories, use that instead of reimplementing the logic.

Also remove redundant patchdir assignments as these patches are against
the trusted-services repository, which is ${S}.  I suspect these are
exposing a subtle bug in the core patching logic which meant the local
patches were not applying correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
67deb2cf1b arm/trusted-services/ts-sp-env-test: remove
This test needs the TF-A sources available to build. When the test is
needed, this commit can be reverted to bring it back.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
549e05e486 arm/trusted-services/ts-sp-env-test: add missing DEPENDS
This recipe won't pass configure without the jsonschema and jinja2
Python modules.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
909d49fa6f arm/trusted-services/ts-remote-test: move binary to $bindir
As with ts-service-test, manually move the binary to $bindir.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
7a126f00de arm/trusted-services: add missing pkgconfig inherit
The configure log warns that it couldn't find pkgconfig, so add this so
it can.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
893b20fbee arm/trusted-services: pass through CMake generator
Pass through the choice of CMake Generator when starting sub-cmakes for
the external components, so that they use Ninja instead of Make.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Ross Burton
be76055bdc arm/apply_local_src_patches: allow use in multiple directories
Pull out the patch application logic so the postfunc by default scans
for patches in LOCAL_SRC_PATCHES_INPUT_DIR and applies them to
LOCAL_SRC_PATCHES_DEST_DIR as before.

This allows recipes to inherit the class and directly call
apply_local_src_patches as needed to process patches in multiple
directories.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 11:36:18 -04:00
Divin Raj
fd13de4f85 ci,doc,kas,arm-bsp,arm: Remove support for fvp-baser-aemv8r64 machine
The fvp-baser-aemv8r64 machine will not be actively maintained.

Signed-off-by: Divin Raj <divin.raj@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-29 10:00:18 -04:00
Jon Mason
32e06a2328 README: remove reference to meta-arm-autonomy
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-28 15:00:18 -04:00
Abdellatif El Khlifi
668ac8338e arm-bsp/u-boot: corstone1000: purge U-Boot specific DT nodes before Linux
Remove U-Boot specific DT nodes before passing the DT to Linux

This is needed to pass SystemReady IR 2.0 dt-schema tests

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-28 11:00:34 -04:00
Abdellatif El Khlifi
59224ced53 arm-bsp/trusted-firmware-a: corstone1000: enable ERRATA_A35_855472
enable errata 855472 for Cortex-A35 in Corstone-1000

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-28 11:00:34 -04:00
Adam Johnston
be9bbaa16e arm-bsp/trusted-firmware-a: Fix BL32 path if usrmerge enabled
The optee recipe installs the tee image using `${nonarch_base_libdir}`
If usrmerge is enabled this is `/usr/lib`, otherwise it is `/lib`

Several platforms (corstone1000, n1sdp, tc) look for tee-pager_v2.bin in
the hard-coded `/lib/firmware`, hence if usrmerge is enabled it won't be
found.

Fix these platforms by using `${nonarch_base_libdir}` instead of `/lib`
as per the qemu platform code in the generic recipe.

Signed-off-by: Adam Johnston <adam.johnston@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-25 12:00:23 -04:00
Xueliang Zhong
55858c23dd arm-bsp/corstone1000: bump kernel version to v6.4
Bump kernel version to v6.4 and rebase the patches on
top of this new version.

Signed-off-by: Xueliang Zhong <xueliang.zhong@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-20 14:00:21 -04:00
Jon Mason
6333e1e198 arm/scp-firmware: update to v2.13.0
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-19 09:02:13 -04:00
Jon Mason
7e26d706cf arm/opencsd: update to v1.4.1
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-19 09:02:13 -04:00
Jon Mason
e8844f4c08 arm/trusted-firmware-m: update to 1.8.1
TFM updated to 1.8.1.  Note, TF-Mv1.8.1 tags point to the same SHA as
the TF-Mv1.8.0 tag for tf-m-tests and tf-m-extras.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-19 09:02:13 -04:00
Javier Tia
0221098739 libts: tee-udev.rules: Change ownership to tee group
tee and teeclnt are there to avoid running client applications (CAs) and
tee-supplicant as root.

- The teeclnt group stands for "TEE client" and is for CAs (CAs need
  access to /dev/tee[0-9]* but not /dev/teepriv[0-9]*).

- tee is just for tee-supplicant to open its device /dev/teepriv[0-9]*.
  No other process is supposed to open that one.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-19 08:36:18 -04:00
Emekcan Aras
4fb79a2f7c arm-bsp/optee-os: corstone1000: Handling logging syscall correctly
Enables handling logging messages correctly.

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-18 15:00:21 -04:00
Ross Burton
db5a3093f3 arm-bsp: change port mapping for SSH to port 2222
Rationalise the port forwarding to be the same as the runqemu defaults,
so change the SSH port forward to be 2222=22 instead of 8022=22.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-18 08:00:22 -04:00
Ross Burton
9f2e78698e CI: remove redundant variables in testimage.yml
QEMU_USE_SLIRP is no longer needed[1] as adding slirp to
TEST_RUNQEMUPARAMS is sufficient, so remove that.

Setting TEST_SERVER_IP also isn't needed as there's a default value now,
and we disable the package management tests that would use the server
IP.  When they work the correct IP can be set.

[1] As of oe-core f4e8650

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-18 08:00:22 -04:00
Jon Mason
75fc079970 arm/edk2: update to edk2-stable202308
Update to the latest versions of edk2 and edk2-platforms.  This
necessitates updating the patches in sbsa-acs to apply cleanly to the
latest version of edk2.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-14 19:26:31 -05:00
Javier Tia
1bff41eee6 optee-client: start tee-supplicant.service when teeprivX dev is detected
It's expected to exist multiple /dev/teepriv[0-9]* devices, and the
tee-supplicant service depends on them, which should be activated only
when the device is detected by the kernel using a udev rule.

Improve commit f02d065dce, where it's only considering a path creation
and not a device detection by the kernel.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-14 15:00:37 -04:00
Peter Hoyes
df01b29f3f CI: Make update-repos more resilient to network issues
The update-repos script currently exits immediately if one of the
underlying Git commands fails (e.g. because of a network issue). If the
repo already exists, then catch this error inside the loop and
carrying on attempting to update other repos, as the network error may
be upstream.

KAS_REPO_REF_DIR is ultimately an optimization and subsequent build
stages should be able to continue if one of the updates fail. Therefore,
ensure the script returns a special error code if at least of the Git
commands fail, and use this to set the allow_failure property of the
job.

If a repo does not exist, fail immediately as before.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-13 11:00:21 -04:00
Peter Hoyes
b6668069b8 CI: Allow a GitHub container registry mirror to be specified
To make the pipeline slightly more resilient to external networking
issues, allow a local container registry mirror to be specified in the
GitLab settings. If not specified, the upstream container registry is
used automatically.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-13 11:00:21 -04:00
Mariam Elshakfy
18da91ffd2 arm-bsp/optee-os: N1SDP upgrade tadevkit and optee-test to 3.22
Since optee-os for N1SDP has been updated to 3.22,
this patch updates optee-os-tadevkit and optee-test
to match the same version.

Signed-off-by: Mariam Elshakfy <mariam.elshakfy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-12 04:00:27 -04:00
Mariam Elshakfy
e828f3633f arm-bsp/optee-os: N1SDP upgrade optee-os to 3.22
Upgrade optee-os version for N1SDP platform
to 3.22

Signed-off-by: Mariam Elshakfy <mariam.elshakfy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-12 04:00:27 -04:00
Khem Raj
2d809a7c35 layer.conf: update LAYERSERIES_COMPAT for nanbield
* oe-core switched to nanbield in:
  https://git.openembedded.org/openembedded-core/commit/?id=f212cb12a0db9c9de5afd3cc89b1331d386e55f6

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-11 15:00:37 -04:00
Xueliang Zhong
1fe76c893c arm-bsp/n1sdp: update to linux yocto kernel 6.4
Bump kernel version to v6.4 and rebased N1SDP kernel PCIe quirk patches
top of this new version.

Signed-off-by: Xueliang Zhong <xueliang.zhong@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-11 10:00:39 -04:00
Ross Burton
3748fc07d2 arm/generic-arm64: set XSERVER to install the modesetting driver
The default XSERVER only pulls in the framebuffer driver, which is
pretty broken with modern kernels and the modesetting driver is a lot
more functional.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-11 10:00:38 -04:00
Ross Burton
333719ea3e arm/qemu-generic-arm64: force off KVM in qemu
The sbsa-ref machine can't use KVM because it's an entire emulated
machine, not a virtual machine.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-11 10:00:38 -04:00
Ross Burton
b42bdbb7d6 arm/generic-arm64: move SERIAL_CONSOLES to generic-arm64
The consoles to use isn't specific to the qemu machine, and without a
value results in no serial consoles when running on real hardware under
sysvinit.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-11 10:00:38 -04:00
Jon Mason
bd0953cc60 arm-bsp/trusted-firmware-a: remove unneeded patches
Patches (and recipe support) were added for qemuarm64-secureboot
support, but that is not present in meta-arm-bsp.  Remove it.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-10 09:42:27 -05:00
Jon Mason
a4db5ee2cd arm/sbsa-acs: update to v7.1.2
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-10 09:42:27 -05:00
Javier Tia
f02d065dce optee-client: Add path condition to tee-supplicant.service
Without /dev/teepriv[0-9]*, tee-supplicant.service will fail. Prevent
a failure with a condition to check if /dev/teepriv[0-9]* path exists.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-08 13:00:40 -04:00
Mariam Elshakfy
a262d308e7 arm-bsp/n1sdp: Update edk2-firmware version for N1SDP to 202305
ARM Reference Solutions' N1SDP 2023.06.22 manifest
uses edk2-firmware version 202305. This patch
aligns with the manifest.
The RemoteDdrSize cast patch is now upstreamed,
hence removed from the patches list

Signed-off-by: Mariam Elshakfy <mariam.elshakfy@arm.com>
2023-09-05 22:02:41 -05:00
Delane Brandy
99a23c40ef arm-bsp/corstone1000: mmc2-enablement
Enables the support of a second mmc card, which enables distro installation.

Signed-off-by: Delane Brandy <delane.brandy@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-09-04 06:00:22 -04:00