From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Mon, 1 Mar 2021 00:48:09 +0100 Message-Id: <20210228234809.5294-2-rhi@pengutronix.de> In-Reply-To: <20210228234809.5294-1-rhi@pengutronix.de> References: <20210228234809.5294-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/2] rauc: be more verbose why the check for legacy keyring fails List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber Instead of relying on users to grep in the PTXdist source code for this line, tell them directly what is checked here. Also fix a typo in the previous-to-last line. Signed-off-by: Roland Hieber --- rules/rauc.make | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules/rauc.make b/rules/rauc.make index 66c967d44b83..08df6336a7cd 100644 --- a/rules/rauc.make +++ b/rules/rauc.make @@ -50,8 +50,10 @@ RAUC_CONF_OPT := \ $(STATEDIR)/rauc.prepare: @$(call targetinfo) - @test ! -e "$(call ptx/in-platformconfigdir, config/rauc/rauc.key.pem)" || \ - ptxd_bailout "Please use the signing provider infrastructure desribed in:" \ + @keyfile="$(call ptx/in-platformconfigdir, config/rauc/rauc.key.pem)"; \ + test ! -e "$${keyfile}" || \ + ptxd_bailout "Legacy RAUC keyring exists at $${keyfile}!" \ + "Please use the signing provider infrastructure instead, as described in:" \ "https://www.ptxdist.org/doc/dev_code_signing.html" @$(call world/prepare, RAUC) @$(call touch) -- 2.29.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de