aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security
AgeCommit message (Collapse)Author
2021-03-24optee-os: Remove unneeded dependency on python3-pycrptoOtavio Salvador
The python3-pycrpto is provided by python3-pycryptodomex, and in fact is not provided on OpenEmbedded anymore so it cannot be used. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2021-03-18optee-os: Cleanup build optionsTom Hochstein
- Move log level variables to EXTRA_OEMAKE to simplify overriding - Set LDFLAGS and CFLAGS globally, like normal - Set -C in EXTRA_OEMAKE - Drop do_compile after all of the above - Drop un-necessary override of B variable - Simplify creation of tee.bin link in DEPLOYDIR Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-03-17optee-imx: add compatibility with imx-boot-containerAndrey Zhizhikin
NXP version of OP-TEE is required to be packed in the boot container if optee feature is enabled in machine features. Add compatibility with imx-boot-container in order to pick up binaries produced by this package. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2021-03-16optee-imx: Upgrade to 3.10.0Tom Hochstein
Update all recipes to pull sources from imx_5.4.70_2.3.0 branch in NXP upstream and update SRCREV to match release tags. Update PREFERRED_VERSION of optee for mx8 to point to 3.10.0.imx. Following notes are additions to the version update of recipes: -------------------------- optee-client: - Drop CFLAGS patch as it is already applied upstream optee-os: - Drop gcc10 patch as it is already applied upstream - Add dependency on python3-pycryptodomex-native - Drop NOWERROR flag as package is reworked to disable warnings by default - Rework mkimage load address since tee-init_load_addr.txt is no longer created optee-test: - Drop python3 patch as it is already applied upstream - Remove unused patch files from layer - Add dependency on python3-pycryptodomex-native - Add sysroot to C and C++ flags Fixes #686, fixes #689. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-02-15optee-os_3.7.0.imx.bb: Fix platform flavor for imx8mq-evkCristinel Panfir
Due to machine renaming the PLATFORM_FLAVOR need to be updated according makefile. ... | core/arch/arm/plat-imx/conf.mk:211: *** Unsupported PLATFORM_FLAVOR "mx8mq-evk". Stop. ... Signed-off-by: Cristinel Panfir <cristinel.panfir@nxp.com>
2021-02-13optee-os: Fix the platform for imx8qm-mekTom Hochstein
After the machine name change, the default setting for PLATFORM_FLAVOR no longer works. ``` | core/arch/arm/plat-imx/conf.mk:211: *** Unsupported PLATFORM_FLAVOR "mx8qm-mek". Stop. ``` Set the correct name again manually with SOC override. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2021-01-21optee-os: Fix 6ULZ EVK override, drop 8 DXL Phantom overrideTom Hochstein
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2020-12-17optee-test-qoriq: DEPENDS python3-pycryptodomex-nativeTing Liu
Fix: | /usr/include/optee/export-user_ta/scripts/sign_encrypt.py", line 131, in main | from Cryptodome.Signature import pss | ModuleNotFoundError: No module named 'Cryptodome' Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16optee-os-qoriq: upgrade to 3.8.0Ting Liu
Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16optee-client-qoriq: upgrade to 3.8.0Ting Liu
Switch to use codes from https://github.com/OP-TEE/optee_client, tag: 3.8.0 Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16optee-test-qoriq: upgrade to 3.8.0Ting Liu
Switch to use codes from https://github.com/OP-TEE/optee_test, tag: 3.8.0 Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-15optee-test_3.7.0.imx: fix optee-test buildPeter Griffin
Currently nothing is built for optee-test which means do_install() fails copying xtest binary. Align the do_compile() with upstream meta-arm optee-test recipe. With this patch the build then completes OK. Fixes: a66dc98 Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-09-23optee-imx: upgrade to version 3.7.0Andrey Zhizhikin
Update all recipes to pull sources from imx_5.4.24_2.1.0 branch in NXP upstream and update SRCREV to match release tags. Update PREFERRED_VERSION of optee for mx8 to point to 3.7.0.imx. Following notes are additions to the version update of recipes: -------------------------- optee-os: - Refresh gcc10 patch to resolve the fuzz during apply - Drop python patch as it is already applied upstream - Add new machines to the list optee-client: - Update CFLAGS patch to match 3.7.0 version - Split ${B} from ${S}, this makes build more clear optee-test: - Remove do_compile task and substitute with OEMAKE Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
2020-09-09optee-os: backport to fix gcc10 compilation issueTing Liu
Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-06-23optee-client: refresh patch applied upstreamAndrey Zhizhikin
PR has been closed upstream with modifications to originally submitted patch. Later implementation implied more modification, which are not compatible with current version, therefore accepted patch has been backported to this fork. Refresh patch file with updated version from upstream. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-06-23optee-os: backport gcc10 compilation fix from upstreamAndrey Zhizhikin
Backport PR 3891 [1] from OP-TEE upstream repository. This PR solves GCC10 compilation issue when new compiler option `outline-atomics` is not implemented and causes the linker error. In addition, above upstream PR solves issue with 'cc-option` macro, which is necessary to be used to provide comptibility with GCC <10 to disable the `outline-atomics` option, since it is present only in GCC10. [1]: https://github.com/OP-TEE/optee_os/pull/3891 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-05-31optee-client: add patch to avoid CFLAGS overridesAndrey Zhizhikin
Base optee-client implementation uses immediate assignment of CFLAGS variable in it's build structure, which causes Yocto CFLAGS to be overridden and not properly propagated into the build system. Introduce a patch which uses append operator intead of immediate assignment to have both CFLAGS variables to be combined. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-05-31optee-client: fix build architecture for aarch64Andrey Zhizhikin
Overridden do_compile() task relies on an old DEFAULTTUNE set to identify if the build should target arm32 or arm64 architecture, and has a direct comparison to the generic tune. Since aarch64 tune for some derivatives has been switched to a more specialized types (cortexa53-crypto), this causes the check to fail and build defaults to arm32, which is not desired behavior. Define OPTEE_ARCH to a proper value based on machine overrides, drop the task override and use standard Yocto mechanisms to provide additional parameters to make. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-05-26optee-os: fix gcc10 build for imx forkAndrey Zhizhikin
OP-TEE OS component fails to build on gcc10 due to missing __getauxval function. This can be resolved via disabling of outline-atomics feature in gcc10. Backport upstream patch [1] with adaptions to optee-imx version. Original patch uses $(call cc-option,-mno-outline-atomics,) to disable outline-atomics which itself is broken and required 4 additional patches to be compatible with gcc and clang. This is resolved in the upstream PR [2], which is applicable to the latest upstream version. NXP fork contains old version of OP-TEE, and therefore would receive the update for Makefiles with new version. Since it is not required to make current NXP version compatible with old compiler versions on master branch - outline-atomics are disabled directly. [1]: https://github.com/OP-TEE/optee_os/pull/3891/commits/e07c2b062846df4385542f4e4fe08b40cf7d8191 [2]: https://github.com/OP-TEE/optee_os/pull/3891 Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-05-06optee-test-qoriq: add patch to use python3Ting Liu
python2 is EOL January 2020. This fixes build failure due to python2. Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-05-05optee-os: Replace /lib by ${nonarch_base_libdir} in do_installantznin
This fixes a do_package error when using `usrmerge` in `DISTRO_FEATURES`. In that case the bin files should have been installed in /usr/lib. Using ${nonarch_base_libdir} makes the location specific to distro settings. Signed-off-by: antznin <agodard@witekio.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Change-Id: I9d6c015975b093f74f29927a7e8bdfd87fd3dc09
2020-04-23optee-test_3.2.0.imx: fix TA_DEV_KIT_DIR is not correctly defined errorPeter Griffin
DEFAULTTUNE is no longer aarch64 which means optee-test build fails. Update to use the same mechanism as optee-os recipe for setting arch. Build now passes on imx8mq-evk and optee xtest suite passes +----------------------------------------------------- 16078 subtests of which 3 failed 74 test cases of which 3 failed 0 test case was skipped TEE test application done! Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-04-20optee-os-qoriq: add patch to use python3Ting Liu
python2 is EOL January 2020. This fixes build failure due to python2. Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-04-17optee-test_3.2.0.imx: add patch to use python3, backported from v3.8.0Peter Griffin
This avoids build errors such as optee-test/3.2.0.imx-r0/git/out/ta/crypt//mid_crt.c] Error 127 | /usr/bin/env: ‘python’: No such file or directory Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-04-16optee-imx: upgrade to lf-5.4.yAndrey Zhizhikin
Upgrade optee recipes to fetch sources from lf-5.4.y branch, this is aligned with new kernel release from NXP. optee-os and optee-client has build defines dropped, this is originated in NXP fork. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-02-11optee-test-qoriq: update to python3-pycrypto-native dependencyChunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2020-02-11optee-os-qoriq: update to python3-pycrypto-native dependencyChunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2020-02-03optee-test: update to python3-pycrypto-native dependencyPeter Griffin
As python2 packages are now dropped in oe-core. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-01-23optee[-imx]: update recipes to use python3Andrey Zhizhikin
Since Python2 is dropped in oe-core and classes are not available anymore, optee components should be updated to utilize python3. optee-os recipe received an additionl patch to re-target the Python version in the source tree to python3. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-01-14optee-test_3.2.0.imx: remove no longer required gcc fixesPeter Griffin
These are now present in the new op-tee fork version. Fixes: 020d818 Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-01-14optee-client_3.2.0.imx: remove 0001-libteec-refactor-_dprintf.patchPeter Griffin
This patch no longer applies as it is already included in the new optee-client tag. Fixes: 020d818 Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2020-01-08optee-imx: add (backported) patches for GCC 9 & muslAndré Draszik
See the individual patches - all patches are simply backports from optee upstream releases. Signed-off-by: André Draszik <andre.draszik@jci.com>
2020-01-08optee-[client,test]: upgrade to 4.19.35_1.1.0Andrey Zhizhikin
This upgrade is required to support new i.MX8M Nano SoC and is also aligned with all optee-imx components. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2020-01-08optee-os: update to 4.19.35_1.1.0 and introduce imx8mn configAndrey Zhizhikin
In order to support new i.MX8M Nano SoC, optee-os should be upgraded to use the imx_4.19.35_1.1.0 branch, which contains the support for new machine. In addition, introduce additional PLATFORM_FLAVOR for new imx8mnevk machine. Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
2019-11-26optee-os_3.2.0: change PLATFORM_FLAVOR for imx6ulz14x14evkClement Faure
The platform flavor 'mx6ulzevk' has been added to Optee-OS. Signed-off-by: Clement Faure <clement.faure@nxp.com>
2019-11-10optee-imx: Make it imx specificKhem Raj
Fails to build on qemu | core/arch/arm/plat-imx/conf.mk:112: *** Unsupported PLATFORM_FLAVOR "emuarm". Stop. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-08optee-client: Add support for optee-client imx forkPeter Griffin
This also includes some backported gcc 8 fixes from upstream. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2019-11-08optee-test: add optee-test imx forkPeter Griffin
This also includes some backported gcc 8 fixes from upstream. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2019-11-08optee-os: add optee-os imx forkPeter Griffin
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
2019-10-21optee-os-qoriq: update to 4e8d2e5Chunrong Guo
*update to lsdk 1909 tag include the following changes: 4e8d2e5 - Merge pull request #19 in DASH/optee_os from ~NXA19713/optee_os:master to master 94bd7cc - Copyright header update. 9c09a28 - Merge pull request #18 in DASH/optee_os from ~NXA19713/optee_os:master to master 587183a - plat-ls:add LS1028ARDB platform Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-09-04optee-os-qoriq: Fix alignment of data for mempool_alloc_pool()Chunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-07-12optee-test-qoriq: fix build failure with GCC9Chunrong Guo
*fix the below error: |error: '%*s' directive argument is not a nul-terminated string [-Werror=format-overflow=] Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-07-12optee-os-qoriq: add OPTEEMACHINE for ls1088ardb-pb and ls1046afrwyChunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-04-11optee-test-qoriq:update to 6690584Chunrong Guo
*update to lsdk 1903 tag include the following changes: 6690584 - cmake: locate files WRT to project home directory f6f68a2 - regression 6000: fix uninitialized local variables 0cf4cfe - regression 4100: fix uninitialized local variable 481c660 - regression 4000: fix uninitialized local variable a410edb - xtest --aes-perf: add -u option to process buffer in several steps 5401161 - improve xtest summary message a8c8f87 - regression: split 4007 into key types 0953bf0 - regression 4011: correct potential overflow 493574a - xtest: prevent unexpected build warning with strncpy 7dbf877 - regression: 6010: add rename conflict case (with close) Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-04-11optee-os-qoriq:update to b7a1527Chunrong Guo
*update to lsdk 1903 tag include the following changes: b7a1527 - Merge pull request #15 in DASH/optee_os from ~NXA18717/optee_os:master to master 6fac599 - plat-ls: Corrected GIC configuration for GIVv3 SoCs b3f7be2 - plat-ls: Corrected GIC configuration for ls1043ardb. a0bfef6 - plat-ls: updated conf.mk to set CFG_USER_TA_TARGETS 406c609 - Update CHANGELOG.md for 3.4.0 86b8b34 - core: arm32: fix gicv3 fiq race 41b2940 - core: syscall_storage_obj_create(): fix a memory leak 4198578 - plat-vexpress: disable uart IT with TF-A and GICv3 84e9c40 - core: svc_cryp: fix truncated buffer length d5c5b0b - core: svc: always check ta parameters c6edc12 - core: entry_std: check value of num_params c4f75cc - core: optee_msg.h: define OPTEE_MSG_MAX_NUM_PARAMS 95f36d6 - core: tee_mmu_check_access_rights() check all pages 359324a - svc: Initialize tmp_va_buf to prevent a TOCTOU attack e3adcf5 - core: ensure that supplied range matches MOBJ 99e8a8c - svc: fix NULL pointer dereference during storage enumeration ea8357c - svc: check for overflow when allocating a BigNum buffer 54ebc3a - svc: avoid TOCTOU issue in syscall_hash_final 70697bf - svc: check for allocation overflow in crypto calls part 2 a637243 - svc: check for allocation overflow in crypto calls b60e1ce - svc: check for allocation overflow in syscall_cryp_obj_populate Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-04-11optee-client-qoriq:update to 0842873Chunrong Guo
*update to lsdk 1903 tag include the following changes: 0842873 - flags: add -D_FILE_OFFSET_BITS=64 to support large files 28eea17 - libteec: Makefile: Generate .so files the same way as CMake 656e427 - tee_supplicant: gprof: fix compile error c48bc3b - tee-supplicant: cmake: enable RPMB emulation by default b6bfce9 - Makefile and config.mk: remove export in config.mk 66cdd5d - tee-supplicant: add daemon mode (-d) 5355fdb - Do not set -Werror by default 9c5e24c - tee-supplicant: rpmb.c: add __attribute__((fallthrough)) 0361f9b - libteec: refactor _dprintf() 8742233 - benchmark: fix computation of page address bd0e7c8 - Android related files: changes to work with Treble enabled build 9a63135 - Android.mk & config.mk: move teec.log/teesupp.log under /data/tee 6b4ca04 - benchmark: fix compilation issues 2d542f2 - Do not export CMakeLists.txt when running install 0fc28f2 - libteec: Fix incorrect SOVERSION number 3f16662 - tee-supplicant: cast sizeof(x) to socklen_t 23b22b1 - tee-supplicant: fix gcc warning e0a12e2 - cmake: Initial CMake support 33fa3c1 - tee-supplicant: fix use of mem after it's freed 09b69af - libteec/tee-supplicant: respect LDFLAGS set from distribution toolchain 9681680 - libteec/Makefile: generate static library (libteec.a) 73b4e49 - tee-supplicant: REE fs open file with O_SYNC flag 075c56e - tee_supplicant: add register memory feature *remove patch Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-01-14optee-test-qoriq: set COMPATIBLE_MACHINE as qoriq-arm64Chunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-01-14optee-os-qoriq: update to e93f053Chunrong Guo
*update to lsdk 1812 tag include the following changes e93f053 - Merge pull request #12 in DASH/optee_os from ~NXA18717/optee_os:optee_3.2.0 to optee_3.2.0 40670fe - plat-ls:add LX2160ARDB platform flavors c4ca171 - Updating MAINTAINERS for NXP LS-RDB Platforms *support ls1012afrwy 512mb and ls1012afrwy 1G Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2018-10-26optee-os-qoriq: support qoriq-arm64Chunrong Guo
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-01optee-client-qoriq: update to ab3c79cChunrong Guo
*update to lsdk 1809 tag include the following changes: ab3c79c - Merge pull request #1 in DASH/optee_client from ~NXA19713/optee_client:master to optee_client_3.2 d56bb17 - Do not export CMakeLists.txt when running install ffd0a1d - libteec: Fix incorrect SOVERSION number 09b8071 - tee-supplicant: cast sizeof(x) to socklen_t b46a1e0 - tee-supplicant: fix gcc warning c3ae0db - cmake: Initial CMake support e23a20d - tee-supplicant: fix use of mem after it's freed 42c81ab - libteec/tee-supplicant: respect LDFLAGS set from distribution toolchain afb7317 - libteec/Makefile: generate static library (libteec.a) *refresh patches Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>