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

1220 Commits

Author SHA1 Message Date
Ross Burton bb2bda7186 arm/edk2-firmware: set EDK2_ARCH centrally
There is only a limited number of EDK2 architectures, so we can set
the architecture using overrides in the base recipe instead of every
machine customisation needing to set it explicitly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-12-01 16:04:10 -05:00
Ross Burton 5a8fafb796 arm-bsp/edk2-firmware: drop N1SDP patches
These patches have been merged into edk2-platforms bd53d309 onwards,
which is built with edk2-firmware 202111.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-12-01 16:04:10 -05:00
Ross Burton 58707a85bf arm/edk2-firmware: upgrade to 202111
Also update sbsa-acs to build against 202111.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-12-01 16:00:29 -05:00
Ross Burton c225b33f91 arm/edk2-firmware: set invalid platform names for better errors
Set the default platform name/descriptor to 'unset' so that build.sh fails
with obvious errors, instead of generic argument parsing failures.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-12-01 16:00:29 -05:00
Jon Mason a70500117a ci: QEMU_USE_KVM needs empty variable
QEMU_USE_KVM needs to be empty, not 0.  Otherwise, it doesn't catch and
runs KVM anyway (which breaks inside our docker containers).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-12-01 15:52:46 -05:00
Gowtham Suresh Kumar 28f6956415 arm-bsp/optee-os: corstone1000: enabling smm-gateway partition
This commit enables smm-gateway in optee-os by making the following changes:

- Updating the existing SP manifest file with a combined manifest file
  that includes information about both se-proxy and SMM gateway SP.
- Including the SMM gateway SP makefile in optee include file
  to embed smm gateway sp binary into optee image.

Change-Id: Iebcf2c534a9e9ced411c943ff583b522ad9d69fa
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-12-01 13:36:14 +00:00
Gowtham Suresh Kumar a70d0287e8 arm-bsp/secure-partitions: corstone1000: add smm-gateway partition
smm-gateway secure partition is a slim version of StMM for low memory
devices.

This commit adds support for smm-gateway for corstone1000 at the
secure partitions level by making the following changes:

- Configure TS_DEPLOYMENTS to include SMM Gateway SP, SMM gateway to use
  device region for shared buffer, and set the NV store macro.
- Updating secure partitions recipe to point to HEAD of integration
 branch to fetch stmm-gateway changes.

Change-Id: I56ff325cca250749448364e12ac06e3ea289fa29
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-12-01 13:36:14 +00:00
Abdellatif El Khlifi 4c04b58c41 arm-bsp/linux: setting the FFA_VERSION compatibility checks
This commit introduces a new kernel patch that aligns the FF-A
versions checks according to the FF-A specification v1.0.

Without this fix, the FF-A bus fails to initialize when the FF-A
framework is version 1.1 (comes with the latest TF-A).

The bus driver which is v1.0 rejects the framework v1.1 despite
the fact they are compatible according to the specification.

This kernel patch changes the logic of the version checking based on
the specification.

Change-Id: If9d7b6c0d5e24e73d4f42c6532cd56ff2d05fcec
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-30 11:03:29 -05:00
Abdellatif El Khlifi 12a05f0d20 arm-bsp/u-boot: corstone1000: adjust the environment and heap sizes
env size set to 64 KB
heap size 64 KB + 32 MB

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Change-Id: I913862e855afa8864e91e0a7c0707279b7cbd987
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-30 11:03:29 -05:00
Abdellatif El Khlifi 6e7b258b3d arm-bsp/u-boot: corstone1000: introducing EFI capsule update
This commit implements capsule update for Corstone-1000.

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Change-Id: I3031018eebb9aaae56c0823d24ee5c148857f2fa
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-30 11:03:29 -05:00
Abdellatif El Khlifi 40f3e0d10d arm-bsp/u-boot: corstone1000: introducing Arm FF-A and MM support
This commit provides these new generic u-boot features:

- The FF-A low-level driver implementing Arm Firmware Framework for Armv8-A (FF-A)
- MM communication using FF-A (compatible with StandaloneMM and smm-gateway)
- A new armffa command and a test module to test the FF-A helper functions to
  communicate with secure world.

It also enables FF-A and MM communication for the Corstone-1000 platform.

Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Change-Id: Ic71dcae2411aefae00557284c08be662bfe80b98
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-30 11:03:29 -05:00
Vishnu Banavath 2677e682d2 arm-bsp/optee-os: add a rule in optee-os Makefile for secure partitions
These changes are to add a rule in optee-os Makefile to include
secure partitions as part of optee-os image

Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Change-Id: I2f6f93ffca9a2332cbe9ffe4e9903b8ec524df51
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-30 11:03:29 -05:00
Ross Burton b6551e85a6 CI: disable use of KVM
oe-core c2a2d47 changed the default of QEMU_USE_KVM to 1, so qemu will
want to use KVM and will error if it can't.  Our CI runners don't have
KVM, so we need to disable this.

