From patchwork Wed Jan 29 17:38:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 183000 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp891444ile; Wed, 29 Jan 2020 09:41:39 -0800 (PST) X-Received: by 2002:a7b:c242:: with SMTP id b2mr342140wmj.19.1580319699007; Wed, 29 Jan 2020 09:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580319699; cv=none; d=google.com; s=arc-20160816; b=iFB+63uZrYn0idWR6Wl+/r1sBA16w7IjGazGmZotvf9TryQB/xI+Vi7OnswcE163kI 4dJRbWLima/pD5NR9Miknp3o1/0vaxZoFiyUrrgsy4mGJBo1EwfUjLaOhMKeC28niFrr U2GtWJvSNQfYx7Dtz70U2jXSP35azbX6afXIwg1r77TP3CKFDht2J9DDMjK3rp2T2I2I vDQUyMMJgDqQZTbv3554q8q1fdzz1P9mVrJN4e56/f8XoaO0SDKSXbbn3n6t0XqFMwnA WV1dB+7LFfUNALH57+HA4AvY//9Mu0/WGn1Gv105ly/QNjKP+pk2JUv7A2YE4H7BeW0s C5yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9kAl4Qhd8SlXZrHqf1+wkiHbXFZvF9Uu6EBBmPsZjyU=; b=gFDd0iBaJYPztyxA8exSq6kugUc/uiF2peCZ5A5DseVBQMGvMKLaSQ0YOTuN7MMs8V 5hgPaIjDvaflKyUGroCyY25m8F8lZtRHZsX9i+COMhQemNYTiQbGI9ywOAE2UhhbHe4x LJdc8cG5fs2FwQv8nf44cQKHEDlXx7/qjs8JfErj4Rsy9i0CKQSApsXTNmONlrd+lgWn Qlvu+/Dwj4/A/j3omMYsU+/9j8ytblXpDQ49N4//yl3YKiSRFxy/xsJvGzFwGAd4yyNA 8BoPO/XFCzX4QmLFsQN6S+kCUmUFoqZK2kDYLXwem2CRBb0ZRAlanRad1pH/7naILqq6 DX4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iKyqMiaz; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x10sor1605595wmk.7.2020.01.29.09.41.38 for (Google Transport Security); Wed, 29 Jan 2020 09:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iKyqMiaz; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9kAl4Qhd8SlXZrHqf1+wkiHbXFZvF9Uu6EBBmPsZjyU=; b=iKyqMiazKxY8LgeeQZvoDjPHLpVOCvkwCCauD76FcOMwDO4Ckf3jxlFnuUWNT+sCU1 RqEdyzHQKIA6r3V9NWtTvMteXKqnXltRY+/6sxEdAN4aqARoaralIgdS1JUcbYveYV7k VA3JZu3U6hFNxcMly3UQyAqMznYJuna5SZaR0mG8tSr4RTeTGLW8W1TW0gwEI9xpCwve 5hANNtz5kluXms9TPu6FN9gEuxZschWqUbOlxswdTkY7QL31weKtam17jfoikqu8Kcaf FopxNXdOWbofyen4mlkEZbnnxkboZdQoSVNHPb5GLgKzDc5+eyNotQoIO8oS2xqQC8un x8Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9kAl4Qhd8SlXZrHqf1+wkiHbXFZvF9Uu6EBBmPsZjyU=; b=IdHzIiK8+/utmljq8Ly6kux1BD2Ywr+R5tsYxBrQ9o+z+iAtlnQp4Me7iGuGnhqGJE lpRF/9/DoyZ1HWBb7oojrYPizJGVMYmZuZojaEt/WmhVM2m9ynmz7jaNXnjPCL8BDu0o bm2QZ+3/PNyEfESU2q+vHLmH0GfpT9HhQEK4q75RY9QnFQcSxLFbOeWjO33f8idoNty9 15ZLbNoWY/opAw3T0G9zA8jomp7wa7k7KiVetm5dn+1sxp4CHfRSYwhQV5MIdJeDDXJm T56PlX1H6itiBlmQ550OkuqSimVscs2WFuZ/1ZuHKaku/9SWQOWakO31Rds3WttcgX5x xjFw== X-Gm-Message-State: APjAAAXfG27VYHF7WX4/tt8xQ/qwvXy2Aj7q/bXyjnHhn+YBQyankhK/ WViNQfvW116SfSWJpwMgAkcg8lUE X-Google-Smtp-Source: APXvYqwpvLaj2ug+FeQxUyeolHYYSfJvLARfo/MgWGfbQLS1qRSSKXC8vKjIzXkTiG5723dOYzO38g== X-Received: by 2002:a1c:3906:: with SMTP id g6mr366703wma.49.1580319698643; Wed, 29 Jan 2020 09:41:38 -0800 (PST) Return-Path: Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id y185sm3231525wmg.2.2020.01.29.09.41.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2020 09:41:38 -0800 (PST) From: Peter Griffin To: meta-arm@lists.yoctoproject.org, denis@denix.org, jon.mason@arm.com, raj.khem@gmail.com, nicolas.dechesne@linaro.org Cc: joakim.bech@linaro.org, moorthy.baskaravenkatraman-sambamoorthy@linaro.org, alexandre.jutras@linaro.org, Peter Griffin Subject: [PATCH 1/5] optee-client.bb: add optee client recipe and patches Date: Wed, 29 Jan 2020 17:38:41 +0000 Message-Id: <1580319525-32054-2-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> References: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> This has moved from meta-linaro to meta-arm as this is the new place for general recipes for Arm arch and has a mailing list for external contributors. Signed-off-by: Peter Griffin --- meta-arm/recipes-security/optee/optee-client.bb | 35 ++++++++++++++++++++++ .../optee/optee-client/tee-supplicant.service | 10 +++++++ 2 files changed, 45 insertions(+) create mode 100644 meta-arm/recipes-security/optee/optee-client.bb create mode 100644 meta-arm/recipes-security/optee/optee-client/tee-supplicant.service -- 2.7.4 diff --git a/meta-arm/recipes-security/optee/optee-client.bb b/meta-arm/recipes-security/optee/optee-client.bb new file mode 100644 index 0000000..519683a --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-client.bb @@ -0,0 +1,35 @@ +SUMMARY = "OPTEE Client" +HOMEPAGE = "https://github.com/OP-TEE/optee_client" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=69663ab153298557a59c67a60a743e5b" + +PV = "3.7.0+git${SRCPV}" + +inherit python3native systemd + +SRC_URI = "git://github.com/OP-TEE/optee_client.git \ + file://tee-supplicant.service" +S = "${WORKDIR}/git" + +SRCREV = "bc0ec8ce1e4dc5ae23f4737ef659338b7cd408fe" + +SYSTEMD_SERVICE_${PN} = "tee-supplicant.service" + +do_install() { + oe_runmake install + + install -D -p -m0755 ${S}/out/export/usr/sbin/tee-supplicant ${D}${sbindir}/tee-supplicant + + install -D -p -m0644 ${S}/out/export/usr/lib/libteec.so.1.0 ${D}${libdir}/libteec.so.1.0 + ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so + ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so.1 + + cp -a ${S}/out/export/usr/include ${D}/usr/ + + sed -i -e s:/etc:${sysconfdir}:g \ + -e s:/usr/bin:${bindir}:g \ + ${WORKDIR}/tee-supplicant.service + + install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service +} diff --git a/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service b/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service new file mode 100644 index 0000000..ffb54d3 --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service @@ -0,0 +1,10 @@ +[Unit] +Description=TEE Supplicant + +[Service] +User=root +EnvironmentFile=-/etc/default/tee-supplicant +ExecStart=/usr/sbin/tee-supplicant $OPTARGS + +[Install] +WantedBy=basic.target From patchwork Wed Jan 29 17:38:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 183001 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp891498ile; Wed, 29 Jan 2020 09:41:41 -0800 (PST) X-Received: by 2002:a5d:4d06:: with SMTP id z6mr36766286wrt.339.1580319701388; Wed, 29 Jan 2020 09:41:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580319701; cv=none; d=google.com; s=arc-20160816; b=a4/EC7v4zWwJqaTTyP69Jg/3BvJjqvQsi4zQW62GcADyZxlfQouQ9S3yjDDz80tJsa wtEAqNihw46G4fXQS+ZFwq5OqW+wOTKZSF6+waNTa9UmSwWJSKImJ4uDrm1RiME7OQ/0 hDdjIS1OcNsXl9Ghfj27HPj8do2D4MAD+OO7zaPEPH1Fa0g6Y6fpqZxSjQJKl+tIJg9E jPrZeo2v2MtPJhv92sFsC/LqYDDSI3WQimXhPGbSlil15B7FvnVSC+tm+DwUt5QFcHjU yhSZNPoRTJUsBmRxyUdQC03OA0A6TtZToaKENHOQM14+3/ZSqAiavSM3L1Yi/QuijDhX 1qvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2gcStzD0f5T0WrzotQhNNLnYgjIS2cQtSioQGjjk4hk=; b=OlpYPncuPPP0pJ/WKG5zoDWDKjDzKkOptzcr3Z2GNpwwpCLS6B0vOXG0/ju8f2FE08 8tU2Q9BK/t/4sWY/zGI/S8ftzA69RPaB5+K9MNEHcEyxjTQKl1G4TDQsPePFEysti8Zl xB3up5wwKZNq3RL3r3ioWyCzdeDGJ96YdRg+Cf9QFpqZNXq6f45lP4Ji3k/J4+ksmINf 17x4n6zI2k/EzC8ET4i6NzpoJAAhTTkDpeYPxVHvpm6dAUZSAK9ExC9jeH70hamxZUIv 8fhYywn+P+/zFM3WWpj+UCcyFovZWzdnxJeg5P6craGwZdPx4lw5dPTFrXEuudwiEM99 t/yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zesdVu3/"; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id v129sor1713079wma.1.2020.01.29.09.41.41 for (Google Transport Security); Wed, 29 Jan 2020 09:41:41 -0800 (PST) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zesdVu3/"; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2gcStzD0f5T0WrzotQhNNLnYgjIS2cQtSioQGjjk4hk=; b=zesdVu3/Xg7Qpv+eSeK6SjOiJ8GTEw9cMH/cTRkJ9shNSWbPbXmMJ5h49mtMCdUMRE LZ9qGUetYgQFlgjEx9BSfLpHCo4rKmJEAZI0VhL7qKh4miOrFr69CYkfEsCPEEW6p32T y07U4EAX+/GGs+YkhrK3aiSKSfRJEWcTJ8Yx1JAMDyeyRtj7NpHg3COZOKt2l4vVnlfN ZOF08h4EZhUQQ35AU4/cPhHGtW4ePo7L8KJcuXhKqGzFLMmWjzsTfRNVCKXAiu6hzTV3 KF5xK51bjL+TmqefJ1HDlSqq8IIgrjuvQIe5EXN1F2hwAzhnJTKZcZfz/z+tdHeDO0l4 5syQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2gcStzD0f5T0WrzotQhNNLnYgjIS2cQtSioQGjjk4hk=; b=UIPK/wIFmyMl8OARpVtW3Yc5XZ9oF1EJRefa7eRr0Aqvr0i1/P97UWDjyOWYHfhSV5 +d2mmK0d1JDhGxJvR9LoNVRZ/uZ8uq3ytQf75guY+yDbVcqhKeLeGCTArI/D0gi0Pxw4 NflExz+2HIczNt24xo6jIABk+nKAFWHH3XXHUkPqp7CdMtkw53tYRjbIkbM/JLD3tjJV z4OYFyoPpMQYLNF9EREQgh+KIztTpNiYazf7s6tIfryGtUAW3xsRmfBGcC/ZuGAYJmVc q0AeWp72YyiNmPx6FRXAfs+vqsqNehGWv6pQIsjlhWkYUh2yjlaLbx8N83AugHeiDf1e z0yg== X-Gm-Message-State: APjAAAXq3PmxelVWrkb2id5dJrhsCYJTY+1oJAsBvLh3pc8DK3AqANzI wZwO28f/Oy77Qv97V2CeHg0EvzYWRgwC1Q== X-Google-Smtp-Source: APXvYqxMX/eL3H4JBJAOAagNov89p1v2MJ6wRzIECAc2A410PvznYed2FP/GeEYknNNZkdeYGLS10w== X-Received: by 2002:a05:600c:294:: with SMTP id 20mr341195wmk.135.1580319701011; Wed, 29 Jan 2020 09:41:41 -0800 (PST) Return-Path: Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id y185sm3231525wmg.2.2020.01.29.09.41.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2020 09:41:40 -0800 (PST) From: Peter Griffin To: meta-arm@lists.yoctoproject.org, denis@denix.org, jon.mason@arm.com, raj.khem@gmail.com, nicolas.dechesne@linaro.org Cc: joakim.bech@linaro.org, moorthy.baskaravenkatraman-sambamoorthy@linaro.org, alexandre.jutras@linaro.org, Peter Griffin Subject: [PATCH 2/5] optee-os_git.bb: add optee-os recipe and patches Date: Wed, 29 Jan 2020 17:38:42 +0000 Message-Id: <1580319525-32054-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> References: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> This has moved from meta-linaro to meta-arm as this is the new place for general recipes for Arm arch and has a mailing list for external contributors. Signed-off-by: Peter Griffin --- ...1-allow-setting-sysroot-for-libgcc-lookup.patch | 13 ++++ meta-arm/recipes-security/optee/optee-os_git.bb | 69 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 meta-arm/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch create mode 100644 meta-arm/recipes-security/optee/optee-os_git.bb -- 2.7.4 diff --git a/meta-arm/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch b/meta-arm/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch new file mode 100644 index 0000000..17127d0 --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch @@ -0,0 +1,13 @@ +diff --git a/mk/gcc.mk b/mk/gcc.mk +index fc38c4d..77b8d74 100644 +--- a/mk/gcc.mk ++++ b/mk/gcc.mk +@@ -12,7 +12,7 @@ nostdinc$(sm) := -nostdinc -isystem $(shell $(CC$(sm)) \ + -print-file-name=include 2> /dev/null) + + # Get location of libgcc from gcc +-libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) $(comp-cflags$(sm)) \ ++libgcc$(sm) := $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) $(comp-cflags$(sm)) \ + -print-libgcc-file-name 2> /dev/null) + + # Define these to something to discover accidental use diff --git a/meta-arm/recipes-security/optee/optee-os_git.bb b/meta-arm/recipes-security/optee/optee-os_git.bb new file mode 100644 index 0000000..872fd48 --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-os_git.bb @@ -0,0 +1,69 @@ +SUMMARY = "OP-TEE Trusted OS" +DESCRIPTION = "OPTEE OS" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173" + +PV="3.7.0+git${SRCPV}" + +inherit deploy python3native + +DEPENDS = "python3-pycrypto-native python3-pyelftools-native" + +SRCREV = "a2fa5018cb595a9cd9ab62e82c7485ca57a62084" +SRC_URI = "git://github.com/OP-TEE/optee_os.git \ + file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ + " + +S = "${WORKDIR}/git" + +OPTEEMACHINE ?= "${MACHINE}" +OPTEEOUTPUTMACHINE ?= "${MACHINE}" + +EXTRA_OEMAKE = "PLATFORM=${OPTEEMACHINE} CFG_ARM64_core=y \ + CROSS_COMPILE_core=${HOST_PREFIX} \ + CROSS_COMPILE_ta_arm64=${HOST_PREFIX} \ + NOWERROR=1 \ + ta-targets=ta_arm64 \ + LDFLAGS= \ + LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \ + " + +OPTEE_ARCH_armv7a = "arm32" +OPTEE_ARCH_aarch64 = "arm64" + +do_compile() { + unset LDFLAGS + oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 +} + +do_install() { + #install core on boot directory + install -d ${D}${nonarch_base_libdir}/firmware/ + + install -m 644 ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/core/*.bin ${D}${nonarch_base_libdir}/firmware/ + #install TA devkit + install -d ${D}/usr/include/optee/export-user_ta/ + + for f in ${B}/out/arm-plat-${OPTEEOUTPUTMACHINE}/export-ta_${OPTEE_ARCH}/* ; do + cp -aR $f ${D}/usr/include/optee/export-user_ta/ + done +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +do_deploy() { + install -d ${DEPLOYDIR}/optee + for f in ${D}${nonarch_base_libdir}/firmware/*; do + install -m 644 $f ${DEPLOYDIR}/optee/ + done +} + +addtask deploy before do_build after do_install + +FILES_${PN} = "${nonarch_base_libdir}/firmware/" +FILES_${PN}-dev = "/usr/include/optee" + +INSANE_SKIP_${PN}-dev = "staticdev" + +INHIBIT_PACKAGE_STRIP = "1" From patchwork Wed Jan 29 17:38:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 183002 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp891535ile; Wed, 29 Jan 2020 09:41:43 -0800 (PST) X-Received: by 2002:a7b:c1d0:: with SMTP id a16mr316772wmj.175.1580319703430; Wed, 29 Jan 2020 09:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580319703; cv=none; d=google.com; s=arc-20160816; b=u+MSBtaOeSDppEGy/eeBgWzimuvWQyRwYIzV20CzzK8J/N7g4TXB0CnuYbDLqSerlY HzTbLapSuXMPMh+49rt2Cn0Y9nQKsIladsoK5VUXtlrvXLa3Ml0pnnw4vQhpw8lcPwcA zhxXi5TnNKtoHvMRlWmMRcwbDJz3wUrlw0DqMRG0Mltfzype+Tqo+ugrcGIM5GViwHFm c7XYxP6DNQBTEGODKT0C5blNIb73ztr9Vv2M8iFS3qQpq1RVw2AImltJUpvVJ4kD1EbL NTTME+4TjrFKJY2tEIL9FDmMp2NuyzmoT5zbker28b42jVjst/j4TUakGpck6tjLzn15 mgKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GPZmbZxwW9FEBObuoY6FcbS7wfVUvZr6MMmrJxAdOv8=; b=xsk13/E99IGhFRrXxLhxS42zaJ685GlWC/CnMW89gGENKeSP1GThGLvBySbFrsUI/L cnTfNLdSn4fTJ3jgyZw2xguQgFdx/iO1RfjJ9zvMG2rRT8Mrjfn/QG31ovckTX0xg1kL 9rPbWM4kJ2UL5J2++hHFS3qaxdFtgk46x6Mfe37TP46m6mPpToEcYfUrjxw4/SfEEJMW zpOOeXkqA2XhA/3eO5lkfzKR4dYj6/qhiMBMDA/b4m9qIyPW1JWmEk1H52U/+b/F86G/ QVMuTAwmRqDK7lcLRlT5IFbmosCWm0yECIFosgXPUP++jPJAUjMicr/vwEHnCM3RTaWC DtYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W1vhf84H; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f12sor1643132wrx.22.2020.01.29.09.41.43 for (Google Transport Security); Wed, 29 Jan 2020 09:41:43 -0800 (PST) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W1vhf84H; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GPZmbZxwW9FEBObuoY6FcbS7wfVUvZr6MMmrJxAdOv8=; b=W1vhf84Hv1lN3MUHf62pP5iy4iyIRLgt5oarHfByXgzmSD3fCbKw/wdAnKkzPgfc90 QZBxAx9SJ3NHC3QmV4tZ7+DUUgPXFKxEBb44QylsA2X1CYxVt+H93Ydh214noZATef28 O3P9nFz3h9Xx/r2g9fA03tjgyX7FUBiHp3Tgscr2cAoOROzwOVskccb0AdKUraC8h4Ge NWvBoGo5gHqSigj09J+7PLFz72L7xqpYXQH2T6KsArwFISzlyGYpdigqVsdyc0fPlOlF hzDs6FIJPqeRlfNtKiKejHn7kMCiVwPE4XwmZA3qWz5JYRiiLdJyTtbHl7q41RtENf+i fxbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GPZmbZxwW9FEBObuoY6FcbS7wfVUvZr6MMmrJxAdOv8=; b=EkKiz5Ey0n8VQt6FAgdi0jU/vt7+aAis2JyCERruCRTW34q1npS3Q9Sjye7/qlLV1j 9jog7nyqJwIqxH8gHa0mG1AoNb3O2NNBG21kMA0Od7PytXGTxw1djQZeiU91CXxMO2b7 QWysviUk3LmyBoeWOcjNClSD9VUoNpudbHJBbVi7bg9GNI9pAIqVqe96FrHzyMza3XH2 /bHcsQIZWr16uLJQxWbeRq08r+LmMNmRT9dU89Vum++zdYMHQHihzs7sohaLJQ+NY4cg gOSQk6qaikG2hpXhpWVkXT+lKxvkUuzcZkbMAxZgdFu/l3abM5p5RB4NIq5XK2HlNqb5 6S7A== X-Gm-Message-State: APjAAAWgGKEQlCbdtI4T6pvyZNZELzvPYHX/1yqqsqstI11sPv+1DLgo bln7Au4724nJkjt3FVbWeb+S3V3a X-Google-Smtp-Source: APXvYqz4CbqU0JQVNCaxeyuwUyr0dnVTZqNo8i69Z9UdGtV/Gilmz/67wkNeOIqnfq5yfzDoqZ1kHQ== X-Received: by 2002:a5d:4d4a:: with SMTP id a10mr38461630wru.220.1580319703124; Wed, 29 Jan 2020 09:41:43 -0800 (PST) Return-Path: Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id y185sm3231525wmg.2.2020.01.29.09.41.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2020 09:41:42 -0800 (PST) From: Peter Griffin To: meta-arm@lists.yoctoproject.org, denis@denix.org, jon.mason@arm.com, raj.khem@gmail.com, nicolas.dechesne@linaro.org Cc: joakim.bech@linaro.org, moorthy.baskaravenkatraman-sambamoorthy@linaro.org, alexandre.jutras@linaro.org, Peter Griffin Subject: [PATCH 3/5] optee-examples.bb: add recipe for optee examples Date: Wed, 29 Jan 2020 17:38:43 +0000 Message-Id: <1580319525-32054-4-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> References: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> This has moved from meta-linaro to meta-arm as this is the new place for general recipes for Arm arch and has a mailing list for external contributors. Signed-off-by: Peter Griffin --- meta-arm/recipes-security/optee/optee-examples.bb | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meta-arm/recipes-security/optee/optee-examples.bb -- 2.7.4 diff --git a/meta-arm/recipes-security/optee/optee-examples.bb b/meta-arm/recipes-security/optee/optee-examples.bb new file mode 100644 index 0000000..aaec4c4 --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-examples.bb @@ -0,0 +1,42 @@ +SUMMARY = "OP-TEE examples" +HOMEPAGE = "https://github.com/linaro-swg/optee_examples" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=cd95ab417e23b94f381dafc453d70c30" + +DEPENDS = "optee-client optee-os python-pycrypto-native" + +inherit python3native + +SRC_URI = "git://github.com/linaro-swg/optee_examples.git" +SRCREV = "559b2141c16bf0f57ccd72f60e4deb84fc2a05b0" + +S = "${WORKDIR}/git" + +OPTEE_CLIENT_EXPORT = "${STAGING_DIR_HOST}${prefix}" +TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}" +TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta" + +EXTRA_OEMAKE = " TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ + OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \ + TEEC_EXPORT=${TEEC_EXPORT} \ + HOST_CROSS_COMPILE=${TARGET_PREFIX} \ + TA_CROSS_COMPILE=${TARGET_PREFIX} \ + V=1 \ + " + +do_compile() { + oe_runmake +} + +do_install () { + mkdir -p ${D}${nonarch_base_libdir}/optee_armtz + mkdir -p ${D}${bindir} + install -D -p -m0755 ${S}/out/ca/* ${D}${bindir} + install -D -p -m0444 ${S}/out/ta/* ${D}${nonarch_base_libdir}/optee_armtz +} + +FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/" + +# Imports machine specific configs from staging to build +PACKAGE_ARCH = "${MACHINE_ARCH}" From patchwork Wed Jan 29 17:38:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 183003 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp891574ile; Wed, 29 Jan 2020 09:41:45 -0800 (PST) X-Received: by 2002:a5d:4d8d:: with SMTP id b13mr36726032wru.6.1580319705102; Wed, 29 Jan 2020 09:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580319705; cv=none; d=google.com; s=arc-20160816; b=E/j+56BfKHlrmYSuWAPxseWkLwuE7mPxPn415QbEMDyCJVaQ5Y3ygCkJuqn95XP+gY 10mMrzZmhC+1SVmPIetl4QGLQjMG7L2nL2SheeytVi6v+WD+cchj1tkSXPjEAOq3E/2G dG1SXWxleKxjEZ9STFmyurwvF+of2hSGpEelaNrN4p2S2oXuS96+4gTJSuoh20B9jBuV 1HPZUJYkrUZ+hti0BKhpLoLwJi2wNuAYpM5HzuQb3cPYm6taGLmnjo+43IcOVJt1FedR 1bNTZovoP72oGkwoSo6iLlJ/oHf4XNDhOxvowmHR9CKR4JlYgTUM+Fb8hYEZuexUMlSC eyVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/io/RG3JIPW6rtZUQZbPiBq7j/bT436LBlnSyADBb3A=; b=Io/hce0V3SohcIFhX3VXsD2fyN9rb6V+m5G1rbBkxt/uv67wVtzG9MOmnW1JLJyEpB jgHSRUaeQ4Cy4Lw6GpeIg4nuFeORZa7hArVGZdJVw4rh4CYdykt5w2OZFJMl46iyv9/6 BTvSarH7tmnOOB+UX6hD5/iIbrJ38bO438jARJWtlM/1Hx4z6gkFc6uJze2EeC0lHTKI HCDLbwROtZNvKyYwklXbXLtdcHiW7MTe3n3UZtDke974yXmTEc+czOHtqs7olpEih9IE suqb/v5CAxquegFIqGhJpgKNOR6OF716IOH1OwV/Z8AKXBIKrHxdys+6hIVoBmxL7SbC Sd9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QQ4U1Fz3; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id e17sor1561172wrs.4.2020.01.29.09.41.44 for (Google Transport Security); Wed, 29 Jan 2020 09:41:45 -0800 (PST) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QQ4U1Fz3; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/io/RG3JIPW6rtZUQZbPiBq7j/bT436LBlnSyADBb3A=; b=QQ4U1Fz3Xe5qHfVa7Xnpqs/LI6XPxm0Fjr0iTCBlmwg+2bR2dr5X8Sdap43Tn8RNMp Rd/SwWQyDfBfJwTmkBzk/cgbeTxp3RYlNMomuYFKjCbaCuxjzWXULl9MpqAMdf3ynB0C sVcZQhN2gzbL9dcH4v3nsG+ORXzHErXMg4fvlt7svl7hkZ3qYLGhSWKyg3010qxSi9zt ByouZD/cqfympfeHb0qEth73fIxMWreyql23D7mT3fjD2lGXRg7ilIsCC51iSumoue1w xPsOVcRNT+5Xl/ke2tQ27yFqTCDuqmxm7nuuQJxAo4/EEmhsBmY4hCigAYIyy8p78Izv nfUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/io/RG3JIPW6rtZUQZbPiBq7j/bT436LBlnSyADBb3A=; b=qUJovYAyK2sl8p9kCKVeph/Z+fZY2LAu+AwECReaHRwDZcc2pa5XGAS12rCXAN+yGz zuXs1OHt479qv271J67ZA2OIkuu+l0tEGtvMXIMN+nHQmad9FjX9i8spfA/1YdKwRHZJ dEuK429zi2UWxJnT77scb+RfZ/qj3IePWkD6NgYWn+zIfmHz8ZNg1QfLp6DbVF0Op2Qa XizIYiDi7CoW+V460jBkcJSAMobTN/sct+3cHVyJz+tqmUkoXPZESwTjuzTQpdShnjWZ vxrbUe4NSJd3/en23zcuhhJZiHMuxTtg13oY6ZM2zDESRMhOsx6LijOawinaLpqi2q5u JJnw== X-Gm-Message-State: APjAAAUErGBzouAnw0dQiu69Bd15xLFSDlIAW+sulQPeefaexH57sHTP 5gqMxw8G0d0NNFoJyGoVvTyNx0bbhdqrsQ== X-Google-Smtp-Source: APXvYqymruyIbVPclt+It/5G4XUKRGz4oNDxbLslA0jDy4/LsHDLRlRlgYVLMPRaDCkPH1u+0CcQLw== X-Received: by 2002:adf:dfc2:: with SMTP id q2mr38583496wrn.251.1580319704728; Wed, 29 Jan 2020 09:41:44 -0800 (PST) Return-Path: Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id y185sm3231525wmg.2.2020.01.29.09.41.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2020 09:41:44 -0800 (PST) From: Peter Griffin To: meta-arm@lists.yoctoproject.org, denis@denix.org, jon.mason@arm.com, raj.khem@gmail.com, nicolas.dechesne@linaro.org Cc: joakim.bech@linaro.org, moorthy.baskaravenkatraman-sambamoorthy@linaro.org, alexandre.jutras@linaro.org, Peter Griffin Subject: [PATCH 4/5] optee-test_git.bb: add optee-test recipe & patches Date: Wed, 29 Jan 2020 17:38:44 +0000 Message-Id: <1580319525-32054-5-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> References: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> This has moved from meta-linaro to meta-arm as this is the new place for general recipes for Arm arch and has a mailing list for external contributors. Signed-off-by: Peter Griffin --- .../0001-use-python3-instead-of-python.patch | 48 +++++++++++++++++++++ meta-arm/recipes-security/optee/optee-test_git.bb | 49 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 meta-arm/recipes-security/optee/optee-test/0001-use-python3-instead-of-python.patch create mode 100644 meta-arm/recipes-security/optee/optee-test_git.bb -- 2.7.4 diff --git a/meta-arm/recipes-security/optee/optee-test/0001-use-python3-instead-of-python.patch b/meta-arm/recipes-security/optee/optee-test/0001-use-python3-instead-of-python.patch new file mode 100644 index 0000000..20f190a --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-test/0001-use-python3-instead-of-python.patch @@ -0,0 +1,48 @@ +From 6271160639002a2580d80b75b5397a96d56329f2 Mon Sep 17 00:00:00 2001 +From: Scott Branden +Date: Fri, 27 Dec 2019 12:54:28 -0800 +Subject: [PATCH] use python3 instead of python + +use python3 instead of python as python2 is EOL January 2020. + +Signed-off-by: Scott Branden +Reviewed-by: Jerome Forissier +Tested-by: Jerome Forissier (QEMU, CFG_GCM_NIST_VECTORS=y) +Upstream-Status: Backport from v3.8.0 +--- + scripts/file_to_c.py | 4 ++-- + scripts/rsp_to_gcm_test.py | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/file_to_c.py b/scripts/file_to_c.py +index ae16f52..b4ce2a2 100755 +--- a/scripts/file_to_c.py ++++ b/scripts/file_to_c.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # SPDX-License-Identifier: BSD-2-Clause + # + # Copyright (c) 2018, Linaro Limited +@@ -29,7 +29,7 @@ def main(): + + f.write("const uint8_t " + args.name + "[] = {\n") + i = 0 +- for x in array.array("B", inf.read()): ++ for x in array.array("B", map(ord, (inf.read()))): + f.write("0x" + '{0:02x}'.format(x) + ",") + i = i + 1 + if i % 8 == 0: +diff --git a/scripts/rsp_to_gcm_test.py b/scripts/rsp_to_gcm_test.py +index 0543541..e4418be 100755 +--- a/scripts/rsp_to_gcm_test.py ++++ b/scripts/rsp_to_gcm_test.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + modes = {'encrypt': 0, 'decrypt': 1} + +-- +2.7.4 + diff --git a/meta-arm/recipes-security/optee/optee-test_git.bb b/meta-arm/recipes-security/optee/optee-test_git.bb new file mode 100644 index 0000000..a6fae9d --- /dev/null +++ b/meta-arm/recipes-security/optee/optee-test_git.bb @@ -0,0 +1,49 @@ +SUMMARY = "OP-TEE sanity testsuite" +HOMEPAGE = "https://github.com/OP-TEE/optee_test" + +LICENSE = "BSD & GPLv2" +LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" + +inherit python3native + +DEPENDS = "optee-client optee-os python3-pycrypto-native" + +PV = "3.7.0+git${SRCPV}" + +SRC_URI = "git://github.com/OP-TEE/optee_test.git \ + " +S = "${WORKDIR}/git" + +SRCREV = "227d6f4c40eaa6f84fe049b9e48c7b27ad7fab08" + +OPTEE_CLIENT_EXPORT = "${STAGING_DIR_HOST}${prefix}" +TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}" +TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta" + +EXTRA_OEMAKE = " TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ + OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \ + TEEC_EXPORT=${TEEC_EXPORT} \ + CROSS_COMPILE_HOST=${TARGET_PREFIX} \ + CROSS_COMPILE_TA=${TARGET_PREFIX} \ + V=1 \ + " + +do_compile() { + # Top level makefile doesn't seem to handle parallel make gracefully + oe_runmake xtest + oe_runmake ta +} + +do_install () { + install -D -p -m0755 ${S}/out/xtest/xtest ${D}${bindir}/xtest + + # install path should match the value set in optee-client/tee-supplicant + # default TEEC_LOAD_PATH is /lib + mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ + install -D -p -m0444 ${S}/out/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ +} + +FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/" + +# Imports machine specific configs from staging to build +PACKAGE_ARCH = "${MACHINE_ARCH}" From patchwork Wed Jan 29 17:38:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 183004 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp891603ile; Wed, 29 Jan 2020 09:41:46 -0800 (PST) X-Received: by 2002:a05:600c:34b:: with SMTP id u11mr342347wmd.69.1580319706584; Wed, 29 Jan 2020 09:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580319706; cv=none; d=google.com; s=arc-20160816; b=RQiq40/bFByypCvL9dFmFnHZchPozXR4C4o4XwlP3DS7FwztJJPOMZW6oaf6MeF2Em /9T0AuvTvNMqLDbXdE1AyyJtp7JjYyP58+ehsYJUJtE/iyhLo7tA6PY8O3E6/aRsg2QP aEISBd5kthJYGuL3W25TPw5iVTGES3Y9fnOESw0RD/+cwNarQKL89UUf+ygTxtrxhIWr ashYRch0zZMpNrdxgPtoR4wwoF9DzQMy0fMbwPf67PBj7N7+xZu25WLJ9v64s8jkq1X/ MDlrL6FWCHFonQ3ZNKhAsVkjSEI7rVyawkc4PVp8L8qdwPUVahvypCLtwMoM3FQF41aO H3rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8OXlMAGPVAGZRnfXMhXzylYdLHjQjYBKcjMQsPHlB+c=; b=HXJU3AaipzN3XjaWhUdeKIox29/f12pTftP0cLjZ/gFKcaFZ6zYUiRKUYPTssWr4jU aqMPO/tvr2N3FrMpk9SU4OY7iuMbQQ3uzqfyRXLpodWzF8nTBsxCuhZkHhrLQH1BdK8O dOpf7TED72q4cw6MRPFvgO7VGtkk2v05KyqTJxmx+t9o9uI8T2XEPuk3QIyPzh24jmmw BtcQfBMJdkSFJ3JSo+AdlxWeuUesNrk/JkOIXDjr62ulPxXWcHlgTq7wsL8OrnXGAODP oBpetB0m7EWDVvkO/pWPQOglUDSkD6luoo7Jt84rv9HWuYNzoxWN7W53B4lDQMXqBN/+ jbsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wez5XFVh; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b7sor1534144wro.19.2020.01.29.09.41.46 for (Google Transport Security); Wed, 29 Jan 2020 09:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wez5XFVh; spf=pass (google.com: domain of peter.griffin@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=peter.griffin@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8OXlMAGPVAGZRnfXMhXzylYdLHjQjYBKcjMQsPHlB+c=; b=Wez5XFVhRbA2SNFY4lmpwbmNVy6FceO/HYfxfQ5F8HQeWMx6N0MTXPu4OMEyp+hTMK ue7hPGLZ1e7Ccl5NJl/wlGIbZdwPoYzLJhZuhZDwJs6WyazvG4z2FJVXbguDQnlx77Mu NcgIOvjeTcTm5+hploZhPmVbWCB2TCdHDNHFjJ53ThBMjid71CBASUf6FQzHZDqpHncm +YuS/hIgdZFceisUVs+c4ihm3DlSFHPNpT6iS1LY1unWK65Mxqbdunl7tnFc2tbGzpts FIzrN904VkkdSGpk15H3jjCVMIcU2RLa1btolNgGIE3k3NUHyFsbe6utbX5k0ptq0GI/ EvgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8OXlMAGPVAGZRnfXMhXzylYdLHjQjYBKcjMQsPHlB+c=; b=GsXamYoXVxSsAKQ2veCoP2zqZrQaeqiZ2OIZ/wwtq9kWycmvLbDSTZmJdcZ46RQHSE d94Q7khAWGQHwlbDnhNnsiTsNgPAWbjLuW5842+nH1ZQ3IZIM3fwDBsn4NnxCtAZAAP2 6LUX1rjxjuEfKXRUEO0ogYGTow+PTa4bBenUhwULCxd1mENKgC6L0t0dmdyo2Hm0HWoO 7npnd0cqxGeh7RG3CxtoJlNr0GfRGwe46pbSDXY6mqJCBbWus8NWTMvgFgjsYB4kuqkw +bqCrih4bBZC8bK38r+NIyryuN/2w4Tgmcn30jAN9kEp8HFyWSt2znayagxNaFhnAjE3 mQ9w== X-Gm-Message-State: APjAAAW+sOw9j18JOnOU9rGmlgHt8lt3tE5qy2YzeHlIyufpYn+TbdB2 6yy16mMyBwFoEEE0z6+H+PODA07s X-Google-Smtp-Source: APXvYqwEs2bVYubMt8CopQVjuBpsJQPGUUTxV3eHOWENb7gSJZc2hYw6XQHSPux02ak7gt3UlF/8VQ== X-Received: by 2002:adf:e6c5:: with SMTP id y5mr38870906wrm.210.1580319706282; Wed, 29 Jan 2020 09:41:46 -0800 (PST) Return-Path: Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id y185sm3231525wmg.2.2020.01.29.09.41.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jan 2020 09:41:45 -0800 (PST) From: Peter Griffin To: meta-arm@lists.yoctoproject.org, denis@denix.org, jon.mason@arm.com, raj.khem@gmail.com, nicolas.dechesne@linaro.org Cc: joakim.bech@linaro.org, moorthy.baskaravenkatraman-sambamoorthy@linaro.org, alexandre.jutras@linaro.org, Peter Griffin Subject: [PATCH 5/5] optee-test_git.bb: add python3 backport patch Date: Wed, 29 Jan 2020 17:38:45 +0000 Message-Id: <1580319525-32054-6-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> References: <1580319525-32054-1-git-send-email-peter.griffin@linaro.org> python2 is now EOL. This patch updates to python3 but is a backport from v3.8.0 release. Signed-off-by: Peter Griffin --- meta-arm/recipes-security/optee/optee-test_git.bb | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/meta-arm/recipes-security/optee/optee-test_git.bb b/meta-arm/recipes-security/optee/optee-test_git.bb index a6fae9d..3f431c3 100644 --- a/meta-arm/recipes-security/optee/optee-test_git.bb +++ b/meta-arm/recipes-security/optee/optee-test_git.bb @@ -11,6 +11,7 @@ DEPENDS = "optee-client optee-os python3-pycrypto-native" PV = "3.7.0+git${SRCPV}" SRC_URI = "git://github.com/OP-TEE/optee_test.git \ + file://0001-use-python3-instead-of-python.patch \ " S = "${WORKDIR}/git"