diff options
Diffstat (limited to 'recipes-security')
| -rw-r--r-- | recipes-security/optee-imx/optee-client-fslc.inc | 6 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-os-common-fslc-imx.inc | 2 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-os-fslc.inc | 6 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-test-fslc-imx.inc | 6 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-test-fslc.inc | 4 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-test.nxp.inc | 6 | ||||
| -rw-r--r-- | recipes-security/smw/smw_5.3.bb | 4 |
7 files changed, 22 insertions, 12 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc index ab7c8bc69..a5ac0f3a0 100644 --- a/recipes-security/optee-imx/optee-client-fslc.inc +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
| @@ -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-os-common-fslc-imx.inc b/recipes-security/optee-imx/optee-os-common-fslc-imx.inc index 16ed8cea7..aaf8973c8 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 | ||
diff --git a/recipes-security/optee-imx/optee-os-fslc.inc b/recipes-security/optee-imx/optee-os-fslc.inc index febdd2c73..e7568c2a3 100644 --- a/recipes-security/optee-imx/optee-os-fslc.inc +++ b/recipes-security/optee-imx/optee-os-fslc.inc | |||
| @@ -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)}" |
diff --git a/recipes-security/optee-imx/optee-test-fslc-imx.inc b/recipes-security/optee-imx/optee-test-fslc-imx.inc index 2c0d278e3..23e22bc9f 100644 --- a/recipes-security/optee-imx/optee-test-fslc-imx.inc +++ b/recipes-security/optee-imx/optee-test-fslc-imx.inc | |||
| @@ -4,6 +4,10 @@ require optee-test-fslc.inc | |||
| 4 | 4 | ||
| 5 | DEPENDS += "openssl" | 5 | DEPENDS += "openssl" |
| 6 | 6 | ||
| 7 | inherit features_check | ||
| 8 | |||
| 9 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 10 | |||
| 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-test:" | 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-test:" |
| 8 | 12 | ||
| 9 | SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https" | 13 | SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https" |
| @@ -13,6 +17,6 @@ OPTEE_TEST_SRC ?= "git://github.com/nxp-imx/imx-optee-test.git;protocol=https" | |||
| 13 | 17 | ||
| 14 | EXTRA_OEMAKE:append:libc-musl = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}" | 18 | EXTRA_OEMAKE:append:libc-musl = " OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}" |
| 15 | CFLAGS:append:libc-musl = " -Wno-error=deprecated-declarations" | 19 | CFLAGS:append:libc-musl = " -Wno-error=deprecated-declarations" |
| 16 | CFLAGS += " -Wno-error=unterminated-string-initialization" | 20 | CFLAGS += "-Wno-error=unterminated-string-initialization" |
| 17 | 21 | ||
| 18 | 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..c34ef8789 100644 --- a/recipes-security/optee-imx/optee-test-fslc.inc +++ b/recipes-security/optee-imx/optee-test-fslc.inc | |||
| @@ -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 | ||
diff --git a/recipes-security/optee-qoriq/optee-test.nxp.inc b/recipes-security/optee-qoriq/optee-test.nxp.inc index 6bf158d12..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" |
| @@ -10,4 +10,8 @@ SRC_URI:prepend = "${OPTEE_TEST_SRC};branch=${OPTEE_TEST_BRANCH} " | |||
| 10 | 10 | ||
| 11 | OPTEE_TEST_SRC ?= "git://github.com/nxp-qoriq/optee_test.git;protocol=https" | 11 | OPTEE_TEST_SRC ?= "git://github.com/nxp-qoriq/optee_test.git;protocol=https" |
| 12 | 12 | ||
| 13 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 14 | |||
| 15 | inherit features_check | ||
| 16 | |||
| 13 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 17 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-security/smw/smw_5.3.bb b/recipes-security/smw/smw_5.3.bb index d8e07a50f..46155978e 100644 --- a/recipes-security/smw/smw_5.3.bb +++ b/recipes-security/smw/smw_5.3.bb | |||
| @@ -30,7 +30,9 @@ SRCREV_smw = "c643587073584057700f39098ab12f536a21600d" | |||
| 30 | SRCREV_psa = "463cb95ada820bc6f758d50066cf8c0ed5cc3a02" | 30 | SRCREV_psa = "463cb95ada820bc6f758d50066cf8c0ed5cc3a02" |
| 31 | SRCREV_FORMAT = "smw_psa" | 31 | SRCREV_FORMAT = "smw_psa" |
| 32 | 32 | ||
| 33 | inherit cmake python3native | 33 | inherit cmake features_check python3native |
| 34 | |||
| 35 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 34 | 36 | ||
| 35 | PACKAGECONFIG ??= "${PACKAGECONFIG_DRIVERS} ${PACKAGECONFIG_FEATURES}" | 37 | PACKAGECONFIG ??= "${PACKAGECONFIG_DRIVERS} ${PACKAGECONFIG_FEATURES}" |
| 36 | PACKAGECONFIG_DRIVERS = "" | 38 | PACKAGECONFIG_DRIVERS = "" |
