From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 58093E00D42; Fri, 27 Oct 2017 02:10:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 561 seconds by postgrey-1.32 at yocto-www; Fri, 27 Oct 2017 02:10:24 PDT Received: from dent.vctlabs.com (net-cf9a4187.iis.impulse.net [207.154.65.135]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 475E8E00D40 for ; Fri, 27 Oct 2017 02:10:24 -0700 (PDT) Received: by dent.vctlabs.com (Postfix, from userid 1000) id 9B470280479; Fri, 27 Oct 2017 02:03:32 -0700 (PDT) Date: Fri, 27 Oct 2017 02:03:32 -0700 From: "S. Lockwood-Childs" To: meta-freescale@yoctoproject.org Message-ID: <20171027090332.GV1001@vctlabs.com> MIME-Version: 1.0 User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [PATCH] image_types_fsl.bbclass: make sdcard compatible with fitImage X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 09:10:26 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Fixes error along the lines of ERROR: imx-blah.dtb does not exist. The sdcard image format was assuming all applicable devicetree files would be available in the deploy area. This is not the case for fitImage kernel format, which packs both the kernel and all enabled devicetree files into a single file. Treat fitImage as an exception, skipping separate install of dtb files since they get installed as part of the kernel file instead. Signed-off-by: S. Lockwood-Childs --- classes/image_types_fsl.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 4709af9..cde1af7 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass @@ -97,7 +97,7 @@ _generate_boot_image() { done # Copy device tree file - if test -n "${KERNEL_DEVICETREE}"; then + if [ -n "${KERNEL_DEVICETREE}" -a ${KERNEL_IMAGETYPE} != fitImage ]; then for DTS_FILE in ${KERNEL_DEVICETREE}; do DTS_BASE_NAME=`basename ${DTS_FILE} .dtb` if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then -- 1.9.4