1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-08 05:09:56 +00:00
Commit Graph

1269 Commits

Author SHA1 Message Date
Ross Burton 0c0b88bc56 arm-bsp/secure-partitions: add missing Signed-off-by tags to patches
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 15:00:06 -05:00
Ross Burton 92ad824b70 arm-bsp/optee-os: clean up TC patches
Instead of patching a file we patched, integrate the changes directly
into the first patch.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 15:00:06 -05:00
Jon Mason 8601ba85f7 Revert "ci: ignore distutil warnings"
This reverts commit 63cb70be72.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 11:41:44 -05:00
Jon Mason 2766987583 ci: use matrix for yocto-check-layer
The check-layers task takes longer than any of the individual tests
running.  Split this up to take advantage of parallelism and speed up
the overall runs.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 11:40:28 -05:00
Ross Burton 2a27bd4f47 meta-arm-bsp: use old python3-crytography on platforms using TF-M
As the latest python3-crytography breaks TF-M builds, downgrade those
machines using TF-M (musca and corstone) to python3-crytography-native
3.3.2 temporarily.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 11:35:57 -05:00
Ross Burton a15c16068a meta-arm: add old version of python3-cryptography
meta-python has upgraded to python3-cryptography 36, which has a problem
when used in native recipes:

  cryptography.exceptions.InternalError: Unknown OpenSSL error

This causes all builds of TF-M to fail.

Until this error is fixed, add the old version of python3-cryptography.
A BBMASK is set so that it has to be explicitly opted-in, as it DEPENDS
on recipes from meta-python which isn't a hard dependency for meta-arm.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 11:35:57 -05:00
Ross Burton aaac054165 CI: update for changes to machine-summary
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Ross Burton c4b34740cf scripts/machine-summary: write per-machine reports with more details
Rename the updates.html format to just 'report'.

This report has the existing overview as the index.html, and then
per-machine files are written with the patch breakdown.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Ross Burton b1b0f37da7 scripts/machine-summary: put more version information into the context
As well as storing the truncated PV, also store the original PV and
whether the recipe needs updating, to avoid the templates needing to
do that logic.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Ross Burton 0d2d0fd691 scripts/machine-summary: refactor output to classes
To prepare for future expansion, refactor the output code to be delegated
to Format subclasses.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Ross Burton cb29175ab4 scripts/machine-summary: harvest more patch data
Instead of just putting whether there are patches or not into the
context, store the list of patches, the layer they came from, and the
upstream status.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Ross Burton 0235036957 scripts/layer-overview: improve layer detection
Refactor the script somewhat, and detect whether the starting directory
is a single layer, or a collection of layers.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-19 17:09:58 -05:00
Arunachalam Ganapathy 763764dd2a arm-bsp/hafnium: extend stage-1 mapping limit on TC
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: Ia6fb2cfd7812a63a003dc3ffbc84fb8d410d02c3
2022-01-19 14:00:10 -05:00
Davidson K 8734d14674 arm-bsp: tc: use proper UUID in optee and linux kernel
Recently the way of handling Secure Partitions UUID changed in TF-A
and that needs corresponding changes in required components.  Hence
changing them for optee and linux kernel.

Signed-off-by: Davidson K <davidson.kumaresan@arm.com>
2022-01-19 10:00:11 -05:00
Vishnu Banavath 522350ba73 arm-bsp/psa-arch-tests: change master to main for psa-arch-tests repo
master branch is renamed to main on psa-arch-tests github

Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Change-Id: I6bd49c68aa1a2358c976a3eb0adc5b2a9c5edb94
2022-01-18 13:29:32 -05:00
Jon Mason 74caf3d057 arm-bsp: create u-boot 2020.10 to resolve warning
Poky, etc master branches updated the u-boot recipes to use 2022.01,
causing bbappends for 2021.10 to no longer function.  Create a temporary
recipe for 2021.10 until all the BSPs can update to support the latest
version.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-18 13:00:12 -05:00
Anders Dellien daa8388dad arm: update Android common kernel and config
Move to newer tag of ACK as well as update to the latest gki_defconfig
using fragments to support TC.

Signed-off-by: Anders Dellien <anders.dellien@arm.com>
Change-Id: I71fe31730ce063e9604b8adc879e0a626b3320e7
2022-01-18 13:00:12 -05:00
Anders Dellien db56f59865 arm-toolchain: Support linux-arm64-ack build with Android Clang
This commit introduces a configuration variable, LINUX_ACK_TOOLCHAIN_CLANG,
that (if set) switches the kernel build to use the Android Clang compiler

Change-Id: Iab362916159bf6e8096061f1b7281a7513001d61
2022-01-18 13:00:12 -05:00
Usama Arif c4fb4f53cb arm-toolchain: Fetch prebuilt Android Clang, version r416183b
This Clang version is present in Android master
(as of October 8, 2021)

