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}"