diff options
| -rw-r--r-- | recipes-security/smw/keyctl-caam_git.bb (renamed from recipes-security/swm/keyctl-caam_git.bb) | 0 | ||||
| -rw-r--r-- | recipes-security/smw/smw_git.bb | 64 |
2 files changed, 64 insertions, 0 deletions
diff --git a/recipes-security/swm/keyctl-caam_git.bb b/recipes-security/smw/keyctl-caam_git.bb index 25a5f656a..25a5f656a 100644 --- a/recipes-security/swm/keyctl-caam_git.bb +++ b/recipes-security/smw/keyctl-caam_git.bb | |||
diff --git a/recipes-security/smw/smw_git.bb b/recipes-security/smw/smw_git.bb new file mode 100644 index 000000000..3f77ad06b --- /dev/null +++ b/recipes-security/smw/smw_git.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | # Copyright 2020-23 NXP | ||
| 2 | |||
| 3 | SUMMARY = "NXP i.MX Security Middleware Library" | ||
| 4 | DESCRIPTION = "NXP i.MX Security Middleware Library" | ||
| 5 | SECTION = "base" | ||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LICENSE = "Apache-2.0 & BSD-3-Clause & Zlib" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982 \ | ||
| 9 | file://../psa-arch-tests/LICENSE.md;md5=2a944942e1496af1886903d274dedb13" | ||
| 10 | |||
| 11 | DEPENDS = "json-c optee-os optee-client python3-cryptography-native" | ||
| 12 | DEPENDS:append:mx8qxp-nxp-bsp = " imx-seco-libs" | ||
| 13 | DEPENDS:append:mx8dx-nxp-bsp = " imx-seco-libs" | ||
| 14 | DEPENDS:append:mx8ulp-nxp-bsp = " imx-secure-enclave" | ||
| 15 | |||
| 16 | SRC_URI = "git://github.com/nxp-imx/imx-smw.git;protocol=https;branch=release/version_2.x;name=smw;destsuffix=git/smw \ | ||
| 17 | git://github.com/ARM-software/psa-arch-tests.git;protocol=https;branch=main;name=psa;destsuffix=git/psa-arch-tests \ | ||
| 18 | " | ||
| 19 | SRCREV_smw = "f0570b3e8cb5f68d54edc4f9dd7cb984f6f604ed" | ||
| 20 | SRCREV_psa = "463cb95ada820bc6f758d50066cf8c0ed5cc3a02" | ||
| 21 | SRCREV_FORMAT = "smw_psa" | ||
| 22 | S = "${WORKDIR}/git/smw" | ||
| 23 | |||
| 24 | inherit cmake python3native | ||
| 25 | |||
| 26 | CFLAGS[unexport] = "1" | ||
| 27 | CPPFLAGS[unexport] = "1" | ||
| 28 | AS[unexport] = "1" | ||
| 29 | LD[unexport] = "1" | ||
| 30 | |||
| 31 | # setting the linker options | ||
| 32 | TARGET_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" | ||
| 33 | |||
| 34 | OPTEE_OS_TA_EXPORT_DIR:aarch64 = "${STAGING_INCDIR}/optee/export-user_ta_arm64" | ||
| 35 | OPTEE_OS_TA_EXPORT_DIR:arm = "${STAGING_INCDIR}/optee/export-user_ta_arm32" | ||
| 36 | |||
| 37 | # Needs to sign OPTEE TAs | ||
| 38 | export OPENSSL_MODULES="${STAGING_LIBDIR_NATIVE}/ossl-modules" | ||
| 39 | |||
| 40 | EXTRA_OECMAKE = " \ | ||
| 41 | -DTA_DEV_KIT_ROOT=${OPTEE_OS_TA_EXPORT_DIR} \ | ||
| 42 | -DTEEC_ROOT=${STAGING_DIR_HOST} \ | ||
| 43 | -DJSONC_ROOT="${COMPONENTS_DIR}/${TARGET_ARCH}/json-c/usr" \ | ||
| 44 | -DPSA_ARCH_TESTS_SRC_PATH=../${PSA_ARCH_TESTS_SRC_PATH} \ | ||
| 45 | " | ||
| 46 | EXTRA_OECMAKE:append:mx8qxp-nxp-bsp = "-DSECO_ROOT=${STAGING_DIR_HOST}" | ||
| 47 | EXTRA_OECMAKE:append:mx8dx-nxp-bsp = "-DSECO_ROOT=${STAGING_DIR_HOST}" | ||
| 48 | EXTRA_OECMAKE:append:mx8ulp-nxp-bsp = "-DELE_ROOT=${STAGING_DIR_HOST}" | ||
| 49 | EXTRA_OECMAKE_IMX:mx93-nxp-bsp = "-DELE_ROOT=${STAGING_DIR_HOST}" | ||
| 50 | |||
| 51 | OECMAKE_TARGET_COMPILE += "build_tests" | ||
| 52 | OECMAKE_TARGET_INSTALL += "install_tests" | ||
| 53 | |||
| 54 | INSANE_SKIP_${PN}-tests = "textrel" | ||
| 55 | |||
| 56 | PACKAGES =+ "${PN}-tests" | ||
| 57 | |||
| 58 | FILES:${PN} += "${base_libdir}/optee_armtz/*" | ||
| 59 | |||
| 60 | FILES:${PN}-tests = "${bindir}/* ${datadir}/${BPN}/*" | ||
| 61 | |||
| 62 | RDEPENDS:${PN}-tests += "bash cmake" | ||
| 63 | |||
| 64 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
