diff options
Diffstat (limited to 'recipes-security')
| -rw-r--r-- | recipes-security/optee-imx/optee-client-fslc.inc | 10 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-fslc.inc | 2 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-os-common-fslc-imx.inc | 42 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-os-fslc.inc | 9 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc | 2 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-test-fslc-imx.inc | 2 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-test-fslc.inc | 12 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-test_4.8.0.imx.bb | 1 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-os-qoriq-tadevkit_4.8.0.bb | 2 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-os-qoriq_4.8.0.bb | 16 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-os.nxp.inc | 6 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-test.nxp.inc | 2 | ||||
| -rw-r--r-- | recipes-security/smw/crypto-af-alg_git.bb | 3 | ||||
| -rw-r--r-- | recipes-security/smw/itest_git.bb | 21 | ||||
| -rw-r--r-- | recipes-security/smw/keyctl-caam_git.bb | 7 | ||||
| -rw-r--r-- | recipes-security/smw/smw_5.3.bb | 23 |
16 files changed, 81 insertions, 79 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc index ab7c8bc69..61629209d 100644 --- a/recipes-security/optee-imx/optee-client-fslc.inc +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
| @@ -10,14 +10,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | |||
| 10 | 10 | ||
| 11 | inherit systemd update-rc.d cmake useradd | 11 | inherit systemd update-rc.d cmake useradd |
| 12 | 12 | ||
| 13 | SRC_URI = " \ | 13 | SRC_URI = "\ |
| 14 | git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \ | 14 | git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \ |
| 15 | file://tee-supplicant.sh \ | 15 | file://tee-supplicant.sh \ |
| 16 | " | 16 | " |
| 17 | 17 | ||
| 18 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" | 18 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" |
| 19 | 19 | ||
| 20 | EXTRA_OECMAKE = " \ | 20 | EXTRA_OECMAKE = "\ |
| 21 | -DBUILD_SHARED_LIBS=ON \ | 21 | -DBUILD_SHARED_LIBS=ON \ |
| 22 | -DCFG_USE_PKGCONFIG=ON \ | 22 | -DCFG_USE_PKGCONFIG=ON \ |
| 23 | " | 23 | " |
| @@ -25,9 +25,9 @@ EXTRA_OECMAKE = " \ | |||
| 25 | # libts uses /dev/tee devices too. Add a common variable to allow configuring the same group. | 25 | # libts uses /dev/tee devices too. Add a common variable to allow configuring the same group. |
| 26 | TEE_GROUP_NAME ?= "tee" | 26 | TEE_GROUP_NAME ?= "tee" |
| 27 | 27 | ||
| 28 | EXTRA_OECMAKE += " -DCFG_ENABLE_SYSTEMD=On -DSYSTEMD_UNIT_DIR=${systemd_system_unitdir}/" | 28 | EXTRA_OECMAKE += "-DCFG_ENABLE_SYSTEMD=On -DSYSTEMD_UNIT_DIR=${systemd_system_unitdir}/" |
| 29 | EXTRA_OECMAKE += " -DCFG_ENABLE_UDEV=On -DUDEV_UDEV_DIR=${nonarch_base_libdir}/udev/rules.d/" | 29 | EXTRA_OECMAKE += "-DCFG_ENABLE_UDEV=On -DUDEV_UDEV_DIR=${nonarch_base_libdir}/udev/rules.d/" |
| 30 | EXTRA_OECMAKE += " -DCFG_TEE_GROUP=${TEE_GROUP_NAME} -DCFG_TEEPRIV_GROUP=teepriv" | 30 | EXTRA_OECMAKE += "-DCFG_TEE_GROUP=${TEE_GROUP_NAME} -DCFG_TEEPRIV_GROUP=teepriv" |
| 31 | 31 | ||
| 32 | EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0" | 32 | EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0" |
| 33 | 33 | ||
diff --git a/recipes-security/optee-imx/optee-fslc.inc b/recipes-security/optee-imx/optee-fslc.inc index dadbfa802..906001d24 100644 --- a/recipes-security/optee-imx/optee-fslc.inc +++ b/recipes-security/optee-imx/optee-fslc.inc | |||
| @@ -28,7 +28,7 @@ EXTRA_OEMAKE += "V=1 \ | |||
| 28 | COMPILER=${TOOLCHAIN} \ | 28 | COMPILER=${TOOLCHAIN} \ |
| 29 | OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${prefix} \ | 29 | OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${prefix} \ |
| 30 | TEEC_EXPORT=${STAGING_DIR_HOST}${prefix} \ | 30 | TEEC_EXPORT=${STAGING_DIR_HOST}${prefix} \ |
| 31 | " | 31 | " |
| 32 | # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the | 32 | # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the |
| 33 | # right path until this is relocated automatically. | 33 | # right path until this is relocated automatically. |
| 34 | export OPENSSL_MODULES = "${STAGING_LIBDIR_NATIVE}/ossl-modules" | 34 | export OPENSSL_MODULES = "${STAGING_LIBDIR_NATIVE}/ossl-modules" |
diff --git a/recipes-security/optee-imx/optee-os-common-fslc-imx.inc b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc index 16ed8cea7..ed11d0ca6 100644 --- a/recipes-security/optee-imx/optee-os-common-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-whinlatter/imx-6.18.2-1.0.0.xml#L39 | 2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-whinlatter/imx-6.18.2-1.0.0.xml#L39 |
| 3 | require optee-os-fslc.inc | 3 | require optee-os-fslc.inc |
| 4 | 4 | ||
| 5 | DEPENDS:append:arm = "u-boot-mkimage-native" | 5 | DEPENDS:append:arm = " u-boot-mkimage-native" |
| 6 | 6 | ||
| 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os:" | 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os:" |
| 8 | 8 | ||
| @@ -18,26 +18,26 @@ inherit features_check | |||
| 18 | 18 | ||
| 19 | REQUIRED_MACHINE_FEATURES = "optee" | 19 | REQUIRED_MACHINE_FEATURES = "optee" |
| 20 | 20 | ||
| 21 | OPTEEMACHINE = "imx-${@d.getVar('MACHINE')[1:]}" | 21 | OPTEEMACHINE = "imx-${@d.getVar('MACHINE')[1:]}" |
| 22 | OPTEEMACHINE:imx6qpdlsolox = "imx-mx6qsabresd" | 22 | OPTEEMACHINE:imx6qpdlsolox = "imx-mx6qsabresd" |
| 23 | OPTEEMACHINE:mx6ul-nxp-bsp = "imx-mx6ulevk" | 23 | OPTEEMACHINE:mx6ul-nxp-bsp = "imx-mx6ulevk" |
| 24 | OPTEEMACHINE:mx6ull-nxp-bsp = "imx-mx6ullevk" | 24 | OPTEEMACHINE:mx6ull-nxp-bsp = "imx-mx6ullevk" |
| 25 | OPTEEMACHINE:mx6ulz-nxp-bsp = "imx-mx6ulzevk" | 25 | OPTEEMACHINE:mx6ulz-nxp-bsp = "imx-mx6ulzevk" |
| 26 | OPTEEMACHINE:mx8mq-nxp-bsp = "imx-mx8mqevk" | 26 | OPTEEMACHINE:mx8mq-nxp-bsp = "imx-mx8mqevk" |
| 27 | OPTEEMACHINE:mx8mm-nxp-bsp = "imx-mx8mmevk" | 27 | OPTEEMACHINE:mx8mm-nxp-bsp = "imx-mx8mmevk" |
| 28 | OPTEEMACHINE:mx8mn-nxp-bsp = "imx-mx8mnevk" | 28 | OPTEEMACHINE:mx8mn-nxp-bsp = "imx-mx8mnevk" |
| 29 | OPTEEMACHINE:mx8mp-nxp-bsp = "imx-mx8mpevk" | 29 | OPTEEMACHINE:mx8mp-nxp-bsp = "imx-mx8mpevk" |
| 30 | OPTEEMACHINE:mx8mpul-nxp-bsp = "imx-mx8mpevk" | 30 | OPTEEMACHINE:mx8mpul-nxp-bsp = "imx-mx8mpevk" |
| 31 | OPTEEMACHINE:mx8qm-nxp-bsp = "imx-mx8qmmek" | 31 | OPTEEMACHINE:mx8qm-nxp-bsp = "imx-mx8qmmek" |
| 32 | OPTEEMACHINE:mx8qxp-nxp-bsp = "imx-mx8qxpmek" | 32 | OPTEEMACHINE:mx8qxp-nxp-bsp = "imx-mx8qxpmek" |
| 33 | OPTEEMACHINE:mx8dx-nxp-bsp = "imx-mx8dxmek" | 33 | OPTEEMACHINE:mx8dx-nxp-bsp = "imx-mx8dxmek" |
| 34 | OPTEEMACHINE:mx8dxl-nxp-bsp = "imx-mx8dxlevk" | 34 | OPTEEMACHINE:mx8dxl-nxp-bsp = "imx-mx8dxlevk" |
| 35 | OPTEEMACHINE:mx8mnul-nxp-bsp = "imx-mx8mnevk" | 35 | OPTEEMACHINE:mx8mnul-nxp-bsp = "imx-mx8mnevk" |
| 36 | OPTEEMACHINE:mx8ulp-nxp-bsp = "imx-mx8ulpevk" | 36 | OPTEEMACHINE:mx8ulp-nxp-bsp = "imx-mx8ulpevk" |
| 37 | OPTEEMACHINE:mx91-nxp-bsp = "imx-mx91evk" | 37 | OPTEEMACHINE:mx91-nxp-bsp = "imx-mx91evk" |
| 38 | OPTEEMACHINE:mx93-nxp-bsp = "imx-mx93evk" | 38 | OPTEEMACHINE:mx93-nxp-bsp = "imx-mx93evk" |
| 39 | OPTEEMACHINE:mx943-nxp-bsp = "imx-mx943evk" | 39 | OPTEEMACHINE:mx943-nxp-bsp = "imx-mx943evk" |
| 40 | OPTEEMACHINE:mx95-nxp-bsp = "imx-mx95evk" | 40 | OPTEEMACHINE:mx95-nxp-bsp = "imx-mx95evk" |
| 41 | 41 | ||
| 42 | # Strip the leading imx- | 42 | # Strip the leading imx- |
| 43 | PLATFORM_FLAVOR = "${@d.getVar('OPTEEMACHINE')[4:]}" | 43 | PLATFORM_FLAVOR = "${@d.getVar('OPTEEMACHINE')[4:]}" |
diff --git a/recipes-security/optee-imx/optee-os-fslc.inc b/recipes-security/optee-imx/optee-os-fslc.inc index febdd2c73..b36810c60 100644 --- a/recipes-security/optee-imx/optee-os-fslc.inc +++ b/recipes-security/optee-imx/optee-os-fslc.inc | |||
| @@ -13,7 +13,7 @@ require optee-fslc.inc | |||
| 13 | 13 | ||
| 14 | CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os" | 14 | CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os" |
| 15 | 15 | ||
| 16 | DEPENDS = "python3-pyelftools-native python3-cryptography-native" | 16 | DEPENDS = "python3-cryptography-native python3-pyelftools-native" |
| 17 | 17 | ||
| 18 | DEPENDS:append:toolchain-clang = " lld-native compiler-rt" | 18 | DEPENDS:append:toolchain-clang = " lld-native compiler-rt" |
| 19 | 19 | ||
| @@ -21,7 +21,7 @@ SRC_URI = "git://github.com/OP-TEE/optee_os.git;branch=master;protocol=https" | |||
| 21 | 21 | ||
| 22 | B = "${WORKDIR}/build" | 22 | B = "${WORKDIR}/build" |
| 23 | 23 | ||
| 24 | EXTRA_OEMAKE += " \ | 24 | EXTRA_OEMAKE += "\ |
| 25 | PLATFORM=${OPTEEMACHINE} \ | 25 | PLATFORM=${OPTEEMACHINE} \ |
| 26 | CFG_${OPTEE_CORE}_core=y \ | 26 | CFG_${OPTEE_CORE}_core=y \ |
| 27 | CROSS_COMPILE_core=${HOST_PREFIX} \ | 27 | CROSS_COMPILE_core=${HOST_PREFIX} \ |
| @@ -30,8 +30,8 @@ EXTRA_OEMAKE += " \ | |||
| 30 | ta-targets=ta_${OPTEE_ARCH} \ | 30 | ta-targets=ta_${OPTEE_ARCH} \ |
| 31 | O=${B} \ | 31 | O=${B} \ |
| 32 | " | 32 | " |
| 33 | EXTRA_OEMAKE += " HOST_PREFIX=${HOST_PREFIX}" | 33 | EXTRA_OEMAKE += "HOST_PREFIX=${HOST_PREFIX}" |
| 34 | EXTRA_OEMAKE += " CROSS_COMPILE64=${HOST_PREFIX}" | 34 | EXTRA_OEMAKE += "CROSS_COMPILE64=${HOST_PREFIX}" |
| 35 | 35 | ||
| 36 | # Enable BTI in optee | 36 | # Enable BTI in optee |
| 37 | EXTRA_OEMAKE += "${@bb.utils.contains('MACHINE_FEATURES', 'arm-branch-protection', ' CFG_TA_BTI=1 CFG_CORE_PAUTH=y CFG_TA_PAUTH=y', '', d)}" | 37 | EXTRA_OEMAKE += "${@bb.utils.contains('MACHINE_FEATURES', 'arm-branch-protection', ' CFG_TA_BTI=1 CFG_CORE_PAUTH=y CFG_TA_PAUTH=y', '', d)}" |
| @@ -74,7 +74,6 @@ PACKAGES += "${PN}-ta" | |||
| 74 | FILES:${PN} = "${nonarch_base_libdir}/firmware/" | 74 | FILES:${PN} = "${nonarch_base_libdir}/firmware/" |
| 75 | FILES:${PN}-ta = "${nonarch_base_libdir}/optee_armtz/*" | 75 | FILES:${PN}-ta = "${nonarch_base_libdir}/optee_armtz/*" |
| 76 | 76 | ||
| 77 | |||
| 78 | # note: "textrel" is not triggered on all archs | 77 | # note: "textrel" is not triggered on all archs |
| 79 | INSANE_SKIP:${PN} = "textrel" | 78 | INSANE_SKIP:${PN} = "textrel" |
| 80 | INSANE_SKIP:${PN}-dev = "staticdev" | 79 | INSANE_SKIP:${PN}-dev = "staticdev" |
diff --git a/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc b/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc index 68918414c..0fac7771f 100644 --- a/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-os-tadevkit-fslc-imx.inc | |||
| @@ -18,7 +18,7 @@ do_install() { | |||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | do_deploy() { | 20 | do_deploy() { |
| 21 | echo "Do not inherit do_deploy from optee-os." | 21 | echo "Do not inherit do_deploy from optee-os." |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | FILES:${PN} = "${includedir}/optee/" | 24 | FILES:${PN} = "${includedir}/optee/" |
diff --git a/recipes-security/optee-imx/optee-test-fslc-imx.inc b/recipes-security/optee-imx/optee-test-fslc-imx.inc index b7d3a34e6..23e22bc9f 100644 --- a/recipes-security/optee-imx/optee-test-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-test-fslc-imx.inc | |||
| @@ -17,6 +17,6 @@ OPTEE_TEST_SRC ?= "git://github.com/nxp-imx/imx-optee-test.git;protocol=https" | |||
| 17 | 17 | ||
| 18 | EXTRA_OEMAKE:append:libc-musl = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}" | 18 | EXTRA_OEMAKE:append:libc-musl = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}" |
| 19 | CFLAGS:append:libc-musl = " -Wno-error=deprecated-declarations" | 19 | CFLAGS:append:libc-musl = " -Wno-error=deprecated-declarations" |
| 20 | CFLAGS += " -Wno-error=unterminated-string-initialization" | 20 | CFLAGS += "-Wno-error=unterminated-string-initialization" |
| 21 | 21 | ||
| 22 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 22 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
diff --git a/recipes-security/optee-imx/optee-test-fslc.inc b/recipes-security/optee-imx/optee-test-fslc.inc index a5183b7e1..66683b613 100644 --- a/recipes-security/optee-imx/optee-test-fslc.inc +++ b/recipes-security/optee-imx/optee-test-fslc.inc | |||
| @@ -11,12 +11,12 @@ inherit python3native ptest | |||
| 11 | inherit deploy | 11 | inherit deploy |
| 12 | require optee-fslc.inc | 12 | require optee-fslc.inc |
| 13 | 13 | ||
| 14 | DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native openssl" | 14 | DEPENDS = "openssl optee-client optee-os-tadevkit python3-cryptography-native" |
| 15 | DEPENDS:append:toolchain-clang = " lld-native" | 15 | DEPENDS:append:toolchain-clang = " lld-native" |
| 16 | 16 | ||
| 17 | SRC_URI = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https \ | 17 | SRC_URI = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https \ |
| 18 | file://run-ptest \ | 18 | file://run-ptest \ |
| 19 | " | 19 | " |
| 20 | 20 | ||
| 21 | B = "${WORKDIR}/build" | 21 | B = "${WORKDIR}/build" |
| 22 | 22 | ||
| @@ -25,7 +25,7 @@ EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ | |||
| 25 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ | 25 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ |
| 26 | CROSS_COMPILE_TA=${HOST_PREFIX} \ | 26 | CROSS_COMPILE_TA=${HOST_PREFIX} \ |
| 27 | O=${B} \ | 27 | O=${B} \ |
| 28 | " | 28 | " |
| 29 | 29 | ||
| 30 | CFLAGS += "-Wno-error=deprecated-declarations" | 30 | CFLAGS += "-Wno-error=deprecated-declarations" |
| 31 | 31 | ||
| @@ -43,9 +43,9 @@ do_install () { | |||
| 43 | 43 | ||
| 44 | # install path should match the value set in optee-client/tee-supplicant | 44 | # install path should match the value set in optee-client/tee-supplicant |
| 45 | # default TEEC_LOAD_PATH is /lib | 45 | # default TEEC_LOAD_PATH is /lib |
| 46 | mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ | 46 | install -d ${D}${nonarch_base_libdir}/optee_armtz/ |
| 47 | install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ | 47 | install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ |
| 48 | mkdir -p ${D}${libdir}/tee-supplicant/plugins | 48 | install -d ${D}${libdir}/tee-supplicant/plugins |
| 49 | install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/ | 49 | install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/ |
| 50 | } | 50 | } |
| 51 | 51 | ||
| @@ -58,7 +58,7 @@ addtask deploy before do_build after do_install | |||
| 58 | 58 | ||
| 59 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \ | 59 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \ |
| 60 | ${libdir}/tee-supplicant/plugins/ \ | 60 | ${libdir}/tee-supplicant/plugins/ \ |
| 61 | " | 61 | " |
| 62 | 62 | ||
| 63 | # Imports machine specific configs from staging to build | 63 | # Imports machine specific configs from staging to build |
| 64 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 64 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-security/optee-imx/optee-test_4.8.0.imx.bb b/recipes-security/optee-imx/optee-test_4.8.0.imx.bb index 2f2b40e09..42d525855 100644 --- a/recipes-security/optee-imx/optee-test_4.8.0.imx.bb +++ b/recipes-security/optee-imx/optee-test_4.8.0.imx.bb | |||
| @@ -8,6 +8,5 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560 \ | |||
| 8 | file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \ | 8 | file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \ |
| 9 | file://LICENSE-GPL;md5=10e86b5d2a6cb0e2b9dcfdd26a9ac58d" | 9 | file://LICENSE-GPL;md5=10e86b5d2a6cb0e2b9dcfdd26a9ac58d" |
| 10 | 10 | ||
| 11 | |||
| 12 | SRCBRANCH = "lf-6.18.2_1.0.0" | 11 | SRCBRANCH = "lf-6.18.2_1.0.0" |
| 13 | SRCREV = "3383a744a5997fdb3457b3cbe95aea3ce27879b3" | 12 | SRCREV = "3383a744a5997fdb3457b3cbe95aea3ce27879b3" |
diff --git a/recipes-security/optee-qoriq/optee-os-qoriq-tadevkit_4.8.0.bb b/recipes-security/optee-qoriq/optee-os-qoriq-tadevkit_4.8.0.bb index 491817ef1..93a049001 100644 --- a/recipes-security/optee-qoriq/optee-os-qoriq-tadevkit_4.8.0.bb +++ b/recipes-security/optee-qoriq/optee-os-qoriq-tadevkit_4.8.0.bb | |||
| @@ -18,7 +18,7 @@ do_install() { | |||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | do_deploy() { | 20 | do_deploy() { |
| 21 | echo "Do not inherit do_deploy from optee-os." | 21 | echo "Do not inherit do_deploy from optee-os." |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | FILES:${PN} = "${includedir}/optee/" | 24 | FILES:${PN} = "${includedir}/optee/" |
diff --git a/recipes-security/optee-qoriq/optee-os-qoriq_4.8.0.bb b/recipes-security/optee-qoriq/optee-os-qoriq_4.8.0.bb index 3241ab8c4..64c666286 100644 --- a/recipes-security/optee-qoriq/optee-os-qoriq_4.8.0.bb +++ b/recipes-security/optee-qoriq/optee-os-qoriq_4.8.0.bb | |||
| @@ -4,18 +4,18 @@ OPTEE_OS_BRANCH = "lf-6.12.49_2.2.0" | |||
| 4 | SRCREV = "b3883a773a9d15ec6439f9229e48f540c37e0d00" | 4 | SRCREV = "b3883a773a9d15ec6439f9229e48f540c37e0d00" |
| 5 | 5 | ||
| 6 | do_install:append () { | 6 | do_install:append () { |
| 7 | install -d ${D}${nonarch_base_libdir}/firmware/ | 7 | install -d ${D}${nonarch_base_libdir}/firmware/ |
| 8 | install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/firmware/ | 8 | install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/firmware/ |
| 9 | install -m 644 ${B}/core/tee-raw.bin ${D}${nonarch_base_libdir}/firmware/tee_${MACHINE}.bin | 9 | install -m 644 ${B}/core/tee-raw.bin ${D}${nonarch_base_libdir}/firmware/tee_${MACHINE}.bin |
| 10 | 10 | ||
| 11 | # Install embedded TAs | 11 | # Install embedded TAs |
| 12 | install -d ${D}${base_libdir}/optee_armtz/ | 12 | install -d ${D}${base_libdir}/optee_armtz/ |
| 13 | install -m 444 ${B}/ta/*/*.ta ${D}${base_libdir}/optee_armtz/ | 13 | install -m 444 ${B}/ta/*/*.ta ${D}${base_libdir}/optee_armtz/ |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | do_deploy:append () { | 16 | do_deploy:append () { |
| 17 | install -d ${DEPLOYDIR}/optee | 17 | install -d ${DEPLOYDIR}/optee |
| 18 | install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/optee/ | 18 | install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/optee/ |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | FILES:${PN} = "${nonarch_base_libdir}/optee_armtz/ ${nonarch_base_libdir}/firmware/" | 21 | FILES:${PN} = "${nonarch_base_libdir}/optee_armtz/ ${nonarch_base_libdir}/firmware/" |
diff --git a/recipes-security/optee-qoriq/optee-os.nxp.inc b/recipes-security/optee-qoriq/optee-os.nxp.inc index 1a837d54a..270d23c3b 100644 --- a/recipes-security/optee-qoriq/optee-os.nxp.inc +++ b/recipes-security/optee-qoriq/optee-os.nxp.inc | |||
| @@ -17,9 +17,9 @@ REQUIRED_MACHINE_FEATURES = "optee" | |||
| 17 | inherit features_check | 17 | inherit features_check |
| 18 | 18 | ||
| 19 | OPTEEMACHINE = "ls-${MACHINE}" | 19 | OPTEEMACHINE = "ls-${MACHINE}" |
| 20 | OPTEEMACHINE:ls1088ardb-pb = "ls-ls1088ardb" | 20 | OPTEEMACHINE:ls1088ardb-pb = "ls-ls1088ardb" |
| 21 | OPTEEMACHINE:ls1046afrwy = "ls-ls1046ardb" | 21 | OPTEEMACHINE:ls1046afrwy = "ls-ls1046ardb" |
| 22 | OPTEEMACHINE:lx2162aqds = "ls-lx2160aqds" | 22 | OPTEEMACHINE:lx2162aqds = "ls-lx2160aqds" |
| 23 | OPTEEMACHINE:lx2160ardb-rev2 = "ls-lx2160ardb" | 23 | OPTEEMACHINE:lx2160ardb-rev2 = "ls-lx2160ardb" |
| 24 | 24 | ||
| 25 | EXTRA_OEMAKE:append = " \ | 25 | EXTRA_OEMAKE:append = " \ |
diff --git a/recipes-security/optee-qoriq/optee-test.nxp.inc b/recipes-security/optee-qoriq/optee-test.nxp.inc index 75ed4d0c9..acbc2068d 100644 --- a/recipes-security/optee-qoriq/optee-test.nxp.inc +++ b/recipes-security/optee-qoriq/optee-test.nxp.inc | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | require recipes-security/optee-imx/optee-test-fslc.inc | 2 | require recipes-security/optee-imx/optee-test-fslc.inc |
| 3 | 3 | ||
| 4 | DEPENDS:remove = "optee-client optee-os-tadevkit" | 4 | DEPENDS:remove = "optee-client optee-os-tadevkit" |
| 5 | DEPENDS:append = "optee-client-qoriq optee-os-qoriq-tadevkit openssl" | 5 | DEPENDS:append = " optee-client-qoriq optee-os-qoriq-tadevkit openssl" |
| 6 | 6 | ||
| 7 | SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https" | 7 | SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https" |
| 8 | SRC_URI:remove = "file://run-ptest" | 8 | SRC_URI:remove = "file://run-ptest" |
diff --git a/recipes-security/smw/crypto-af-alg_git.bb b/recipes-security/smw/crypto-af-alg_git.bb index 4101776a5..3ec485b3b 100644 --- a/recipes-security/smw/crypto-af-alg_git.bb +++ b/recipes-security/smw/crypto-af-alg_git.bb | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | SUMMARY = "NXP i.MX CRYPTO AF_ALG" | 3 | SUMMARY = "NXP i.MX CRYPTO AF_ALG" |
| 4 | DESCRIPTION = "NXP i.MX crypto af alg tool to perform symmetric operation" | 4 | DESCRIPTION = "NXP i.MX crypto af alg tool to perform symmetric operation" |
| 5 | HOMEPAGE = "https://github.com/nxp-imx/crypto_af_alg" | ||
| 5 | SECTION = "base" | 6 | SECTION = "base" |
| 6 | LICENSE = "BSD-3-Clause" | 7 | LICENSE = "BSD-3-Clause" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4ef68f113b9400b1140be9b69208a816" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4ef68f113b9400b1140be9b69208a816" |
| @@ -15,7 +16,7 @@ SRCREV = "2fb11a600af90c80b8bb23368d1d6831c5deb973" | |||
| 15 | TARGET_CC_ARCH += "${LDFLAGS}" | 16 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 16 | 17 | ||
| 17 | do_install () { | 18 | do_install () { |
| 18 | oe_runmake DESTDIR=${D} install | 19 | oe_runmake DESTDIR=${D} install |
| 19 | } | 20 | } |
| 20 | 21 | ||
| 21 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 22 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
diff --git a/recipes-security/smw/itest_git.bb b/recipes-security/smw/itest_git.bb index 7885edc30..442f5fb89 100644 --- a/recipes-security/smw/itest_git.bb +++ b/recipes-security/smw/itest_git.bb | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | # Copyright 2026 NXP | 1 | # Copyright 2026 NXP |
| 2 | SUMMARY = "NXP i.MX Itest" | 2 | SUMMARY = "NXP i.MX Itest" |
| 3 | DESCRIPTION = "NXP i.MX Itest" | 3 | DESCRIPTION = "NXP i.MX Itest" |
| 4 | HOMEPAGE = "https://github.com/nxp-imx/itest" | ||
| 4 | SECTION = "base" | 5 | SECTION = "base" |
| 5 | LICENSE = "BSD-3-Clause" | 6 | LICENSE = "BSD-3-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" |
| @@ -14,19 +15,19 @@ inherit cmake | |||
| 14 | 15 | ||
| 15 | PACKAGECONFIG:mx8dxl-nxp-bsp ??= "ele-seco" | 16 | PACKAGECONFIG:mx8dxl-nxp-bsp ??= "ele-seco" |
| 16 | PACKAGECONFIG:mx8ulp-nxp-bsp ??= "ele" | 17 | PACKAGECONFIG:mx8ulp-nxp-bsp ??= "ele" |
| 17 | PACKAGECONFIG:mx91-nxp-bsp ??= "ele" | 18 | PACKAGECONFIG:mx91-nxp-bsp ??= "ele" |
| 18 | PACKAGECONFIG:mx93-nxp-bsp ??= "ele" | 19 | PACKAGECONFIG:mx93-nxp-bsp ??= "ele" |
| 19 | PACKAGECONFIG:mx943-nxp-bsp ??= "ele ele-seco prime" | 20 | PACKAGECONFIG:mx943-nxp-bsp ??= "ele ele-seco prime" |
| 20 | PACKAGECONFIG:mx95-nxp-bsp ??= "ele ele-seco" | 21 | PACKAGECONFIG:mx95-nxp-bsp ??= "ele ele-seco" |
| 21 | PACKAGECONFIG:mx952-nxp-bsp ??= "ele ele-seco prime" | 22 | PACKAGECONFIG:mx952-nxp-bsp ??= "ele ele-seco prime" |
| 22 | 23 | ||
| 23 | PACKAGECONFIG[ele] = "-DELE=1,,imx-secure-enclave" | 24 | PACKAGECONFIG[ele] = "-DELE=1,,imx-secure-enclave" |
| 24 | PACKAGECONFIG[ele-seco] = "-DV2X=1,,imx-secure-enclave-seco" | 25 | PACKAGECONFIG[ele-seco] = "-DV2X=1,,imx-secure-enclave-seco" |
| 25 | PACKAGECONFIG[prime] = "-DPRIME=1,,imx-secure-enclave-prime" | 26 | PACKAGECONFIG[prime] = "-DPRIME=1,,imx-secure-enclave-prime" |
| 26 | 27 | ||
| 27 | EXTRA_OECMAKE = " \ | 28 | EXTRA_OECMAKE = "\ |
| 28 | -DOPENSSL_PATH="${STAGING_DIR_HOST}/usr" \ | 29 | -DOPENSSL_PATH="${STAGING_DIR_HOST}/usr"\ |
| 29 | -DELE_LIB_PATH="${STAGING_DIR_HOST}/usr" \ | 30 | -DELE_LIB_PATH="${STAGING_DIR_HOST}/usr"\ |
| 30 | -DLIB_PATH="${STAGING_DIR_HOST}${libdir}"" | 31 | -DLIB_PATH="${STAGING_DIR_HOST}${libdir}"" |
| 31 | 32 | ||
| 32 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 33 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-security/smw/keyctl-caam_git.bb b/recipes-security/smw/keyctl-caam_git.bb index 13202326b..cfa1b80c4 100644 --- a/recipes-security/smw/keyctl-caam_git.bb +++ b/recipes-security/smw/keyctl-caam_git.bb | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | SUMMARY = "NXP i.MX CAAM Keyctl" | 3 | SUMMARY = "NXP i.MX CAAM Keyctl" |
| 4 | DESCRIPTION = "NXP i.MX keyctl tool to manage CAAM Keys" | 4 | DESCRIPTION = "NXP i.MX keyctl tool to manage CAAM Keys" |
| 5 | HOMEPAGE = "https://github.com/nxp-imx/keyctl_caam" | ||
| 5 | SECTION = "base" | 6 | SECTION = "base" |
| 6 | LICENSE = "BSD-3-Clause" | 7 | LICENSE = "BSD-3-Clause" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8636bd68fc00cc6a3809b7b58b45f982" |
| @@ -11,14 +12,14 @@ SRC_URI = "git://github.com/nxp-imx/keyctl_caam.git;protocol=https;branch=${SRCB | |||
| 11 | 12 | ||
| 12 | SRCREV = "71cb18f17d766145217a5517748e37e250b055bf" | 13 | SRCREV = "71cb18f17d766145217a5517748e37e250b055bf" |
| 13 | 14 | ||
| 14 | DEPENDS = " openssl" | 15 | DEPENDS = "openssl" |
| 15 | 16 | ||
| 16 | TARGET_CC_ARCH += "${LDFLAGS}" | 17 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 17 | 18 | ||
| 18 | EXTRA_OEMAKE = " OPENSSL_PATH=${STAGING_INCDIR}" | 19 | EXTRA_OEMAKE = "OPENSSL_PATH=${STAGING_INCDIR}" |
| 19 | 20 | ||
| 20 | do_install () { | 21 | do_install () { |
| 21 | oe_runmake DESTDIR=${D} install | 22 | oe_runmake DESTDIR=${D} install |
| 22 | } | 23 | } |
| 23 | 24 | ||
| 24 | COMPATIBLE_MACHINE = "(imx-generic-bsp|qoriq)" | 25 | COMPATIBLE_MACHINE = "(imx-generic-bsp|qoriq)" |
diff --git a/recipes-security/smw/smw_5.3.bb b/recipes-security/smw/smw_5.3.bb index 46155978e..37452720a 100644 --- a/recipes-security/smw/smw_5.3.bb +++ b/recipes-security/smw/smw_5.3.bb | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | require recipes-security/optee-imx/optee-fslc.inc | 2 | require recipes-security/optee-imx/optee-fslc.inc |
| 3 | 3 | ||
| 4 | SUMMARY = "NXP i.MX Security Middleware Library" | 4 | SUMMARY = "NXP i.MX Security Middleware Library" |
| 5 | HOMEPAGE = "https://github.com/nxp-imx/imx-smw" | ||
| 5 | DESCRIPTION = "NXP i.MX Security Middleware Library" | 6 | DESCRIPTION = "NXP i.MX Security Middleware Library" |
| 6 | SECTION = "base" | 7 | SECTION = "base" |
| 7 | LICENSE = "BSD-3-Clause" | 8 | LICENSE = "BSD-3-Clause" |
| @@ -9,11 +10,11 @@ LICENSE = "Apache-2.0 & BSD-3-Clause & Zlib" | |||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ff20c8e51b28869d9cdec70a818d163f \ | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ff20c8e51b28869d9cdec70a818d163f \ |
| 10 | file://${PSA_ARCH_TESTS_SRC_PATH}/LICENSE.md;md5=2a944942e1496af1886903d274dedb13" | 11 | file://${PSA_ARCH_TESTS_SRC_PATH}/LICENSE.md;md5=2a944942e1496af1886903d274dedb13" |
| 11 | 12 | ||
| 12 | DEPENDS = " \ | 13 | DEPENDS = "\ |
| 13 | python3-cryptography-native \ | ||
| 14 | json-c \ | 14 | json-c \ |
| 15 | optee-client \ | 15 | optee-client \ |
| 16 | optee-os-tadevkit \ | 16 | optee-os-tadevkit \ |
| 17 | python3-cryptography-native \ | ||
| 17 | sqlite3 \ | 18 | sqlite3 \ |
| 18 | " | 19 | " |
| 19 | 20 | ||
| @@ -35,15 +36,15 @@ inherit cmake features_check python3native | |||
| 35 | REQUIRED_MACHINE_FEATURES = "optee" | 36 | REQUIRED_MACHINE_FEATURES = "optee" |
| 36 | 37 | ||
| 37 | PACKAGECONFIG ??= "${PACKAGECONFIG_DRIVERS} ${PACKAGECONFIG_FEATURES}" | 38 | PACKAGECONFIG ??= "${PACKAGECONFIG_DRIVERS} ${PACKAGECONFIG_FEATURES}" |
| 38 | PACKAGECONFIG_DRIVERS = "" | 39 | PACKAGECONFIG_DRIVERS = "" |
| 39 | PACKAGECONFIG_DRIVERS:mx8x-nxp-bsp = "ele-seco" | 40 | PACKAGECONFIG_DRIVERS:mx8x-nxp-bsp = "ele-seco" |
| 40 | PACKAGECONFIG_DRIVERS:mx8ulp-nxp-bsp = "ele" | 41 | PACKAGECONFIG_DRIVERS:mx8ulp-nxp-bsp = "ele" |
| 41 | PACKAGECONFIG_DRIVERS:mx91-nxp-bsp = "ele" | 42 | PACKAGECONFIG_DRIVERS:mx91-nxp-bsp = "ele" |
| 42 | PACKAGECONFIG_DRIVERS:mx93-nxp-bsp = "ele" | 43 | PACKAGECONFIG_DRIVERS:mx93-nxp-bsp = "ele" |
| 43 | PACKAGECONFIG_DRIVERS:mx943-nxp-bsp = "ele" | 44 | PACKAGECONFIG_DRIVERS:mx943-nxp-bsp = "ele" |
| 44 | PACKAGECONFIG_DRIVERS:mx95-nxp-bsp = "ele" | 45 | PACKAGECONFIG_DRIVERS:mx95-nxp-bsp = "ele" |
| 45 | 46 | ||
| 46 | PACKAGECONFIG_FEATURES = "" | 47 | PACKAGECONFIG_FEATURES = "" |
| 47 | PACKAGECONFIG_FEATURES:mx91-nxp-bsp = "tls" | 48 | PACKAGECONFIG_FEATURES:mx91-nxp-bsp = "tls" |
| 48 | PACKAGECONFIG_FEATURES:mx93-nxp-bsp = "tls" | 49 | PACKAGECONFIG_FEATURES:mx93-nxp-bsp = "tls" |
| 49 | PACKAGECONFIG_FEATURES:mx943-nxp-bsp = "tls" | 50 | PACKAGECONFIG_FEATURES:mx943-nxp-bsp = "tls" |
| @@ -61,11 +62,11 @@ LD[unexport] = "1" | |||
| 61 | # setting the linker options | 62 | # setting the linker options |
| 62 | TARGET_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" | 63 | TARGET_LDFLAGS:remove = "${DEBUG_PREFIX_MAP}" |
| 63 | 64 | ||
| 64 | EXTRA_OECMAKE = " \ | 65 | EXTRA_OECMAKE = "\ |
| 65 | -DYOCTO_BUILD=ON \ | 66 | -DYOCTO_BUILD=ON \ |
| 66 | -DTA_DEV_KIT_ROOT=${TA_DEV_KIT_DIR} \ | 67 | -DTA_DEV_KIT_ROOT=${TA_DEV_KIT_DIR} \ |
| 67 | -DTEEC_ROOT=${STAGING_DIR_HOST} \ | 68 | -DTEEC_ROOT=${STAGING_DIR_HOST} \ |
| 68 | -DJSONC_ROOT="${COMPONENTS_DIR}/${TARGET_ARCH}/json-c/usr" \ | 69 | -DJSONC_ROOT="${COMPONENTS_DIR}/${TARGET_ARCH}/json-c/usr"\ |
| 69 | -DPSA_ARCH_TESTS_SRC_PATH=${PSA_ARCH_TESTS_SRC_PATH} \ | 70 | -DPSA_ARCH_TESTS_SRC_PATH=${PSA_ARCH_TESTS_SRC_PATH} \ |
| 70 | -DTEE_TA_DESTDIR=${nonarch_base_libdir} \ | 71 | -DTEE_TA_DESTDIR=${nonarch_base_libdir} \ |
| 71 | " | 72 | " |
