optee-os: only activate customizations for TI platforms
PATCH 1/2 optee-os: only activate customizations for TI platforms
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on TI_SECURE_DEV_PKG and other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.
---
.../{optee-os_%.bbappend => optee-os-ti.inc} | 0
.../optee/optee-os_%.bbappend | 116 +-----------------
2 files changed, 3 insertions(+), 113 deletions(-)
copy meta-ti-bsp/recipes-security/optee/{optee-os_%.bbappend => optee-os-ti.inc} (100%)meta-ti-bsp/recipes-security/optee/optee-os-ti.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +0 -0
meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +3 -113
117 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH 2/2 trusted-firmware-a: only activate customizations for TI platforms
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on TI_SECURE_DEV_PKG and other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.
---
...a_%.bbappend => trusted-firmware-a-ti.inc} | 0
.../trusted-firmware-a_%.bbappend | 72 +------------------
2 files changed, 3 insertions(+), 69 deletions(-)
copy meta-ti-bsp/recipes-bsp/trusted-firmware-a/{trusted-firmware-a_%.bbappend => trusted-firmware-a-ti.inc} (100%)meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc renamed from meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +0 -0
meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +3 -69
73 lines not on this page · raw message
Signature · 1 line
2.25.1
Re: [meta-ti] [master/kirkstone][PATCH 2/2] trusted-firmware-a: only activate customizations for TI platforms
This does not apply against kirkstone cleanly because of a patch applied to the master recipe that is not in kirkstone. I'll fix it as I apply the patch, but I wanted to inform anyone trying it themselves.
Quoted 107 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on
TI_SECURE_DEV_PKGand other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.Signed-off-by Denys Dmytriyenko <[email protected]>--- ...a_%.bbappend => trusted-firmware-a-ti.inc} | 0 .../trusted-firmware-a_%.bbappend | 72 +------------------ 2 files changed, 3 insertions(+), 69 deletions(-)copy meta-ti-bsp/recipes-bsp/trusted-firmware-a/{trusted-firmware-a_%.bbappend => trusted-firmware-a-ti.inc} (100%)
meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc renamed from meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +0
-0meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +3
-70@@ -1,70 +1,4 @@ -PV:k3 = "2.8+git${SRCPV}" -SRCREV_tfa:k3 = "2fcd408bb3a6756767a43c073c597cef06e7f2d5" -SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master" -COMPATIBLE_MACHINE:k3 = "k3" -TFA_BUILD_TARGET:k3 = "all" -TFA_INSTALL_TARGET:k3 = "bl31" -TFA_SPD:k3 = "opteed" +TFA_TI = "" +TFA_TI:k3 = "trusted-firmware-a-ti.inc" -SRC_URI:append:k3 = " file://rwx-segments-ti.patch" -FILESEXTRAPATHS:prepend := "${THISDIR}/files:" - -# Use TI SECDEV for signing -inherit ti-secdev - -EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" -EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" - -# Signing procedure for K3 HS devices -tfa_sign_k3hs() { - mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin -} - -do_compile:append:am65xx-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:am64xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-lp-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62axx-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721e-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j7200-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721s2-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j784s4-hs-evm() { - tfa_sign_k3hs -} - -do_install:append:k3() { - if [ -f ${BUILD_DIR}/bl31.bin.unsigned ]; then - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \ - ${D}/firmware/bl31.bin.unsigned - else - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin \ - ${D}/firmware/bl31.bin.unsigned - fi -} +require ${TFA_TI} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#16518): https://lists.yoctoproject.org/g/meta-ti/message/16518
Mute This Topic: https://lists.yoctoproject.org/mt/98834090/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/10828724/6551054/1815494134/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Re: [meta-ti] [master/kirkstone][PATCH 2/2] trusted-firmware-a: only activate customizations for TI platforms
Sorry about all that - I can resend everything specifically for kirkstone
Quoted 123 lines · Ryan Eatmon via lists.yoctoproject.org
This does not apply against kirkstone cleanly because of a patch applied to the master recipe that is not in kirkstone. I'll fix it as I apply the patch, but I wanted to inform anyone trying it themselves.
Quoted 100 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on
TI_SECURE_DEV_PKGand other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.Signed-off-by Denys Dmytriyenko <[email protected]>--- ...a_%.bbappend => trusted-firmware-a-ti.inc} | 0 .../trusted-firmware-a_%.bbappend | 72 +------------------ 2 files changed, 3 insertions(+), 69 deletions(-) copy meta-ti-bsp/recipes-bsp/trusted-firmware-a/{trusted-firmware-a_%.bbappend => trusted-firmware-a-ti.inc} (100%)meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc renamed from meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +0
-0meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +3
-69@@ -1,70 +1,4 @@ -PV:k3 = "2.8+git${SRCPV}" -SRCREV_tfa:k3 = "2fcd408bb3a6756767a43c073c597cef06e7f2d5" -SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master" -COMPATIBLE_MACHINE:k3 = "k3" -TFA_BUILD_TARGET:k3 = "all" -TFA_INSTALL_TARGET:k3 = "bl31" -TFA_SPD:k3 = "opteed" +TFA_TI = "" +TFA_TI:k3 = "trusted-firmware-a-ti.inc" -SRC_URI:append:k3 = " file://rwx-segments-ti.patch" -FILESEXTRAPATHS:prepend := "${THISDIR}/files:" - -# Use TI SECDEV for signing -inherit ti-secdev - -EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" -EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" - -# Signing procedure for K3 HS devices -tfa_sign_k3hs() { - mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin -} - -do_compile:append:am65xx-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:am64xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-lp-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62axx-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721e-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j7200-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721s2-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j784s4-hs-evm() { - tfa_sign_k3hs -} - -do_install:append:k3() { - if [ -f ${BUILD_DIR}/bl31.bin.unsigned ]; then - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \ - ${D}/firmware/bl31.bin.unsigned - else - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin \ - ${D}/firmware/bl31.bin.unsigned - fi -} +require ${TFA_TI}Signature · 12 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16521): https://lists.yoctoproject.org/g/meta-ti/message/16521 Mute This Topic: https://lists.yoctoproject.org/mt/98834090/3617104 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/6695352/3617104/1311934448/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 4 lines
Regards, Denys Dmytriyenko <[email protected]> PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964 Fingerprint: 25FC E4A5 8A72 2F69 1186 6D76 4209 0272 9A92 C964
Re: [meta-ti] [master/kirkstone][PATCH 2/2] trusted-firmware-a: only activate customizations for TI platforms
Already done. No worries.
Quoted 128 lines · Denys Dmytriyenko
Sorry about all that - I can resend everything specifically for kirkstone
Quoted 123 lines · Ryan Eatmon via lists.yoctoproject.org
This does not apply against kirkstone cleanly because of a patch applied to the master recipe that is not in kirkstone. I'll fix it as I apply the patch, but I wanted to inform anyone trying it themselves.
Quoted 100 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on
TI_SECURE_DEV_PKGand other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.Signed-off-by Denys Dmytriyenko <[email protected]>--- ...a_%.bbappend => trusted-firmware-a-ti.inc} | 0 .../trusted-firmware-a_%.bbappend | 72 +------------------ 2 files changed, 3 insertions(+), 69 deletions(-)copy meta-ti-bsp/recipes-bsp/trusted-firmware-a/{trusted-firmware-a_%.bbappend => trusted-firmware-a-ti.inc} (100%)
meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc renamed from meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +0
-0meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +3
-69@@ -1,70 +1,4 @@ -PV:k3 = "2.8+git${SRCPV}" -SRCREV_tfa:k3 = "2fcd408bb3a6756767a43c073c597cef06e7f2d5" -SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master" -COMPATIBLE_MACHINE:k3 = "k3" -TFA_BUILD_TARGET:k3 = "all" -TFA_INSTALL_TARGET:k3 = "bl31" -TFA_SPD:k3 = "opteed" +TFA_TI = "" +TFA_TI:k3 = "trusted-firmware-a-ti.inc" -SRC_URI:append:k3 = " file://rwx-segments-ti.patch" -FILESEXTRAPATHS:prepend := "${THISDIR}/files:" - -# Use TI SECDEV for signing -inherit ti-secdev - -EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" -EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" - -# Signing procedure for K3 HS devices -tfa_sign_k3hs() { - mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin -} - -do_compile:append:am65xx-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:am64xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62xx-lp-evm() { - tfa_sign_k3hs -} - -do_compile:append:am62axx-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721e-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j7200-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j721s2-hs-evm() { - tfa_sign_k3hs -} - -do_compile:append:j784s4-hs-evm() { - tfa_sign_k3hs -} - -do_install:append:k3() { - if [ -f ${BUILD_DIR}/bl31.bin.unsigned ]; then - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \ - ${D}/firmware/bl31.bin.unsigned - else - echo "Install bl31.bin.unsigned" - install -m 0644 ${BUILD_DIR}/bl31.bin \ - ${D}/firmware/bl31.bin.unsigned - fi -} +require ${TFA_TI}Signature · 12 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16521): https://lists.yoctoproject.org/g/meta-ti/message/16521 Mute This Topic: https://lists.yoctoproject.org/mt/98834090/3617104 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/6695352/3617104/1311934448/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
This does not apply against kirkstone cleanly because of the optee version change from 3.16 to % for master. I'll fix it as I apply the patch, but I wanted to inform anyone trying it themselves.
Quoted 151 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Avoid inheriting ti-secdev class and adding unconditional dependency on
TI_SECURE_DEV_PKGand other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance.Signed-off-by Denys Dmytriyenko <[email protected]>--- .../{optee-os_%.bbappend => optee-os-ti.inc} | 0 .../optee/optee-os_%.bbappend | 116 +----------------- 2 files changed, 3 insertions(+), 113 deletions(-)copy meta-ti-bsp/recipes-security/optee/{optee-os_%.bbappend => optee-os-ti.inc} (100%)
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +0
-0meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +3
-114@@ -1,114 +1,4 @@ -# Use TI SECDEV for signing -inherit ti-secdev +OPTEE_TI = "" +OPTEE_TI:ti-soc = "optee-os-ti.inc" -EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" - -EXTRA_OEMAKE:append:am62xx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" -EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" - -do_compile:append:k3() { - cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin - cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin.unsigned - cp ${B}/core/tee.elf ${B}/bl32.elf -} - -# Signing procedure for legacy HS devices -optee_sign_legacyhs() { - ( cd ${B}/core/; \ - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ - normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` - mv tee.bin.signed ${B}/$normfl.optee; \ - ) - - if [ "${OPTEEPAGER}" = "y" ]; then - oe_runmake -C ${S} clean - oe_runmake -C ${S} all CFG_TEE_TA_LOG_LEVEL=0 CFG_WITH_PAGER=y - ( cd ${B}/core/; \ - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ - normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` - mv tee.bin.signed ${B}/$normfl-pager.optee; \ - ) - fi -} - -do_compile:append:ti43x() { - optee_sign_legacyhs -} - -do_compile:append:dra7xx() { - optee_sign_legacyhs -} - -# Signing procedure for K3 devices -optee_sign_k3hs() { - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${B}/core/tee-pager_v2.bin ${B}/bl32.bin - cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin.unsigned - cp ${B}/core/tee.elf ${B}/bl32.elf -} - -do_compile:append:am65xx-hs-evm() { - optee_sign_k3hs -} - -do_compile:append:am64xx-evm() { - optee_sign_k3hs -} - -do_compile:append:am62xx-evm() { - optee_sign_k3hs -} - -do_compile:append:am62xx-lp-evm() { - optee_sign_k3hs -} - -do_compile:append:am62axx-evm() { - optee_sign_k3hs -} - -do_compile:append:j721e-hs-evm() { - optee_sign_k3hs -} - -do_compile:append:j7200-hs-evm() { - optee_sign_k3hs -} - -do_compile:append:j721s2-hs-evm() { - optee_sign_k3hs -} - -do_compile:append:j784s4-hs-evm() { - optee_sign_k3hs -} - -do_install:append:ti-soc() { - install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true - install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true - install -m 644 ${B}/bl32.bin.unsigned ${D}${nonarch_base_libdir}/firmware/ || true - install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true -} - -optee_deploy_legacyhs() { - cd ${DEPLOYDIR}/ - for f in optee/*.optee; do - ln -sf $f ${DEPLOYDIR}/ - done -} - -do_deploy:append:ti43x() { - optee_deploy_legacyhs -} - -do_deploy:append:dra7xx() { - optee_deploy_legacyhs -} - -do_deploy:append:k3() { - ln -sf optee/bl32.bin ${DEPLOYDIR}/ - ln -sf optee/bl32.bin.unsigned ${DEPLOYDIR}/ - ln -sf optee/bl32.elf ${DEPLOYDIR}/ -} - -# This is needed for bl32.elf -INSANE_SKIP:${PN}:append:k3 = " textrel" +require ${OPTEE_TI} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#16517): https://lists.yoctoproject.org/g/meta-ti/message/16517
Mute This Topic: https://lists.yoctoproject.org/mt/98834089/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/10828724/6551054/1815494134/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS