From patchwork Wed Jan 30 10:47:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Carriere X-Patchwork-Id: 1033419 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.138; helo=whitealder.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="ZTfuAYiZ"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43qKpC4jSQz9s9G for ; Wed, 30 Jan 2019 21:48:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B79378712E; Wed, 30 Jan 2019 10:48:01 +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 bx5nJVuZp9Uw; Wed, 30 Jan 2019 10:47:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D1B3187139; Wed, 30 Jan 2019 10:47:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BB87A1BF398 for ; Wed, 30 Jan 2019 10:47:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B8F17862D4 for ; Wed, 30 Jan 2019 10:47:46 +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 u5r3KD5J6xf0 for ; Wed, 30 Jan 2019 10:47:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A6BA9862C9 for ; Wed, 30 Jan 2019 10:47:45 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id p6so21009418wmc.1 for ; Wed, 30 Jan 2019 02:47:45 -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=oK7UqfGRmHV3OcAnZOayzC/glBjq21dZrrYXoM2hhQ8=; b=ZTfuAYiZy3BuI4jBI5+ggS+QZQG/uVBC6tn1+HThMPPmsP1TxCQGb/gYlc4whh2vGH CIa8mQhmrAMQMXm+FFBgSeal5Qrp2DcdekZh/S/JCIvXUfkJ92m7QyPdDI+YK10BMqC3 EloIWA/9fKPtOW6mZ4iZivRIb8uZaeelx0GNA= 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=oK7UqfGRmHV3OcAnZOayzC/glBjq21dZrrYXoM2hhQ8=; b=jF+y/Dzhun0otq46Ylze+yckTxPCE3NGDj7sGf31I/Sz4w0cufgs0oKN9os7wmUU3j VoLmUDE3frHZc/I1pamHJ/n5f3mnh6NAKpvnkrJclahVK6dz72QuJ/Hq/KyBS56y3j2Q Br3hRFZgRE61GlRsdi6H5u6b7VqMENJ2IPYEuquAEcEyctQo0APsdufUA7r16dqAcyK3 ToWilOfVGipyN7KvSY+cZRwFwRFvxgsbU8TaHKkOhd/zpSW0sClMblgQjWTg28rFDDhe ZDi49EESsKJ8+vlYavLAUlE20THgYPQpUqboQA+a4K8HG2CwknL6RY8hC4axPeRQza6P Y1qQ== X-Gm-Message-State: AJcUukeIXG9NzDK7rjvmHhVvyDbIKc9Ue3fBIoPPGp6nGCCTVohotij3 PF7WsvUqd9AEFPYGUH0nsrKBwoqgYZOS8Q== X-Google-Smtp-Source: AHgI3IY2y7NeqfLaE1QvKsiUxzr69gQUKfEuOU1t0KCwd1x3pMsDqCyZL/LSNKZKE8nqCeY4uuKMew== X-Received: by 2002:a1c:c282:: with SMTP id s124mr14120981wmf.105.1548845263699; Wed, 30 Jan 2019 02:47:43 -0800 (PST) Received: from lmenx29q.lme.st.com. ([80.214.16.251]) by smtp.gmail.com with ESMTPSA id a62sm1145340wmf.47.2019.01.30.02.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jan 2019 02:47:43 -0800 (PST) From: Etienne Carriere To: buildroot@buildroot.org Date: Wed, 30 Jan 2019 11:47:27 +0100 Message-Id: <1548845249-28201-5-git-send-email-etienne.carriere@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548845249-28201-1-git-send-email-etienne.carriere@linaro.org> References: <1548845249-28201-1-git-send-email-etienne.carriere@linaro.org> Subject: [Buildroot] [PATCH v4 5/7] 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. This change references in Buildroot the today's latest OP-TEE revision release tagged 3.4.0. Signed-off-by: Etienne Carriere --- Changes v3 -> v4: - Upgrade from OP-TEE release 3.3.0 to 3.4.0. No local patch required. Changes v2 -> v3: - Add an entry in file DEVELOPERS. - Clean Config.in layout and description sections. - Drop BR2_PACKAGE_OPTEE_BENCHMARK_SYNCED_VERSION. - Clean optee-benchmark.mk layout. - Replace common optee-benchmark.hash with per-version .hash files. - Add a patch on 3.3.0 to fix an issue reported through GCC warns. 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. --- DEVELOPERS | 1 + package/Config.in | 1 + package/optee-benchmark/3.4.0/optee-benchmark.hash | 2 + package/optee-benchmark/Config.in | 55 ++++++++++++++++++++++ package/optee-benchmark/optee-benchmark.mk | 22 +++++++++ 5 files changed, 81 insertions(+) create mode 100644 package/optee-benchmark/3.4.0/optee-benchmark.hash create mode 100644 package/optee-benchmark/Config.in create mode 100644 package/optee-benchmark/optee-benchmark.mk diff --git a/DEVELOPERS b/DEVELOPERS index f572224..ef359c9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -683,6 +683,7 @@ F: package/szip/ N: Etienne Carriere F: boot/optee-os/ +F: package/optee-benchmark/ F: package/optee-client/ F: package/optee-examples/ F: package/optee-test/ diff --git a/package/Config.in b/package/Config.in index fb71fe7..c9b1178 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2077,6 +2077,7 @@ endmenu menu "Security" source "package/checkpolicy/Config.in" + source "package/optee-benchmark/Config.in" source "package/optee-client/Config.in" source "package/optee-examples/Config.in" source "package/optee-test/Config.in" diff --git a/package/optee-benchmark/3.4.0/optee-benchmark.hash b/package/optee-benchmark/3.4.0/optee-benchmark.hash new file mode 100644 index 0000000..c3c41b6 --- /dev/null +++ b/package/optee-benchmark/3.4.0/optee-benchmark.hash @@ -0,0 +1,2 @@ +# From https://github.com/linaro-swg/optee_benchmark/archive/3.4.0.tar.gz +sha256 e5e868a06a9dcc8cc444b3e72c65f57670b0811091be62edbe0d03d13c75e716 optee-benchmark-3.4.0.tar.gz diff --git a/package/optee-benchmark/Config.in b/package/optee-benchmark/Config.in new file mode 100644 index 0000000..b3a598e --- /dev/null +++ b/package/optee-benchmark/Config.in @@ -0,0 +1,55 @@ +config BR2_PACKAGE_OPTEE_BENCHMARK + bool "optee-benchmark" + 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 "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 "3.4.0" + help + This fetches the registered release tag from the + OP-TEE official Git repository. + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + bool "Custom Git repository" + help + Sync with a specific OP-TEE Git repository. + +endchoice + +if BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_URL + string "URL of custom repository" + help + Specific location of the reference source tree Git repository. + +config BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_VERSION + string "Custom repository version" + help + Revision to use in the typical format used by + Git E.G. a sha id, a tag, branch, .. + +endif + +config BR2_PACKAGE_OPTEE_BENCHMARK_VERSION + string + default "3.4.0" if BR2_PACKAGE_OPTEE_BENCHMARK_LATEST + default BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_REPO_VERSION \ + if BR2_PACKAGE_OPTEE_BENCHMARK_CUSTOM_GIT + +endif #BR2_PACKAGE_OPTEE_BENCHMARK 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))