From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946714AbdEZDDL (ORCPT ); Thu, 25 May 2017 23:03:11 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33246 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969447AbdEZDC1 (ORCPT ); Thu, 25 May 2017 23:02:27 -0400 From: AKASHI Takahiro To: mcgrof@kernel.org Cc: rusty@rustcorp.com.au, dhowells@redhat.com, ming.lei@canonical.com, seth.forshee@canonical.com, kyle@kernel.org, David.Woodhouse@intel.com, linux-kernel@vger.kernel.org, AKASHI Takahiro , "Luis R . Rodriguez" Subject: [PATCH 2/4] scripts: sign-file: add firmware-signing option Date: Fri, 26 May 2017 12:06:07 +0900 Message-Id: <20170526030609.1414-3-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170526030609.1414-1-takahiro.akashi@linaro.org> References: <20170526030609.1414-1-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This new option (-f) allows us to create a signature file (*.p7s) for firmware binary. Signed-off-by: AKASHI Takahiro Cc: Luis R. Rodriguez --- scripts/sign-file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/sign-file.c b/scripts/sign-file.c index fbd34b8e8f57..211f6531fd7e 100644 --- a/scripts/sign-file.c +++ b/scripts/sign-file.c @@ -242,8 +242,11 @@ int main(int argc, char **argv) #endif do { - opt = getopt(argc, argv, "sdpk"); + opt = getopt(argc, argv, "fsdpk"); switch (opt) { + case 'f': + use_signed_attrs = 0; + sign_only = true; save_sig = true; break; case 's': raw_sig = true; break; case 'p': save_sig = true; break; case 'd': sign_only = true; save_sig = true; break; -- 2.11.1