From patchwork Wed Sep 9 13:05:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9554 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7FFB2BDB1E for ; Wed, 9 Sep 2020 13:06:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7B7CF62D53; Wed, 9 Sep 2020 15:06:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JXDI+IMV"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2A13462B90 for ; Wed, 9 Sep 2020 15:06:05 +0200 (CEST) Received: from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BC3EBA15; Wed, 9 Sep 2020 15:06:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1599656764; bh=cptv2qY2C+utz9f8wPg1t7W9f4Gv4rFCv9s0RZMXoWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JXDI+IMVPhZxoYTtvmavO6wNJi3jYkcXhfNO8UDoiv3wt6u2QM9XzgmW+i6gi0/H1 BWOCaU+AamYQXN9ofOh+LWQOh2zfPkV32aHbqRGOLu5ShRSP6/q1c4l63PzLEQsUgv yI3cWSeczsbunVyfqAe3YbhA5aAPN5nR701ZZVAk= From: Kieran Bingham To: libcamera devel Date: Wed, 9 Sep 2020 14:05:59 +0100 Message-Id: <20200909130559.1122914-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200909130559.1122914-1-kieran.bingham@ideasonboard.com> References: <20200909130559.1122914-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/3] libcamera: ipa: Move key generation to utils X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Move the GPLv2 utilities used for generating public and private keys to the utilities subtree. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- The ipa-sign and installation scripts are more complex to move and can be handled separately if this series is deemed worthwhile. --- src/libcamera/meson.build | 1 - src/meson.build | 1 - {src/ipa => utils}/gen-ipa-priv-key.sh | 0 {src/libcamera => utils}/gen-ipa-pub-key.py | 0 utils/meson.build | 6 ++++++ 5 files changed, 6 insertions(+), 2 deletions(-) rename {src/ipa => utils}/gen-ipa-priv-key.sh (100%) rename {src/libcamera => utils}/gen-ipa-pub-key.py (100%) diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index d54ee979418b..61bed7f64e7e 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -100,7 +100,6 @@ version_cpp = vcs_tag(command : [gen_version, meson.build_root()], libcamera_sources += version_cpp if ipa_sign_module - gen_ipa_pub_key = files('gen-ipa-pub-key.py') ipa_pub_key_cpp = custom_target('ipa_pub_key_cpp', input : [ ipa_priv_key, 'ipa_pub_key.cpp.in' ], output : 'ipa_pub_key.cpp', diff --git a/src/meson.build b/src/meson.build index d69b4c1ea978..2ed4fb640284 100644 --- a/src/meson.build +++ b/src/meson.build @@ -6,7 +6,6 @@ endif openssl = find_program('openssl', required : true) if openssl.found() - ipa_gen_priv_key = files('ipa/gen-ipa-priv-key.sh') ipa_priv_key = custom_target('ipa-priv-key', output : [ 'ipa-priv-key.pem' ], command : [ ipa_gen_priv_key, '@OUTPUT@' ]) diff --git a/src/ipa/gen-ipa-priv-key.sh b/utils/gen-ipa-priv-key.sh similarity index 100% rename from src/ipa/gen-ipa-priv-key.sh rename to utils/gen-ipa-priv-key.sh diff --git a/src/libcamera/gen-ipa-pub-key.py b/utils/gen-ipa-pub-key.py similarity index 100% rename from src/libcamera/gen-ipa-pub-key.py rename to utils/gen-ipa-pub-key.py diff --git a/utils/meson.build b/utils/meson.build index 7689790eb1c1..a069e1ca9f79 100644 --- a/utils/meson.build +++ b/utils/meson.build @@ -10,3 +10,9 @@ gen_formats = files('gen-formats.py') ## Generates libcamera.h gen_header = files('gen-header.sh') + +## Generates ipa-priv-key.pem +ipa_gen_priv_key = files('gen-ipa-priv-key.sh') + +## Generates ipa_pub_key.cpp +gen_ipa_pub_key = files('gen-ipa-pub-key.py')