aboutsummaryrefslogtreecommitdiffstats
path: root/meta-arm
AgeCommit message (Collapse)Author
2023-02-28arm-bsp/uefi_capsule: Move UEFI capsule to IMGDEPLOYDIRGowtham Suresh Kumar
The UEFI capsule generated is in the incorrect build directory. This patch copies it to IMGDEPLOYDIR. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-02-28arm-bsp/uefi_capsule: Use json file to pass capsule configGowtham Suresh Kumar
This patch uses the json config file for UEFI capsule generation as this is efficient and easily scalable to generate multiple capsules. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-02-28arm/edk2-basetools: Convert edk2 basetools recipes to native onlyGowtham Suresh Kumar
The BBCLASSEXTEND configuration can generate native sdk and target recipes as well. The cp command used in do_install will create host contamination issues for these recipes, so this patch makes the recipe native only. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-02-28arm-bsp/uefi_capsule: Add UEFI capsule generation classGowtham Suresh Kumar
This class currently supports only a single firmware binary. The required capsule parameters needs to be set, if not the build fails. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-02-28arm/edk2-basetools: Add edk2 base tool native recipeGowtham Suresh Kumar
The native recipe installs the UEFI capsule generation tool along with the other base tools to native sysroot. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-02-09arm/trusted-firmware-m: Do not use release branchesCORSTONE1000-2022.11.23Emekcan Aras
TFM repos do not use release branches. TFM-test repo does not use master branch and use detached head for the 1.6 release. This commits makes necessary changes to be able to build tfm and tfm-test again for langdale. Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-23classes: Set ARMLMD_LICENSE_FILE in the runfvp environmentPeter Hoyes
For models that require a license, ARMLMD_LICENSE_FILE is used to define the location of a license file or server. If the variable is not set in Bitbake it will not be set in the model environment. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-23classes: Prevent passing None to the runfvp environmentPeter Hoyes
FVP_ENV_PASSTHROUGH may contain variables that have not been set. d.getVar returns None in this case. Detect this and skip setting the variable in the model environment. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-23classes: Define FVP_ENV_PASSTHROUGH variable dependenciesPeter Hoyes
Define FVP_ENV_PASSTHROUGH's vardeps to equal itself, so that the fvpconf is regenerated if any of the defined variables change. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-23arm/lib: Add XAUTHORITY to runfvp environmentPeter Hoyes
aa89fe3f ensured environment variables necessary for GUI applications are passed through to the model despite runfvp env var restrictions. Add XAUTHORITY to this list. This is useful when doing X-forwarding with Kas, which creates its own home directory. Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-13arm/trusted-services: Fix 'no such file' when building libtsAdam Johnston
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-11arm/scp-firmware: Disable cppcheckPeter Hoyes
The SCP-firmware CMake compile step automatically attempts to execute cppcheck if both: * cppcheck can be located using find_program * DISABLE_CPPCHECK is not defined cppcheck is not readily available in OE-core and is not an essential part of the compilation process for end-users, so explicitly disable the cppcheck step by passing DISABLE_CPPCHECK to CMake. Additionally, because the OE-core CMake toolchain file cannot be used, find_program may locate cppcheck on the host machine, which will cause the build to fail if it is not the recommended version (as it is in recent Linux distros). Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ia87a0cbbb67ac1d6f3b26cfb5747a85b46131f81 Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-11arm/scp-firmware: Ensure CMAKE_BUILD_TYPE is capitalizedPeter Hoyes
If CMAKE_BUILD_TYPE=debug (lowercase), SCP-firmware builds with debug compiler flags but BUILD_MODE_DEBUG is not defined in C code so features that are conditionally enabled/disabled in debug mode are not active. Pass capitalized "Debug" and "Release" strings to CMAKE_BUILD_TYPE to ensure Debug mode is fully enabled when SCP_BUILD_RELEASE = "0". SCP_BUILD_RELEASE = "1" (the default) for all machines in meta-arm-bsp so they are unaffected. Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I93220420eedd2e3e6c169679efcaf4642dd5bc51 Signed-off-by: Jon Mason <jon.mason@arm.com>
2023-01-10arm/classes: Ensure patch files are sorted in apply_local_src_patchesPeter Hoyes
apply_local_src_patches.bbclass was added in a previous patch to handle the application of patch files located inside the fetched source code. find is used to collect the patch files which does not guarantee the order of its output. Pipe the output of find into sort to ensure patch files are applied in the correct order. Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I1082fb7a726a7745289a5aa8bb6447bef57a94b0 Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-12-16arm/fvpboot: Disable timing annotation by defaultPeter Hoyes
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-14arm/fvp-base-r-aem: upgrade to version 11.20.15Robbie Cao
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-01arm/fvp: Backport shlex.join from Python 3.8Peter Hoyes
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-11-28arm/trusted-firmware-m: Fix local source patches applicationDiego Sueiro
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-28arm/classes: Introduce apply_local_src_patches bbclassDiego Sueiro
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-23arm/oeqa: Log the FVP output in OEFVPSSHTargetPeter Hoyes
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-23arm/lib: Decouple console parsing from the FVPRunnerPeter Hoyes
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-23arm/lib: Factor out asyncio in FVPRunnerPeter Hoyes
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-23arm/fvp: Join cli arguments in verbose loggingPeter Hoyes
It is sometimes helpful to copy and paste the cli arguments from the verbose runfvp output (e.g. to test with a development FVP build), but currently the arguments are printed as a Python list. Use shlex.join(cli) to safely join the arguments together in form that can be reused directly in a shell. Issue-Id: SCM-5314 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ibb5c5ed45d02e241cb3858f68740fb9d4e89357a Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-23arm/fvp: Upgrade Corstone1000 FVPEmekcan
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-08arm,arm-bsp/recipes-kernel: don't use PN in arm-ffa-transport.incLuca Fancellu
There are some cases where PN is not expanded into linux-yocto in the arm-ffa-transport.inc file required from linux-yocto_%.bbappend, because of the := usage, in those cases PN gets "defaultpkgname". To fix the issue, rename "linux-yocto" folder into "files" and adjust ARMFILESPATHS to point to that in linux-yocto_%.bbappend, prepend ARMFILESPATHS to FILESEXTRAPATHS in arm-ffa-transport.inc. Remove ARMFILESPATHS prepend from FILESEXTRAPATHS for corstone1000 in meta-arm-bsp, because the platform has always the "arm-ffa" in MACHINE_FEATURES, which causes ARMFILESPATHS to be prepended. While there, remove the FILESEXTRAPATHS prepend of ARMFILESPATHS for the n1sdp that will be added by arm-ffa-transport.inc only when needed. Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-07arm/linux-arm64-ack: fix buildpaths in the perf Python moduleRoss Burton
Use --prefix instead of --root when installing the Python modules to ensure that build paths are not embedded in the compiled .pyc files. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-11-07arm/trusted-services: check before applying patchesRui Miguel Silva
At the apply ts patch stage, first check if they are patches to be applied. Because if not, this would break the apply patch stage with an error. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-24arm-bsp/corstone1000: apply ts patch to psa crypto api testRui Miguel Silva
Apply shared patch to trusted services that is used to compile psa crypto api tests to include change in packed-c request message in the eaed update structure to be in sync with the serialize/deserialize in TS side. As at it, move the other corstone1000 specific patch file to meta-arm-bsp where it should be. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-24arm/hafnium: add missing Upstream-StatusRoss Burton
Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-24arm/trusted-services: port crypto configRui Miguel Silva
Port crypto config to psa arch test api suite.This needs to move to arm-bsp since is corstone1000 specific configuration Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-19arm/fvp-tc0: remove Total Compute 2020 FVPRoss Burton
This FVP doesn't support TC1, so remove it now that we don't support TC0. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-17arm-bsp/trusted-services: support for libmetal and openampRui Miguel Silva
Add support for libmetal and openamp as backend for se-proxy and smm-gateway SP. For that also introduce a change to newlib in memcpy optimization to avoid unaligned data-aborts in __packed structures handling. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-14arm/lib: Do not log FVP return codes < 0Peter Hoyes
If a process is terminated using a signal, in Python its return code is -N, where N is the signal number (e.g. -15 for SIGTERM). Currently, all non-zero return codes are printed using logger.info, which gives the impression of an abnormal termination even when the process was explicitly terminated by FVPRunner. Instead, only log return codes greater than zero. Issue-Id: SCM-5314 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I1a1e9d8aa3f26c14b48be718498bcb14707950b7 Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-12arm/trusted-services: Remove remaining patches merged upstreamAnton Antonov
Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-11arm/trusted-services: Remove patches merged upstreamAnton Antonov
Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-06arm: update Android common kernelRupinderjit Singh
Update ACK to 5.15 and remove the 5.10 recipe Signed-off-by: Rupinderjit Singh <rupinderjit.singh@arm.com> Change-Id: I7d86367533248312bb7a54ba39166ddee5a025ef Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-04arm/optee-spdevkit: removeRoss Burton
The "secure parition development kit" is obsolete, newlib is used instead. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-04meta-arm/trusted-services: Use GCC toolchain for specific TS recipes only.Anton Antonov
This commit also enables clang CI pipelines for TS. Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-01arm/ffa-debugfs: drop use of the kernel moduleAbdellatif El Khlifi
ffa-debugfs kernel module is replaced with arm-ffa-user module Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2022-10-01arm/secure-partitions: drop use of the recipeAbdellatif El Khlifi
secure-partitions recipe is replaced with the new design of trusted services recipes. Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
2022-10-03arm/classes: Migrate TF-M image signing to bbclassPeter Hoyes
Introduce a new recipe for the TF-M signing scripts. To make the functionality easier to reuse, move the logic that is currently in trusted-firmware-m-sign-host-images.inc to tfm_sign_image.bbclass. This bbclass DEPENDS on trusted-firmware-m-scrpits-native. tfm_sign_image.bbclass can be inherited in image recipes to sign artifacts. Issue-Id: SCM-4964 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I74aaab5db1a43fedf13ea2564c2f31af207ae924 Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-10-03arm-bsp/trusted-firmware-m: Make branch names configurablePeter Hoyes
In order to support overriding the branch names in other layers, extract the branch name for each repository and set using default assignment. Issue-Id: SCM-4964 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I09d0c1f1d012c1abb84648ad974883bbdaa1db7a Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-30CI: Remove uniquely zephyr machinesJon Mason
Remove microbit-v1, qemu-cortex-a53, qemu-cortex-m3, and qemu-cortex-r5 from CI (and the tree in general). These machines are part of the meta-zephyr CI now and keeping them here is redundant. However, keeping zephyr builds for machines that also have TF-M. Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-29layers: convert to langdale compatibilityJon Mason
Now that langdale is available, convert all kirkstone references to it. Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-29runfvp: pass-through environment variables need for GUI applicationsRoss Burton
Since 820a55d3 the environment that the FVPs run in is limited, however this broke the use of GUI applications for the terminals. Passthrough DISPLAY and WAYLAND_DISPLAY automatically so these continue to work. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-28arm/fvp-base-r-aem: upgrade to version 11.19.14Jiacheng Tang
Update version in documentation. Issue-Id: SCM-5168 Signed-off-by: Jiacheng Tang <jiacheng.tang@arm.com> Change-Id: Iea0815fb7e99997f45f7882c47138f0f9dfac0ac Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-28hafnium: Exclude from world buildsKhem Raj
This does not build with clang from meta-clang and also does not build with gcc either Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-25arm-bsp/tc: remove hafnium clang patchJon Mason
The newly added clang patch does not apply cleanly to the tc version of hafnium. Since there are no plans to use clang on tc, remove it for this platform. Also, use devtool to clean-up the clang patch in question. Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-23hafnium: Add a fix for clang-15 errorsKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-09-22linux-yocto: Add bbappend for 5.19Khem Raj
Enable tee and arm-ffa driver on qemuarm/qemuarm64 by default Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Jon Mason <jon.mason@arm.com>