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