Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | # Define sources of Trusted Service and all external dependencies |
| 2 | |
| 3 | LICENSE = "Apache-2.0 & BSD-3-Clause & BSD-2-Clause & Zlib" |
| 4 | |
| 5 | SRC_URI = "git://git.trustedfirmware.org/TS/trusted-services.git;protocol=https;branch=integration;name=trusted-services;destsuffix=git/trusted-services \ |
| 6 | file://0004-correctly-find-headers-dir.patch \ |
| 7 | file://0005-setting-sysroot-for-libgcc-lookup.patch \ |
| 8 | file://0006-applying-lowercase-project-convention.patch \ |
| 9 | file://0009-PSA-CRYPTO-API-INCLUDE.patch \ |
| 10 | file://0010-change-libts-to-export-CMake-package.patch \ |
| 11 | file://0011-Adapt-deployments-to-libts-changes.patch \ |
| 12 | file://0017-Move-libsp-mocks-into-separate-component.patch \ |
| 13 | file://0018-Add-mock-for-libsp-sp_discovery.patch \ |
| 14 | file://0019-Add-mock-for-libsp-sp_memory_management.patch \ |
| 15 | file://0020-Add-mock-for-libsp-sp_messaging.patch \ |
| 16 | file://0021-Add-64-bit-direct-message-handling-to-libsp.patch \ |
| 17 | file://0022-Change-MM-communicate-RPC-protocol-of-call-endpoint.patch \ |
| 18 | file://0023-Change-MM-communicate-RPC-protocol-of-MM-caller.patch \ |
| 19 | file://0024-Deny-64-bit-FF-A-messages-in-FF-A-RPC-endpoint.patch \ |
| 20 | " |
| 21 | |
| 22 | #latest on 05.07.22. |
| 23 | SRCREV_trusted-services = "1b0c520279445fc4d85fc582eda5e5ff5f380c39" |
| 24 | LIC_FILES_CHKSUM = "file://${S}/license.rst;md5=ea160bac7f690a069c608516b17997f4" |
| 25 | |
| 26 | S = "${WORKDIR}/git/trusted-services" |
| 27 | PV ?= "0.0+git${SRCPV}" |
| 28 | |
| 29 | # DTC, tag "v1.6.1" |
| 30 | SRC_URI += "git://github.com/dgibson/dtc;name=dtc;protocol=https;branch=main;destsuffix=git/dtc" |
| 31 | SRCREV_dtc = "b6910bec11614980a21e46fbccc35934b671bd81" |
| 32 | LIC_FILES_CHKSUM += "file://../dtc/README.license;md5=a1eb22e37f09df5b5511b8a278992d0e" |
| 33 | |
| 34 | # MbedTLS, tag "mbedtls-3.1.0" |
| 35 | SRC_URI += "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;branch=master;destsuffix=git/mbedtls" |
| 36 | SRCREV_mbedtls = "d65aeb37349ad1a50e0f6c9b694d4b5290d60e49" |
| 37 | LIC_FILES_CHKSUM += "file://../mbedtls/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 38 | |
| 39 | # Nanopb, tag "nanopb-0.4.6" |
| 40 | SRC_URI += "git://github.com/nanopb/nanopb.git;name=nanopb;protocol=https;branch=master;destsuffix=git/nanopb" |
| 41 | SRCREV_nanopb = "afc499f9a410fc9bbf6c9c48cdd8d8b199d49eb4" |
| 42 | LIC_FILES_CHKSUM += "file://../nanopb/LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" |
| 43 | |
| 44 | # qcbor, tag "v1.0.0" |
| 45 | SRC_URI += "git://github.com/laurencelundblade/QCBOR.git;name=qcbor;protocol=https;branch=master;destsuffix=git/qcbor" |
| 46 | SRCREV_qcbor = "56b17bf9f74096774944bcac0829adcd887d391e" |
| 47 | LIC_FILES_CHKSUM += "file://../qcbor/README.md;md5=e8ff2e88a722cdc55eddd0bb9aeca002" |
| 48 | |
| 49 | # T_Cose |
| 50 | SRC_URI += "git://github.com/laurencelundblade/t_cose.git;name=tcose;protocol=https;branch=master;destsuffix=git/tcose" |
| 51 | SRCREV_tcose = "fc3a4b2c7196ff582e8242de8bd4a1bc4eec577f" |
| 52 | LIC_FILES_CHKSUM += "file://../tcose/LICENSE;md5=b2ebdbfb82602b97aa628f64cf4b65ad" |
| 53 | |
| 54 | # CppUTest, tag "v3.8" |
| 55 | SRC_URI += "git://github.com/cpputest/cpputest.git;name=cpputest;protocol=https;branch=master;destsuffix=git/cpputest" |
| 56 | SRCREV_cpputest = "e25097614e1c4856036366877a02346c4b36bb5b" |
| 57 | LIC_FILES_CHKSUM += "file://../cpputest/COPYING;md5=ce5d5f1fe02bcd1343ced64a06fd4177" |
| 58 | |
| 59 | # TS ships patches for external dependencies that needs to be applied |
| 60 | apply_ts_patches() { |
| 61 | for p in ${S}/external/qcbor/*.patch; do |
| 62 | patch -p1 -N -d ${WORKDIR}/git/qcbor < ${p} || true |
| 63 | done |
| 64 | for p in ${S}/external/t_cose/*.patch; do |
| 65 | patch -p1 -N -d ${WORKDIR}/git/tcose < ${p} || true |
| 66 | done |
| 67 | for p in ${S}/external/CppUTest/*.patch; do |
| 68 | patch -p1 -d ${WORKDIR}/git/cpputest < ${p} |
| 69 | done |
| 70 | } |
| 71 | do_patch[postfuncs] += "apply_ts_patches" |
| 72 | |
| 73 | # Paths to dependencies required by some TS SPs/tools |
| 74 | EXTRA_OECMAKE += "-DDTC_SOURCE_DIR=${WORKDIR}/git/dtc \ |
| 75 | -DCPPUTEST_SOURCE_DIR=${WORKDIR}/git/cpputest \ |
| 76 | -DNANOPB_SOURCE_DIR=${WORKDIR}/git/nanopb \ |
| 77 | -DT_COSE_SOURCE_DIR=${WORKDIR}/git/tcose \ |
| 78 | -DQCBOR_SOURCE_DIR=${WORKDIR}/git/qcbor \ |
| 79 | -DMBEDTLS_SOURCE_DIR=${WORKDIR}/git/mbedtls \ |
| 80 | " |