From patchwork Wed Jul 10 07:10:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 168784 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp9572328ilk; Wed, 10 Jul 2019 00:11:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0Pld2V7MMKsjEELr6Ep4gVq/pGwwz7o6FweXc7gowhGr1ers4G4xGrDwEiBORGRAHu0FB X-Received: by 2002:a17:902:aa95:: with SMTP id d21mr35697089plr.185.1562742691962; Wed, 10 Jul 2019 00:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562742691; cv=none; d=google.com; s=arc-20160816; b=ea30QJ5TvOH+4G+zW4uYhNyYDdJ/AfPgA7IycPq/EgfD+uZq2jcfqDDJRfnkfQeCJs QdjcYasHj0jURjREBCkinLfTFNo2ygz3e9rfy3Y5Ot9JNga2Cuf6U6eqM/S614eEbaIp pMfkQvEAy/BP20H1kPaZEz2oiAjSZMDl9zkBjcI2ETBTb9S2FiccFRR2u2MOwBttn+Qe 6x64si/alsA/PUz3RFuXLbuLtn6GlOmh9SyBOL+M9SDSG62iRKcESjqboyYVkJkoBmDX 8leYF6t7zw2937fq79i2z8liwkQpwC/R/0s202f3bRcdc0Go7e+uqkqm4M4fapV39Psr k0/w== 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:message-id:date:to:from:dkim-signature :delivered-to; bh=URmlrpyRwprMKxuk267gUQF7BjPCZu7KzYt1E3O0yh0=; b=uAoNe2vsWick585dh9BhJNf8lqyk95mIaQhLyiwhisI36oukyQOvVi3owoviu4U5UP eVG/z/iRXEfMvTgrQdKQ5AEu0MhrHu8lONp/d77GYLxJp+0HV15dqWaivuQ9ZaRyp/HR kZwZf/VtU3o4VYAqCnCsIoOcyrfZOnvqbcTMwuvl9/PNR22vQDxMtf2kHvEV43d10Rqp YlGZ6GSNWax/Bv4Q7NDPb49yH5JhrsDtjM4da+bmbZXBYA7/pgCUly3EZR1SElvuPkP4 s2BHLDImV0XP+r/hdflNxrWgiw5LdYgB0FrygTCL+ZiG28DOY0MDnNTHUEy9mtxXXPKX hXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DfhY4U++; 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 u18si1343950plq.311.2019.07.10.00.11.31; Wed, 10 Jul 2019 00:11:31 -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=DfhY4U++; 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 7BBAA7EDE0; Wed, 10 Jul 2019 07:11:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mail.openembedded.org (Postfix) with ESMTP id 78E717EDE0 for ; Wed, 10 Jul 2019 07:11:25 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id x4so1192947wrt.6 for ; Wed, 10 Jul 2019 00:11:26 -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; bh=+QgXJWX/zYFbqiIVCOZi9SKxs10DTiOxapCGTKpyPEc=; b=DfhY4U++9EXblLsuqVeKA8NEdAMdlqlDVqiwNvnv9RZ6eRtfj6Kc/fRkKTgCwTNYWI 042op66MRxp670monli0C8sIKMg+No80J6R/sYg+KBpr7qREOcXi+RRX9KtHDpSGnhc9 jQGxuxov0j4p5haLKf2tUBnZ03XEvJcrn+n+YKRgLyLaCOcQlw/1OhNN8WsI5MNrGP4P 06WTBRXR8LZX4RvzH2VDJb9ldGG3UveB1uK0Zzx/SEuvnaw62cIVEPZMvoTLDkHf9EWw P4MBn4Noa8wINdEEGqxWkv9jHOve34G+CzICBBFk1ceDkH5zGg5QlpHSl2gOO4gkDxmj dohA== 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; bh=+QgXJWX/zYFbqiIVCOZi9SKxs10DTiOxapCGTKpyPEc=; b=JX3BVhREuHTKjqkAZec08OaJtGugrIF/vHQ6m8EsKxPGU/6zt7c8Yw5UlmrhFGRHIg Ek9meW2ZQvlST4NTsKwPB6+e4Wl+Hg9+dZcAaEuEfUziE8I0rugnQmjLASq6ReQrKplC Aw6z2PzA95LdkswoRWGc0ytlnn09zJbZNhHykfi9+ljxJl1SITbBjGgSuFS1GTaeJVEt hGlBZPe7A45Wg+KLmhe3GXHpguai61xhpN2N9OKlHbtq9+brboFGm8ZUy4TNz0vnkE80 m8Z1u67w8+b+PFTVvbjiIr5zFJUvZmrMge9WMXNAPB6Cjr85Ix3sF7UBF05hucCsf1mT HnDw== X-Gm-Message-State: APjAAAUObs2OZ3zF9rdWLLS1YwY2AQIKO9V6l4X8U1RtHN2gtGM7vNV7 iQWT9k+SIOxnMUUnGGctn3uwXw== X-Received: by 2002:a5d:53c1:: with SMTP id a1mr29964299wrw.185.1562742686241; Wed, 10 Jul 2019 00:11:26 -0700 (PDT) Received: from localhost.localdomain (li1816-253.members.linode.com. [172.104.240.253]) by smtp.gmail.com with ESMTPSA id o11sm1204515wmh.37.2019.07.10.00.11.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jul 2019 00:11:25 -0700 (PDT) From: Jun Nie To: richard.purdie@linuxfoundation.org, liezhi.yang@windriver.com, andreas.obergschwandtner@skidata.com, openembedded-core@lists.openembedded.org Date: Wed, 10 Jul 2019 15:10:56 +0800 Message-Id: <1562742656-23568-1-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [OE-core] [PATCH] 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 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 --- 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