[meta-freescale] linux-qoriq, scmversion: do_configure_prepend() causes error with master...
Bob Cochran
yocto at mindchasers.com
Thu Jan 1 20:15:25 PST 2015
Hi,
Inside linux-qoriq.inc:do_configure_prepend() there is a section that
builds an scmversion string and writes it to ${S}/.scmversion.
The section of script assumes it's in the source directory and executes
'git rev-parse --verify --short HEAD' to get the SHA, but this fails and
the baking abruptly comes to an end.
With a 3.12 kernel, do we need to worry about manually generating an
scmversion string? Looking at the default config, LOCALVERSION_AUTO is
enabled.
However, my generated kernel after I removed the scmversion generation
logic from do_configure_prepend() didn't show the -gxxxxxxxx suffix when
I ran uname. So, it's not clear to me whether this kernel feature is
broken by the environment.
In summary, I think linux-qoriq.inc needs a patch to
do_configure_prepend(), but I'm not sure what's actually needed. In the
the interim, I'm using a modified linux-qoriq.inc as shown below.
Thanks
Bob
@@ -28,17 +28,6 @@ do_configure_prepend() {
${S}/arch/powerpc/configs/${deltacfg}
fi
done
-
- #add git revision to the local version
- if [ "${SCMVERSION}" = "y" ]; then
- # append sdk version if SDK_VERSION is defined
- sdkversion=''
- 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
- fi
}
# make everything compatible for the time being
More information about the meta-freescale
mailing list