In the long term this should be more intelligent as some workers have
KVM and some don't, but this will get successful builds again.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-30 11:21:58 +00:00
Ross Burton 4862014474 CI: build optee-spdevkit for qemuarm64
To ensure that optee-spdevkit works in all configurations, but it in the
CI for qemuarm64 not just corstone1000.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:36:30 -05:00
Ross Burton 5536ce026d arm/optee-spdevkit: fix non-corstone1000 builds
This recipe was setting a default SRCREV which doesn't contain the
Secure Partition devkit, as this is only in the psa-development branch
on the trustedfirmware.org mirror which is set by the corstone1000
bbappend.

Use this branch/revision by default, and set the PV correctly: this
branch is currently based on optee-os 3.10 not 3.14.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:36:30 -05:00
Ross Burton d6a8931a55 arm-bsp/hafnium: update bbappend for 2.6
No need for this to be versioned as it complicates upgrades.

Remove the explicit post-2.5 SRCREV now that the recipe has upgraded to
2.6, and remove assignments which are already the default for
conciseness.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:35:18 -05:00
Ross Burton 4be5357cb5 arm/hafnium: enable qemuarm64
Hafnium can do a qemu/aarch64 build, so enable that for future testing
purposes.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:35:18 -05:00
Ross Burton dca6cc8434 arm/hafnium: upgrade to 2.6
hashbang.patch isn't needed anymore, and rebase the other patches.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:35:18 -05:00
Ross Burton 8c44d09406 arm/edk2-firmware: don't PROVIDE virtual/uefi-firmware
Interchangable firmware isn't really a workable concept, so there's no
real need to have a virtual name.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:34:34 -05:00
Ross Burton ae14735509 arm-bsp: use edk2-firmware instead of virtual/uefi-firmware
Firmware isn't arbitarily interchangable as by definition it is specific
to the platform, so use the real recipe name instead of a virtual name.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:34:34 -05:00
Ross Burton 498b350446 arm/sbsa-acs: upgrade to EDK2 202108
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:34:34 -05:00
Ross Burton 33d8df93e4 arm/edk2-firmware: upgrade to edk2-firmware 202108
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-29 10:34:34 -05:00
Ross Burton c55ff70355 CI: build optee-test in qemuarm64-secureboot
This recipe doesn't get built through dependencies, so add it explicitly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-26 15:00:24 +00:00
Ross Burton 20a02a7537 arm/optee-test: change DEPENDS to optee-os-tadevkit
Now that the TA devkit has been split out of optee-os, the build
dependencies of optee-test need to be updated too.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-26 15:00:24 +00:00
Ross Burton d3ea92806b arm/optee-test: use precise BSD license
Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-26 15:00:24 +00:00
Abdellatif El Khlifi b8552becc3 meta-arm-bsp/security: corstone1000: add trusted services support
These changes are to add support to build TrustedServices.
corstone1000 platfrom uses optee-sp option which will include
secure partitions into optee Image

Following changes are made to trusted-services code
* TS_PLATFORM should be set at the external build system level.
* fix EARLY_TA_PATHS environment variable
* se-proxy string and make it as child node

Change-Id: I58d76b5e25e7f285794c93dc92c1b93fdd77cfb9
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-11-24 23:16:40 +00:00
Abdellatif El Khlifi 9577a5a44e arm/secure-partitions: introducing the recipe
Adding secure-partitions recipe.

Change-Id: I4320fb7087157a7c0f9305ce1d8f8574d4500fd0
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-11-24 23:16:31 +00:00
Abdellatif El Khlifi f47ab03514 arm/optee-spdevkit: introducing the recipe
Adding optee-spdevkit recipe.

Change-Id: Ib31d7f0a9fa2f72b71c2057f2752b1c52be6f890
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-11-24 23:06:24 +00:00
Arpita S.K 74c90a0dca arm-bsp/u-boot: introducing corstone1000 MPS3 machine
Add support for corstone1000-mps3 machine which have a cortex-a35
aarch64, this will boot till u-boot prompt.

Change-Id: Ifdd81d35a5409cdd1563388a841885c14b748cad
Signed-off-by: Arpita S.K <Arpita.S.K@arm.com>
Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-11-24 23:06:03 +00:00
Arpita S.K fecc5e2db1 arm-bsp/machine: introducing corstone1000 MPS3 machine
This commit adds the corstone1000-mps3 machine.

