From patchwork Fri Oct 11 08:16:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 175923 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp428819ill; Fri, 11 Oct 2019 01:16:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhYELQSE+P5chqqOOoodM7h1i8gH8BExcLOgU3MdEAK0LcOSe94LWy9vNZrbx/+2MEOoZ1 X-Received: by 2002:a17:90a:778a:: with SMTP id v10mr15476301pjk.26.1570781818283; Fri, 11 Oct 2019 01:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570781818; cv=none; d=google.com; s=arc-20160816; b=zK6rx5pEHTKa6aQBFsESJD6muNW+ygMTMANCgwnyu81oAsbITKBST7kpBLX9nSF44k 4VO/bnMfTXHevgB0WZf3S7Wwx8S4mUFvmCL0RNmKKjRvHoMOZlXAZkiujqUidEm4EyVf 0cdvxTT9vHIvtV7tRyyJscKUxxjNKxKuDR+JNbK3fw1aODir8jShZbdwjgTtcOcoYZnC ETExzftMfTqAfmbdwp7aQ8t3NU964EizVnK16FEGGpJJe/q6mTx6JaioZASNbfCcy4j+ fg5W3R4yAVzW1XCRnQfUHG5FILsnYVfsMEcru3LT4/pYQpDnOuZwlUv/+vaTutIXvxvS 07HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=/KevykHW/61dtIwX33yGWpTrAL3bwd0uu/bPSwu7bw4=; b=qGttHX4d1EdDn5kN6lh/PqDfP8Td9T+TEVmF0l2ljSV9Le4rW17U3ROebHn8BHyTSa 0jpT/KSIpvYfUHW66AbGLejGOO9327W4dZT0nr7GIEaQu4+9ioWFke2sxQUtlhcxNCQ3 p9+djfzZDF2IJTkVpIvUF6iDFuaDyk1hGCdrre1Hrf+7y26N7crRVvaLg445LWTvYjVi yTJtbVgDBnym90BosrMCnlTfBSCpw9RbqM3lP+2/1Yk18vLaaOImSLS7wkFcFgo5l1sv uhzydGAL/qFK55X6ZvT+1xcqbfC80li7XIcfJkS4jsSfSHEJwMZMzo1Q/93s6QsuOk2Z y1oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DMOFryqa; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p89si8036249pjp.21.2019.10.11.01.16.57; Fri, 11 Oct 2019 01:16:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DMOFryqa; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 13E447F512; Fri, 11 Oct 2019 08:16:56 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id D80476BC19 for ; Fri, 11 Oct 2019 08:16:53 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 5so9460810wmg.0 for ; Fri, 11 Oct 2019 01:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Iict8K2aWiAw2pk1YK3/BzAGI8M/IAhg9mM2exQVhf8=; b=DMOFryqaBTDjWezvlupkb67RLmjfe54FG8R/zWMSVnm6wCqYX8Vv9ly4XxVbUioFY/ o13y4LnZD1jCzs+F1lTxhBBasI+ULi8XgamCluhiq69i70a+QF3ApNn1ygFnDcz/V1qB +lIKc5lHMWo5QKCJsmu2YXoUvfKwdoMw98/aWJu2jMR+b+G2EGU/mFswmvt6rC4dR/aV u39i8FiuSMzA4y6TZYlzeuitTZ6SqtI7K+D4PJQi/33mSLRWlLpOpi4tV6Aj1dtptnyV ljW5IFUvIYY5hR9FoSBqzaRDfxF2kK3EX01L00PkO+Z2ywvoRoKs59k3SgsNJmgWQ+Ww 2CGg== 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:mime-version :content-transfer-encoding; bh=Iict8K2aWiAw2pk1YK3/BzAGI8M/IAhg9mM2exQVhf8=; b=r9M5N1pSBuSzeZIP+uM8pUpyZ5l443kQjq8AIh0DloeuVL5EA1bXtLxeyGY41T0Prn xqTakG/8cRDavatZiMwQzEGz1pZLG1RKEhHZH34fBq/x3LRd223S1u8O+mB3IprcSTvz o97+nbthQIxvifBuPgSF81ZFkHSTaZbBMHcdNuskTuBfdiuRCBqRv3gifXBUA57SnKGi wm2AyFWibUaTLa54jxfRPzbRX5aThYDj6f2yxwhFpe8cK+IfqISK5hQfwAkR2suEa8c/ 9g6qAv2N6uq9RmyVkHT8VtFedyBPjanguoCCNbZ3YWpkUMhqJ2YhLO1gomv9NdKmKwg5 QlCA== X-Gm-Message-State: APjAAAUGNal1nFZJWeGXYaEGUo/7U9X96sxUBwC2A1ijiaaMUuin13AA T82wai88AfGj7ZJD4tg4nvF7bg== X-Received: by 2002:a7b:ce93:: with SMTP id q19mr2120017wmj.11.1570781814375; Fri, 11 Oct 2019 01:16:54 -0700 (PDT) Received: from localhost.localdomain (static.8.26.4.46.clients.your-server.de. [46.4.26.8]) by smtp.gmail.com with ESMTPSA id v6sm1408995wru.72.2019.10.11.01.16.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 01:16:53 -0700 (PDT) From: Nicolas Dechesne To: akuster808@gmail.com, openembedded-core@lists.openembedded.org Date: Fri, 11 Oct 2019 10:16:49 +0200 Message-Id: <20191011081649.18474-1-nicolas.dechesne@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Nicolas Dechesne , Dmitry Eremin-Solenikov Subject: [OE-core] [warrior][PATCH] kernel.bbclass: fix installation of modules signing certificates X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Dmitry Eremin-Solenikov If one has provided external key/certificate for modules signing, Kbuild will skip creating signing_key.pem and will write only signing_key.x509 certificate. Thus we have to check for .x509 file existence rather than .pem one. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Richard Purdie (cherry picked from commit 2527e731eba43bd36d0ea268aca6b03155376134) Signed-off-by: Nicolas Dechesne --- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 111a0b2eeb..fb1f49327c 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -453,7 +453,7 @@ do_shared_workdir () { cp .config $kerneldir/ mkdir -p $kerneldir/include/config cp include/config/kernel.release $kerneldir/include/config/kernel.release - if [ -e certs/signing_key.pem ]; then + if [ -e certs/signing_key.x509 ]; then # The signing_key.* files are stored in the certs/ dir in # newer Linux kernels mkdir -p $kerneldir/certs