]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq: fix building using out-of-tree
authorTing Liu <ting.liu@freescale.com>
Mon, 5 Jan 2015 03:37:23 +0000 (11:37 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 7 Jan 2015 02:11:22 +0000 (10:11 +0800)
Signed-off-by: Ting Liu <ting.liu@freescale.com>
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq.inc

index 9e463ddbc428cc5073c550406ca970bf5a2274be..a832b46a8b15dbefcc808d4e65d5dcdf8db55e5f 100644 (file)
@@ -36,8 +36,8 @@ do_configure_prepend() {
             if [ -n "${SDK_VERSION}" ]; then
                 sdkversion="-${SDK_VERSION}"
             fi
-            head=`git rev-parse --verify --short HEAD 2> /dev/null`
-            printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
+            head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null`
+            printf "%s%s%s" $sdkversion +g $head > ${B}/.scmversion
     fi
 }