[meta-freescale] [meta-fsl-arm][PATCH] linux-ls1: add support for kernel configuration fragments
Zongchun.Yu at freescale.com
Zongchun.Yu at freescale.com
Thu Oct 16 19:21:07 PDT 2014
Which part are you referencing here ? The LOCALVERSION changes ?
[Zongchun] I have separated the codes from this patch. these codes can also add git revision to local version. Please refer to the following:
+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
+}
May I know your comments? Thanks.
More information about the meta-freescale
mailing list