diff options
| -rw-r--r-- | meta-fsl-arm/classes/fsl-kernel-localversion.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-fsl-arm/classes/fsl-kernel-localversion.bbclass b/meta-fsl-arm/classes/fsl-kernel-localversion.bbclass index bb4bdf599..6f9eb5132 100644 --- a/meta-fsl-arm/classes/fsl-kernel-localversion.bbclass +++ b/meta-fsl-arm/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 | ||
| 25 | do_configure_prepend() { | 25 | do_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 | } |
