summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-12-20 17:11:24 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-12-21 16:59:58 -0200
commitf69b21d39feca9a4d71d53980fc5c9917ba6c5ac (patch)
treee86ffb4c7ecec088d535714cbd885aad877c51cc /classes
parent0548958d6e190bbc9f99645437393b0da31f81f5 (diff)
downloadmeta-fsl-arm-f69b21d39feca9a4d71d53980fc5c9917ba6c5ac.tar.gz
fsl-kernel-localversion.bbclass: Fix building using out-of-tree
Since OE-Core:df9975f4 (kernel: Fix non linux-yocto builds) the way the build of kernel is done has change. Now the source code is moved placed at STAGING_KERNEL_DIR and the build is done at ${WORKDIR}/build which is B. This patch adapts the configure task prepending to cope with those changes. Change-Id: I9ea4254ffd56e4b7201daf9a90b52756a399c0f6 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/fsl-kernel-localversion.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index bb4bdf5..6f9eb51 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -16,24 +16,24 @@ kernel_conf_variable() {
16 CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" 16 CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
17 if test "$2" = "n" 17 if test "$2" = "n"
18 then 18 then
19 echo "# CONFIG_$1 is not set" >> ${S}/.config 19 echo "# CONFIG_$1 is not set" >> ${B}/.config
20 else 20 else
21 echo "CONFIG_$1=$2" >> ${S}/.config 21 echo "CONFIG_$1=$2" >> ${B}/.config
22 fi 22 fi
23} 23}
24 24
25do_configure_prepend() { 25do_configure_prepend() {
26 echo "" > ${S}/.config 26 echo "" > ${B}/.config
27 CONF_SED_SCRIPT="" 27 CONF_SED_SCRIPT=""
28 28
29 kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" 29 kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\""
30 kernel_conf_variable LOCALVERSION_AUTO y 30 kernel_conf_variable LOCALVERSION_AUTO y
31 31
32 sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config' 32 sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'
33 33
34 if [ "${SCMVERSION}" = "y" ]; then 34 if [ "${SCMVERSION}" = "y" ]; then
35 # Add GIT revision to the local version 35 # Add GIT revision to the local version
36 head=`git rev-parse --verify --short HEAD 2> /dev/null` 36 head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null`
37 printf "%s%s" +g $head > ${S}/.scmversion 37 printf "%s%s" +g $head > ${B}/.scmversion
38 fi 38 fi
39} 39}