[meta-freescale] [meta-fsl-arm][PATCH] linux-ls1: add support for kernel configuration fragments

Zongchun.Yu at freescale.com Zongchun.Yu at freescale.com
Tue Oct 14 20:04:35 PDT 2014


> -inherit kernel fsl-kernel-localversion

Why?

[Zongchun]Regarding kernel class. a new file named linux-yocto.inc is included in the following lines. This file has already inherited kernel class.
Regarding fsl-kernel-localversion class. After including linux-yocto.inc. the .config is generated in kernel_configme task which is before configure task. So the blocks in 
fsl-kernel-localversion class are not the same with Linux recipe.
  
> +require recipes-kernel/linux/linux-yocto.inc
> +SCMVERSION ??= "y"
>  LOCALVERSION ?= "+ls1"
>
>  SRC_URI = "git://git.freescale.com/layerscape/ls1021a/linux.git;branch=${SRCBRANCH} \
> -    file://defconfig \
> +    file://base.scc \
>  "
>
>  KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
>
>  S = "${WORKDIR}/git"
> +
> +kernel_conf_variable() {
> +       if test "$2" = "n"
> +       then
> +               echo "# CONFIG_$1 is not set" >> ${B}/.config
> +       else
> +               echo "CONFIG_$1=$2" >> ${B}/.config
> +       fi
> +}
> +
> +do_configure_prepend() {
> +       kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\""
> +       kernel_conf_variable LOCALVERSION_AUTO y
> +
> +       if [ "${SCMVERSION}" = "y" ]; then
> +               # Add GIT revision to the local version
> +               cd source
> +               head=`git rev-parse --verify --short HEAD 2> /dev/null`
> +               cd -
> +               printf "%s%s" +g $head > ${S}/.scmversion
> +       fi
> +}

This block seems duplicated. Did you review the class you removed?
[Zongchun]Please see above reasons. 



More information about the meta-freescale mailing list