Change-Id: I99f657574a693527d7763cb4cc9b0b05218bb316
Signed-off-by: Arpita S.K <Arpita.S.K@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2021-11-23 16:06:41 +00:00
Maxim Uvarov 1c871d3ffe machine/qemuarm64-secureboot.conf: add optee-ftpm
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-20 14:02:59 -05:00
Maxim Uvarov 29aa96b0d0 arm: add optee-ftpm recipe
Add software TPM emulated in the OPTEE-OS.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-20 14:02:45 -05:00
Maxim Uvarov 3210fe4e65 optee: update optee-os.inc to support external TAs
Separate recipe for TA devkit is needed to solve
circular dependency to build TAs with the devkit
 and integrate it inside optee-os.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-19 10:51:42 -05:00
Jon Mason 26f92c011e CI: use matrix for more defined way of doing things and cleanup
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-17 13:35:41 -05:00
Ross Burton 1229061f8b arm/boot-wrapper-aarch64: specify precise BSD license flavour
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-16 12:01:07 -05:00
Ross Burton 5cf722a312 gem5/gem5: specify precise BSD license flavour
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-16 12:01:07 -05:00
Ross Burton a9da0f3aab CI: remove utility tasks
These tasks made some limited sense when there was only one runner, but
in a setup where there are N runners they arere pretty useless as you
can't control which runner is executing the jobs.

Disk usage should be managed out-of-band, so delete the jobs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-15 15:27:39 +00:00
Ross Burton b09863db6e CI: disable use of Yocto sstate server
The public sstate server isn't up to the load just yet and often-enough
will take a very long time to respond, causing build failures.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2021-11-15 12:34:37 +00:00
Ross Burton 6bc7edfe83 arm-toolchain: upgrade gcc-arm-none-eabi (GNU-RM) to 10.3-2021.10
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-12 11:12:01 -05:00
Ross Burton 2098ffd84a Remove use of deprecated lnr command
lnr is deprecated and will be removed soon, so replace it with `ln -rs`

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-12 11:10:20 -05:00
Jon Mason c40fb5348b arm/qemuarm64-sbsa: replace with qemu-generic-arm64
Migrate the qemuarm64-sbsa machine to use the generic-arm64 machine as a
base.  This new qemu-generic-arm64 should contain only the parts
necessary to boot the generic-arm64 in qemu (using the SBSA machine).
This allows for a single generic image with testing for SBSA compliance.

NOTE: a unique WIC file is needed due to the inability to pass kernel
bootargs (due to needing DHCP for testimage).

Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 17:22:03 -05:00
Ross Burton 91233ff996 arm-bsp/trusted-firmware-m: remove INSANE_SKIP in corstone1000
The build is successful without this, so presumably it's obsolete.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 11:20:46 -05:00
Ross Burton 3d62efc282 arm-bsp/trusted-firmware-m: clean up corestone1000 do_install
No point checking that a directory exists before installing from it, as
it will fail immediately anyway if the files are not present.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 11:20:46 -05:00
Ross Burton 982c170391 arm-bsp/trusted-firmware-m: remove meaningless PACKAGECONFIGs
The corstone1000 customisations override the test-* PACKAGECONFIGs to
always disable the tests, even when they're enabled.

The proper way to do this is to not enable the tests in the first place,
and the tests are not enabled.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 11:20:46 -05:00
Ross Burton 3523e25699 arm-bsp/trusted-firmware-m: update corstone1000 customisations for 1.4.1 update
This BSP sets an intermediate SHA that is newer than the 1.4.1, but the
branch needs specifying now.

Also remove SRCREV_FORMAT, the PV doesn't include SRCPV so it isn't being used.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 11:20:46 -05:00
Ross Burton 164392f905 arm/trusted-firmware-m: upgrade to 1.4.1
Extract the TF-M branch name as a variable, as BSPs may wish to use
intermediate SHAs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 11:20:46 -05:00
Jon Mason edbc4d1f8f CI: remove unnecessary "+="
Seeing error of
WARNING: ZEPHYRTESTS:remove += is not a recommended operator combination, please replace it.

Correcting the issue by changing it accordingly.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-11 09:34:23 -05:00
Ross Burton 24b5a304de arm-bsp/fvp-base: track latest linux-yocto
We don't have any invasive kernel patches for the FVP machines anymore,
so remove the PREFERRED_VERSION and track the default version of
linux-yocto instead.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-10 23:39:46 -05:00
Ross Burton 4ccd87245d arm/python3-cbor: remove, cbor2 is used now
This recipe was used by trusted-firmware-m and python3-imgtool, both of
which now use python3-cbor2.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-10 23:39:46 -05:00
Ross Burton fdcf1f232a arm-bsp/python3-imgtool: remove, this is now in meta-python
A newer version of this recipe is now in meta-python[1]

[1] https://git.openembedded.org/meta-openembedded/commit/?id=94fc0589b50f43afd1a19303a40389652929bf38

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
2021-11-10 23:39:46 -05:00