From patchwork Fri Nov 23 18:10:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 1002499 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ROoRofVh"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 431krg6yWTz9s0t for ; Sat, 24 Nov 2018 05:10:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B357876D7; Fri, 23 Nov 2018 18:10:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1d3moS-1Sulp; Fri, 23 Nov 2018 18:10:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id AFF2A876DA; Fri, 23 Nov 2018 18:10:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A37FB1BF4D5 for ; Fri, 23 Nov 2018 18:10:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A013B888D6 for ; Fri, 23 Nov 2018 18:10:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tsb49fb8D5Y5 for ; Fri, 23 Nov 2018 18:10:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id 26A4788828 for ; Fri, 23 Nov 2018 18:10:52 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id k198so12798411wmd.3 for ; Fri, 23 Nov 2018 10:10:52 -0800 (PST) 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=RnWgXhUIIGnc/OrP1KkZ7jWh34YRoB4/dylvByWnZQ8=; b=ROoRofVhMvBLDj6w4/uV5C77q9RUMXbC5UAaK8x0hIKqzPbe9jHbBAaiJAYYOqPx7o T9ssTZkukjW0svUZMeoqXz3jeb4GvY3t3VwC+rSYIO4Okv3KDgk1nO/ETJLiyGzn2P0j kNIdKs+4mKAF2bA32QihND+RVbO01dlOv6LXA= 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=RnWgXhUIIGnc/OrP1KkZ7jWh34YRoB4/dylvByWnZQ8=; b=ukuF8tOx7a5zOtxZ4vw8bZ49WJqUlVMpm+V77ZZ+HlxDW6Of0yLubbCqBrS+SXib9g lb6XSqYf0aCf5di0m0FJp2aaoTvqWlY1BPwgSBm8i3JD3fKotvFdsC1dH99A/ksVk5NZ W38O2jKsDb/BKRXgXj1ncPQFiIOhtcpBWJ3IbVWohUrdMwrq9Aok/r9D9N/oLSXCSZo5 wSBESJnVxnBoYLtlHf0UquUlQsGyz6K/CBmFpIvxjip9nusa9vFm/zcacKtV/y+30MSY mbkztpMHQ3jWkVL6DyAXyFTzOoInrJSbp4JugoRaQGKokcjpQaLeABUomQmpERNnrQCF dbbw== X-Gm-Message-State: AA+aEWaBjiPwMp36IyEtkZ0zddkW7RMA03mfU3gLGAc5Ei5DA4H23iqN NN0sgYDdASvL+n1I0M/Or13p8AamVDY= X-Google-Smtp-Source: AFSGD/XPckOsHZ3zy/8Rkv2mpsz04GAjHj2f6HPF5oeitFGVaMN329KVCNVndxfkEE/8JW+EipMsjg== X-Received: by 2002:a1c:cf82:: with SMTP id f124mr7578541wmg.95.1542996650448; Fri, 23 Nov 2018 10:10:50 -0800 (PST) Received: from lmenx29q.home (anantes-657-1-2-18.w81-50.abo.wanadoo.fr. [81.50.65.18]) by smtp.gmail.com with ESMTPSA id a1sm31284528wrw.76.2018.11.23.10.10.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Nov 2018 10:10:49 -0800 (PST) From: Etienne Carriere To: buildroot@buildroot.org Date: Fri, 23 Nov 2018 19:10:44 +0100 Message-Id: <1542996644-5221-1-git-send-email-etienne.carriere@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1542900177-17343-3-git-send-email-etienne.carriere@linaro.org> References: <1542900177-17343-3-git-send-email-etienne.carriere@linaro.org> Subject: [Buildroot] [PATCH v2 3/5] optee-benchmark: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Etienne Carriere MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" OP-TEE performance benchmark tools for the OP-TEE project. This packages generates embedded Linux based OS materials used to retrieve execution timing information on invocation of the OP-TEE secure services. It is added next to the OP-TEE client package in BR configuration. Signed-off-by: Etienne Carriere --- Changes v1 -> v2: - Add dependency on OP-TEE client. - Add option BR2_PACKAGE_OPTEE_BENCHMARK_SYNCED_VERSION to ensure OP-TEE benchmark version is synced with OP-TEE client version. - Remove useless OPTEE_BENCHMARK_INSTALL_STAGING and OPTEE_BENCHMARK_INSTALL_IMAGES. - Remove unused BR2_PACKAGE_OPTEE_BENCHMARK_GIT_REFERENCE. - Remove useless _INSTALL_STAGING/_INSTALL_IMAGES=YES. --- package/Config.in | 1 + package/optee-benchmark/Config.in | 69 ++++++++++++++++++++++++++++ package/optee-benchmark/optee-benchmark.hash | 2 + package/optee-benchmark/optee-benchmark.mk | 22 +++++++++ 4 files changed, 94 insertions(+) create mode 100644 package/optee-benchmark/Config.in create mode 100644 package/optee-benchmark/optee-benchmark.hash create mode 100644 package/optee-benchmark/optee-benchmark.mk diff --git a/package/Config.in b/package/Config.in index 8c3b1bf..38200af 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2047,6 +2047,7 @@ endmenu menu "Security" source "package/checkpolicy/Config.in" + source "package/optee-benchmark/Config.in" source "package/optee-client/Config.in" source "package/paxtest/Config.in" source "package/policycoreutils/Config.in" diff --git a/package/optee-benchmark/Config.in b/package/optee-benchmark/Config.in new file mode 100644 index 0000000..2d56a7e --- /dev/null +++ b/package/optee-benchmark/Config.in @@ -0,0 +1,69 @@ +config BR2_PACKAGE_OPTEE_BENCHMARK + bool "Embed OP-TEE benchmark support" + select BR2_PACKAGE_OPTEE_CLIENT + select BR2_PACKAGE_LIBYAML + help + Enable the OP-TEE benchmark package that brings facilities + for profiling traversal and execution timings when + invoking OP-TEE. OP-TEE benchmark is a component delivered + by the OP-TEE project. + + http://github.com/linaro-swg/optee_benchmark + +if BR2_PACKAGE_OPTEE_BENCHMARK + +choice + prompt "OP-TEE Benchmark version" + default BR2_PACKAGE_OPTEE_BENCHMARK_LATEST + help + Select the version of OP-TEE benchmark you want to use + +config BR2_PACKAGE_OPTEE_BENCHMARK_LATEST + bool "sync with latest release tag" + help + Sync on latest release tag. This currently fetches the + latest registered release tag from the OP-TEE official + Git repository. + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + bool "sync with a specific Git" + help + Sync with a specific OP-TEE Git repository. + +endchoice + +config BR2_PACKAGE_OPTEE_BENCHMARK_SYNCED_VERSION + bool "use same version ref for OP-TEE components" + depends on BR2_PACKAGE_OPTEE_BENCHMARK_LATEST + default true + help + When enabled package version must match the version set for + OP-TEE client. + +config BR2_PACKAGE_OPTEE_BENCHMARK_VERSION + string + default BR2_PACKAGE_OPTEE_CLIENT_VERSION \ + if BR2_PACKAGE_OPTEE_BENCHMARK_SYNCED_VERSION + default "3.3.0" if BR2_PACKAGE_OPTEE_BENCHMARK_LATEST + default BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_VERSION \ + if BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + help + Reference in the target Git repository to sync with. + +if BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_URL + string "Git repository site" + help + Specific location of the reference source tree Git repository. + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_VERSION + string "target reference to pull in the Git repository" + help + Package version reference to sync with. As source file + reference is a Git repository, the version reference can be + any Git reference as a tag or a sha1. + +endif + +endif #BR2_PACKAGE_OPTEE_BENCHMARK diff --git a/package/optee-benchmark/optee-benchmark.hash b/package/optee-benchmark/optee-benchmark.hash new file mode 100644 index 0000000..d93c26c --- /dev/null +++ b/package/optee-benchmark/optee-benchmark.hash @@ -0,0 +1,2 @@ +# From https://github.com/linaro-swg/optee_benchmark/archive/3.3.0.tar.gz +sha256 bfba3749ac8b37628550696f0625452ae8aef060eff5b3b1c4283a5dad8a3383 optee-benchmark-3.3.0.tar.gz diff --git a/package/optee-benchmark/optee-benchmark.mk b/package/optee-benchmark/optee-benchmark.mk new file mode 100644 index 0000000..8eef0f6 --- /dev/null +++ b/package/optee-benchmark/optee-benchmark.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# optee-benchmarch +# +################################################################################ + +OPTEE_BENCHMARK_VERSION = $(call qstrip,$(BR2_PACKAGE_OPTEE_BENCHMARK_VERSION)) +OPTEE_BENCHMARK_LICENSE = BSD-2-Clause + +OPTEE_BENCHMARK_DEPENDENCIES = optee-client libyaml + +ifeq ($(BR2_PACKAGE_OPTEE_BENCHMARK_LATEST),y) +OPTEE_BENCHMARK_SITE = $(call github,linaro-swg,optee_benchmark,$(OPTEE_BENCHMARK_VERSION)) +endif + +ifeq ($(BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT),y) +OPTEE_BENCHMARK_SITE = $(call qstrip,$(BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_URL)) +OPTEE_BENCHMARK_SITE_METHOD = git +BR_NO_CHECK_HASH_FOR += $(OPTEE_BENCHMARK_SOURCE) +endif + +$(eval $(cmake-package))