Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9BC1CE00D9E; Sat, 20 Aug 2016 07:03:49 -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 402 seconds by postgrey-1.32 at yocto-www; Sat, 20 Aug 2016 07:03:47 PDT Received: from mail.analogue-micro.com (mail.analogue-micro.com [217.144.149.242]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 580B4E00944 for ; Sat, 20 Aug 2016 07:03:47 -0700 (PDT) Received: by mail.analogue-micro.com (Postfix, from userid 999) id 6619A68A019; Sat, 20 Aug 2016 14:57:04 +0100 (BST) Received: from zeus.mlbassoc.com (unknown [10.8.0.2]) by mail.analogue-micro.com (Postfix) with ESMTP id 01C2F68A019; Sat, 20 Aug 2016 14:57:04 +0100 (BST) Received: by zeus.mlbassoc.com (Postfix, from userid 1000) id AF708674039F; Sat, 20 Aug 2016 15:57:03 +0200 (CEST) From: Gary Thomas To: meta-freescale@yoctoproject.org Date: Sat, 20 Aug 2016 15:57:01 +0200 Message-Id: <1471701421-12716-1-git-send-email-gary@mlbassoc.com> X-Mailer: git-send-email 2.7.4 Cc: Gary Thomas Subject: [meta-fsl-arm][PATCH] u-boot: Fix out-of-tree builds 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: Sat, 20 Aug 2016 14:03:49 -0000 Recent changes to the main u-boot recipe builds in a separate tree which broke the segment of this code that attempts to find the GIT revision (not in correct directory). This patch adjusts that by forcing the git command to run in the correct location. Signed-off-by: Gary Thomas --- classes/fsl-u-boot-localversion.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass index f7e0971..69a0fd4 100644 --- a/classes/fsl-u-boot-localversion.bbclass +++ b/classes/fsl-u-boot-localversion.bbclass @@ -17,7 +17,7 @@ UBOOT_LOCALVERSION = "${LOCALVERSION}" do_compile_prepend() { if [ "${SCMVERSION}" = "y" ]; then # Add GIT revision to the local version - head=`git rev-parse --verify --short HEAD 2> /dev/null` + head=`cd ${S};git rev-parse --verify --short HEAD 2> /dev/null` printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${S}/.scmversion printf "%s%s%s" "${UBOOT_LOCALVERSION}" +g $head > ${B}/.scmversion else -- 2.7.4