Signed-off-by: Usama Arif <usama.arif@arm.com>
Signed-off-by: Anders Dellien <anders.dellien@arm.com>
Change-Id: I957742ee943ef68119fd7c7e2bd8ee62b717b31c
2022-01-18 13:00:12 -05:00
Vishnu Banavath c1f1a040e7 arm-bsp/uboot: fix null pointer exception for get_image_info
This change is to fix NULL pointer exception for get_image_info
API for corstone1000 platform

Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
2022-01-17 15:59:43 -05:00
Vishnu Banavath edde4cbf68 arm-bsp/tf-m: fix capsule instability issue for corstone1000
This change is to upgrade TF-M to latest git hash which contains
fix for capsule instability issue for corstone1000 platform.

Latest TF-M would also require v3.1 mbedtls. Also updated git hash
for mbedtls repo.
2022-01-17 15:59:43 -05:00
Diego Sueiro a70e04d9f8 meta-arm: Make generic-arm64 kernel cfg based on linux-yocto standard kernel type
By having the generic-arm64 machine using the same kernel config as the
linux-yocto standard kernel type, application layers can rely on the same base
configuration, independently of the target machine.

Also, the kernel-yocto.bbclass searches for .scc files in the FILESEXTRAPATHS.
Hence, we don't need to list generic-arm64-standard.scc in the SRC_URI.

Issue-Id: SCM-3910
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Change-Id: I46889ce38b32521d8350534cc590b57b158ad573
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-17 10:12:00 -05:00
Ryan Fairfax 940b9afdde arm/optee-os: Fix build race condition when building fTPM
Change ftpm to install embeddable (stripped) version to sysroot.  When
building optee-os pick up from sysroot instead of DEPLOY_DIR_IMAGE.
This fixes a build race condition where DEPENDS was only waiting for
optee-ftpm:do_populate_sysroot instead of do_deploy.

Signed-off-by: Ryan Fairfax <rfairfax@microsoft.com>
2022-01-17 10:12:00 -05:00
Jon Mason 63cb70be72 ci: ignore distutil warnings
distutil warnings are causing CI to fail.  This is caused by changes
outside of meta-arm, and are not relevant for anything present in
meta-arm.  Temporarily ignore these until they can be handled upstream.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-17 11:56:47 +00:00
Peter Hoyes 3d38ee3e11 arm-bsp/fvp-baser-aemv8r64: Fix PL011 and SP805 register sizes
The Linux kernel expects the peripheral ID register to be just below the
end of the address range, which for the PL011 and SP805 is at 0xFE0 not
0xFFE0, so set the size to 0x1000.

Issue-Id: SCM-3881
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: Iada28e8192d72b1647822c33d13deffe507043b5
2022-01-14 14:46:04 -05:00
Ben Horgan 447b7059c9 arm-bsp/optee-os: total-compute: Exchange patches to fix managed-exit
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Change-Id: I1e47c7b87450258840c68e045194e07e66b35478
2022-01-14 14:46:04 -05:00
Jon Mason 30e50575f8 arm-bsp/fvp-baser-aemv8r64: Update to the 5.15 kernel
The Linux 5.14 kernel has been removed.  Update to the latest kernel.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-14 10:00:09 -05:00
Ross Burton a834653374 arm/opencsd: upgrade to 1.2.0
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-11 14:03:08 -05:00
Ross Burton 44ea1e59a2 arm-bsp/juno: also build EDK2 firmware
So that all possible combinations are built, add edk2-firmware to the
default image dependencies too.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-11 14:02:53 -05:00
Ross Burton 24ef21c36b arm-bsp/edk2-firmware: enable building EDK2 for Juno
This doesn't build successfully with Clang, so for now the build forces
the use of GCC.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-11 14:02:53 -05:00
Ross Burton 0b1f4967b7 arm/edk2-firmware: explicitly set level of parallelisation
Explicitly set the level of parallelisation instead of letting build.sh
determine it.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-11 14:02:53 -05:00
Ross Burton 0d2a9f6640 arm/trusted-firmware-a: remove TF-A 2.5
Nothing is using TF-A 2.5 anymore, so remove the recipe.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-11 14:02:29 -05:00
Ben Horgan 48c1342f9a arm-bsp/optee-os-tadevkit: total-compute: Add optee-os-tadevkit
The optee-os recipe was recently split into optee-os and
optee-os-tadevkit.

Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Change-Id: Id9794b7c4a7e2f3fac4286498fa44c35fd8aaa0b
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-09 13:26:42 -05:00
Ross Burton 22b453f785 arm-toolchain: remove armcompiler-specific licenses
The Armcompiler-* licenses are specific to a single release of the
Arm Compiler, so remove them from the layer and use NO_GENERIC_LICENSE
to extract them from the source directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-06 08:59:22 -05:00
Ross Burton 07c7d2f948 arm-toolchain/armcompiler: upgrade to 6.17
Upgrade to the latest release, now based on Clang 14.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-06 08:59:22 -05:00
Vishnu Banavath 82909f95d8 arm-bsp/uboot: send bootcomplete event to secure enclave
On corstone1000 platform, Secure Enclave will be expecting
an event from uboot when it performs capsule update. Previously,
an event is sent at exitbootservice level. This will create a problem
when user wants to interrupt at UEFI shell, hence, it is required
to send an uboot efi initialized event at efi sub-system initialization
stage.

