From patchwork Mon Sep 30 04:47:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174712 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6651166ill; Sun, 29 Sep 2019 21:54:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDbDxmKVpUIxwbHYdHMjUiovsIi754K51vAaHsn9ayp4r71gEuEPfDUjJS0eVJBWanRIo9 X-Received: by 2002:a17:90a:bf0e:: with SMTP id c14mr23649881pjs.69.1569819251298; Sun, 29 Sep 2019 21:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569819251; cv=none; d=google.com; s=arc-20160816; b=GI4DHO5h0q4Y1xu5OdlX/OhlmD+L332HbWKcdK18K1kNNGCVGi9iBYbsKLN6iLkImG ZVmtjyIw7F1JIoi6meNakv6Q1TM8pJ6FFB7r2oaMtERr46g4PXstACHCGd7CBp0+AOD3 1EkPVWXDdrj6wdkcybHCMOJEVkmBWjfUxsPgzaayYv1lZ51m9SfdRk912o2vqojgzRu/ oPW9Xs0FRscddRwjGV4yDc0j8HAsV5cOPlHRNiKSAMOK+bu4ulesXfP0ZvZyi5e9hk9n cmkRMRtZlE5ye8/IdZlzLGJY1QAwD8ylaBGKoLMaPbApvvvqgZh/LCnqZNOwU9rJfn2N ny3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=OFBObqdMbV/XFlLFcFr9vYYEN40ueg+9f4T5zERyw0k=; b=UWSEtudS9NT0k5eHD5ESEfNs8bH4Zd09vzd+Y1nZbxUbRBvTF6yy2o2R6CQ5c3Q2le Pcfo2gT4P/52sHtverRBgtkE4LnGKxZ4eR/gWdPZr8xwCnHk4OJT9qulJLFzR2i6nIVP NXBzMgC367dTXPtt1sEy+zw3LHckOhZ03l6s637yHyCnl8Xz1Dc5qcx/sUkvNi9Qz2TC xoXaL0d0UFSibNXJ9P5xNfjKbetIcVcP5g2I+yOMBI+ds9MtIchFHdTup4KyzZ/CQEK9 miyzIuz6aQ5wfL17oJ7+6Rv7ZX2JrDNSM+o8CkW+/kzaWQ/yo26kSSiqrSfaoHTM0L+t x7ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=UAk70bC2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t1si2408203ply.267.2019.09.29.21.54.11; Sun, 29 Sep 2019 21:54:11 -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=@gmail.com header.s=20161025 header.b=UAk70bC2; 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=QUARANTINE dis=NONE) header.from=gmail.com 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 E11B07F4A8; Mon, 30 Sep 2019 04:49:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id F38DC6C0F4 for ; Mon, 30 Sep 2019 04:48:36 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id b128so4877562pfa.1 for ; Sun, 29 Sep 2019 21:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=sRFkFtQNu/c9RuPbZQKQ20iMl/cNy+QCK9j3pq4pBWs=; b=UAk70bC2HGcdzMyIaY1698ptkCaDvfWhN+wdbjYl+FxWXRrmSstceKDP0YfQIBZSrH lijfO1jfA6Oth/rpd0YTRKsbCjxy8+XsBEgb8TjNMxf1lu8SRXcp/uQrsPr3Jga1KcRP CP9S/N6v2miQ74dNBHTQHEhGbYy/noOuKpBHknyHzKMRka4AtzVwZ4sHw8LpOjytZjcp qdmy6CmLHryR9pjMd0aGjeI4qaZgY6HAs8msRnwf4+nCT+LNf3mc0TlgDQLO3GZQOznQ C5/jiSlr6LCJLyajd5LAS/FiRvZliVCfNoyk4Vhh/Oiqwv+CZphENtFGG4LH2a1WhnIU AsAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=sRFkFtQNu/c9RuPbZQKQ20iMl/cNy+QCK9j3pq4pBWs=; b=H+K79ILOsU55YlGa7OmcGddohThaO+FbTz4FV+rDuGwWtHtHyD/8cF66voLWZt5BYJ jVkFZcDmVY1a1+LT/Gq0964x413PZKbV3qpLjSS9zdw3Aik9TSXmpAkbj4RRf5q32xvf MFNsAbml/74Y9Gx0RHIubYrpzUItsUKSWHMaISgAAysYx0MQ8e0H3zRaUbgqArpYrkks NfQKXSM5J/C+FwLc74A0twpYEYoJFiNZgPdE9pcRe4sEYlOeXqLcN8WFuSGyqstkeYkO FlE+MsUD+QOG+EAYyILcUIwJ+oD2+MxyiJMObeteFTiMDUwO60d8zHpLEXAzk6L0V3zY lOqg== X-Gm-Message-State: APjAAAWcxEWmaN+brl+mnvLbDUfQGsevtG6Rp2ikGoydsxOdkKQR65p7 VS0xv+WiJGSKp9wHYrPUFyNfaQfXNAI= X-Received: by 2002:a63:5007:: with SMTP id e7mr21209151pgb.2.1569818917801; Sun, 29 Sep 2019 21:48:37 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id h15sm18888493pgn.76.2019.09.29.21.48.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 21:48:37 -0700 (PDT) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Sun, 29 Sep 2019 21:47:38 -0700 Message-Id: <6b4c4fbaef8b4655efbc542fb7b97081dbaed8ce.1569818533.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [warrior-next 43/54] kernel-fitimage: uboot-sign: fix missing signature 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Jun Nie u-boot.bin with dtb & signature should be placed in ${B} so that it can be deployed by u-boot as expected. Otherwise, the version without signature is installed. Signed-off-by: Jun Nie Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- meta/classes/uboot-sign.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass index 8beafff..1fc2a37 100644 --- a/meta/classes/uboot-sign.bbclass +++ b/meta/classes/uboot-sign.bbclass @@ -66,7 +66,7 @@ concat_dtb_helper() { install ${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} elif [ -e "${DEPLOYDIR}/${UBOOT_NODTB_IMAGE}" -a -e "$deployed_uboot_dtb_binary" ]; then cd ${DEPLOYDIR} - cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${UBOOT_BINARY} > ${UBOOT_IMAGE} + cat ${UBOOT_NODTB_IMAGE} $deployed_uboot_dtb_binary | tee ${B}/${CONFIG_B_PATH}/${UBOOT_BINARY} > ${UBOOT_IMAGE} else bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available." fi @@ -77,10 +77,12 @@ concat_dtb() { mkdir -p ${DEPLOYDIR} if [ -n "${UBOOT_CONFIG}" ]; then for config in ${UBOOT_MACHINE}; do + CONFIG_B_PATH="${config}" cd ${B}/${config} concat_dtb_helper done else + CONFIG_B_PATH="" cd ${B} concat_dtb_helper fi