optee-os: use own pre-patched git repo, simplify flavor handling
PATCH 1/3 optee-os: use own pre-patched git repo, simplify flavor handling
From: Denys Dmytriyenko <[email protected]>
Since optee support for dra7/dra72/dra71 got unified and merged, no need for multiple flavors per platform for now.
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/classes/kernel-fitimage.bbclass | 16 +- meta-arago-distro/conf/distro/arago.conf | 2 - ...001-plat-ti-Fixed-issues-with-MMU-mapping.patch | 43 ---- ...nitor-update-to-support-platform-services.patch | 231 --------------------- ...e-load-address-to-the-end-of-DRAM-and-inc.patch | 56 ----- .../0004-plat-ti-Add-DRA72x-platform-flavor.patch | 82 -------- ...05-plat-ti-Add-DRA71x-EVM-platform-flavor.patch | 50 ----- ...06-plat-ti-Add-AM57xx-EVM-platform-flavor.patch | 50 ----- .../recipes-security/optee/optee-os_git.bbappend | 32 ++- 9 files changed, 15 insertions(+), 547 deletions(-) delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0001-plat-ti-Fixed-issues-with-MMU-mapping.patch delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0002-monitor-update-to-support-platform-services.patch delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0003-plat-ti-Move-load-address-to-the-end-of-DRAM-and-inc.patch delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0004-plat-ti-Add-DRA72x-platform-flavor.patch delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0005-plat-ti-Add-DRA71x-EVM-platform-flavor.patch delete mode 100644 meta-arago-distro/recipes-security/optee/optee-os/0006-plat-ti-Add-AM57xx-EVM-platform-flavor.patch
meta-arago-distro/classes/kernel-fitimage.bbclass +3 -13
@@ -332,19 +332,9 @@ fitimage_emit_section_config() { EOF fi - if test -n "${FITIMAGE_TEE}"; then - teecount=1 - for TEE in ${FITIMAGE_TEE}; do - teename=`basename ${TEE} ".optee"` - loadables_line="" - final_conf_desc="${conf_desc}" - if [ "${DTB#$teename}" != "${DTB}" ]; then - loadables_line="loadables = \"${TEE}\";" - final_conf_desc="${conf_desc}, OPTEE OS Image" - break - fi - teecount=`expr ${teecount} + 1` - done + if test -n "${OPTEEFLAVOR}"; then + loadables_line="loadables = \"${OPTEEFLAVOR}.optee\";" + final_conf_desc="${conf_desc}, OPTEE OS Image" else loadables_line="" final_conf_desc="${conf_desc}"
meta-arago-distro/conf/distro/arago.conf +0 -2
@@ -32,12 +32,10 @@ FITIMAGE_CONF_BY_NAME = "1" KERNEL_IMAGETYPES_dra7xx-hs-evm = "zImage fitImage" INITRAMFS_IMAGE_dra7xx-hs-evm = "arago-base-tisdk-image" INITRAMFS_FSTYPES_dra7xx-hs-evm = "cpio.xz" -FITIMAGE_TEE_dra7xx-hs-evm = "dra7-evm.optee dra72-evm-revc.optee dra71-evm.optee" KERNEL_IMAGETYPES_am57xx-hs-evm = "zImage fitImage" INITRAMFS_IMAGE_am57xx-hs-evm = "arago-base-tisdk-image" INITRAMFS_FSTYPES_am57xx-hs-evm = "cpio.xz" -FITIMAGE_TEE_am57xx-hs-evm = "am57xx-evm.optee" KERNEL_IMAGETYPES_am437x-hs-evm = "zImage fitImage" INITRAMFS_IMAGE_am437x-hs-evm = "arago-base-tisdk-image"
meta-arago-distro/recipes-security/optee/optee-os/0001-plat-ti-Fixed-issues-with-MMU-mapping.patch deleted +0 -43
43 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os/0002-monitor-update-to-support-platform-services.patch deleted +0 -231
231 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os/0003-plat-ti-Move-load-address-to-the-end-of-DRAM-and-inc.patch deleted +0 -56
56 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os/0004-plat-ti-Add-DRA72x-platform-flavor.patch deleted +0 -82
82 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os/0005-plat-ti-Add-DRA71x-EVM-platform-flavor.patch deleted +0 -50
50 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os/0006-plat-ti-Add-AM57xx-EVM-platform-flavor.patch deleted +0 -50
50 lines not on this page · raw message
meta-arago-distro/recipes-security/optee/optee-os_git.bbappend +12 -20
@@ -1,10 +1,14 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -PR_append = ".arago4" +PR_append = ".arago5" is_armv7 = "1" -SRCREV = "8dceff9b18e7c2e0cb879ea458e85a1806dff447" +SRC_URI = "git://git.ti.com/optee/ti-optee-os.git;branch=${BRANCH} \ + file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ +" +BRANCH = "ti_optee_os" +SRCREV = "f41d1cfddf3cba6eb3ff91c399bf6059eaa6297e" EXTRA_OEMAKE = "CROSS_COMPILE_core=${HOST_PREFIX} \ CROSS_COMPILE_ta_arm32=${HOST_PREFIX} \
@@ -13,27 +17,15 @@ EXTRA_OEMAKE = "CROSS_COMPILE_core=${HOST_PREFIX} \ CFG_TEE_TA_LOG_LEVEL=0 \ " -SRC_URI += " \ - file://0001-plat-ti-Fixed-issues-with-MMU-mapping.patch \ - file://0002-monitor-update-to-support-platform-services.patch \ - file://0003-plat-ti-Move-load-address-to-the-end-of-DRAM-and-inc.patch \ - file://0004-plat-ti-Add-DRA72x-platform-flavor.patch \ - file://0005-plat-ti-Add-DRA71x-EVM-platform-flavor.patch \ - file://0006-plat-ti-Add-AM57xx-EVM-platform-flavor.patch \ -" - do_compile() { unset LDFLAGS export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} - for flavor in ${OPTEEFLAVOR}; do - oe_runmake clean PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=$flavor - oe_runmake all PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=$flavor - ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ - ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ - normfl=`echo $flavor | tr "_" "-"` - mv tee.bin.signed $normfl.optee; \ - ) - done + oe_runmake all PLATFORM=${OPTEEMACHINE} PLATFORM_FLAVOR=${OPTEEFLAVOR} + ( cd out/arm-plat-${OPTEEOUTPUTMACHINE}/core/; \ + ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \ + normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"` + mv tee.bin.signed $normfl.optee; \ + ) } do_install() {
Signature · 1 line
2.7.4
PATCH 2/3 optee-client: use own git repo
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/recipes-security/optee/optee-client.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meta-arago-distro/recipes-security/optee/optee-client.bbappend
meta-arago-distro/recipes-security/optee/optee-client.bbappend new file +7 -0
@@ -0,0 +1,7 @@ +PR_append = ".arago0" + +SRC_URI = "git://git.ti.com/optee/ti-optee-client.git;branch=${BRANCH} \ + file://tee-supplicant.service" + +BRANCH = "ti_optee_client" +SRCREV = "ce5fefe6cba5df9b4f31399b1155ba768eee0b78"
Signature · 1 line
2.7.4
PATCH 3/3 git-test: use own git repo
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/recipes-security/optee/optee-test_git.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 meta-arago-distro/recipes-security/optee/optee-test_git.bbappend
meta-arago-distro/recipes-security/optee/optee-test_git.bbappend new file +6 -0
@@ -0,0 +1,6 @@ +PR_append = ".arago0" + +SRC_URI = "git://git.ti.com/optee/ti-optee-test.git;branch=${BRANCH}" + +BRANCH = "ti_optee_test" +SRCREV = "6203b8769beff4eccf7104a6474991114691bf90"
Signature · 1 line
2.7.4