Change-Id: I7d16e184675d537d790365e1b03a414ac802694a
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-06 08:58:14 -05:00
Ross Burton b398c1bcdf arm-bsp/trusted-firmware-a: upgrade TC to 2.6
Upgrade TC's TF-A from a post-2.5 snapshot to the 2.6 release.

This means increasing the maximum size of BL31.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-05 08:50:04 -05:00
Ross Burton 8d53f4c3eb arm-bsp/trusted-firmware-a: use full option names in sgdisk call
The TC appends include a long sgdisk invocation which can be made a lot
clearer by using the full option names (e.g. --change-name) instead of
short (e.g. -c).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-05 08:50:04 -05:00
Vishnu Banavath bff6ce17b8 arm-bsp/secure-partitions: add check for null attribute field
UEFI spec says that if 0 is passed in the attributes filed in
setVariable() API, it means that it's a delete variable call.
Currently smm gateway doesn't handle this case. This change
is to add above mentioned check.

Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Change-Id: Id3a54601d403102da5c5617d7b4da8ec51029200
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-04 13:12:11 -05:00
Gowtham Suresh Kumar 274f82247d arm-bsp/u-boot: corstone1000: Disable mm_communicate failure log
When a getVariable() call is made with data size set to 0,
mm_communicate should return EFI_BUFFER_TOO_SMALL. This is
an expected behavior. There should not be any failure logs
in this case. So the error log is commented here.

Change-Id: Id5b36928b1450ef9f83d34a3ab7feb4839ff9734
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-04 13:11:55 -05:00
Ross Burton 82ef0cce84 arm/hafnium: add missing headers to native-dtc.patch
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-04 13:11:31 -05:00
Ross Burton 564abfcb9a CI: run pending-updates on x86
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-04 13:11:12 -05:00
Vishnu Banavath 8061ecf0cd arm-bsp/u-boot: fix EFI image load alignment
This patch is cherry-picked from upstream to fix misalignment
of efi load image

Change-Id: If64e635a80cd0b6ecb8f09c62aa2b248d0e36f4e
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
2021-12-23 19:02:42 +00:00
Ross Burton df0da2d486 CI: add patch status metrics
Embed an improved patchreview tool which can generate metrics.txt files,
and run that as part of the CI.  This means that every merge request
will include a section if the metrics change, so it is easy to spot if
patches with bad headers are added.

The changes to patchreview will merge into oe-core soon, so when that
happens we can drop the copy.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-12-23 10:57:54 +00:00
Vishnu Banavath ae753c34dc arm-bsp/u-boot: add ethernet device and enable configs for SCT
These changes are to add
* ethernet device SMC911x device and this is required to support
  bootfromnetwork SCT
* also enabled other config options to fix SCT issues

Change-Id: Ic6112c019cb08f77e29508ad47980f851f79088c
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
2021-12-22 09:00:12 -05:00
Gowtham Suresh Kumar 2680423fe2 arm-bsp/secure-partitions: Add error cases to setVariable() and getNextVariableName()
This patch fixes the SCT errors seen for setVariable() and
getNextVariableName() functions. The existing implementation of these
functions does not cover certain error conditions which are listed in
the uefi specification. This patch adds these changes.

Change-Id: Idcddc799588339de6729b73c0ceada5c2018dd4b
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
2021-12-21 14:00:14 -05:00
Gowtham Suresh Kumar 6b8a967eb0 arm-bsp/secure-partitions: corstone1000: Change UID of variable index in SMM
This patch fixes the os_indications setVariable() failure. The variable
index UID in SMM gateway which was 1 is changed in this patch. TFM has a
special usage for variable with UID 1, which makes it write once only.
This is not required for SMM variable index.

Change-Id: I50d60b87d3ef44ffd50e71ec4f20d31fdacf7acd
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
2021-12-21 14:00:14 -05:00
Ross Burton 31a5208383 runfvp: add basic documentation
Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-12-20 17:52:22 -05:00
Ross Burton 10e60cc8ef runfvp: refactor terminal selection
Rewrite the terminal code to have a priority list of terminals when
selecting a default, allow the user to pick a default with a
configuration file, and add gnome-terminal to the list.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-12-20 17:52:22 -05:00
Ross Burton 7780374500 runfvp: don't use f-string when there's no expressions
Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-12-20 17:52:22 -05:00