[meta-freescale] [meta-fsl-arm][PATCH v2 3/6] Add kernel recipe for Layerscape1 support
Otavio Salvador
otavio at ossystems.com.br
Sun Aug 31 12:49:42 PDT 2014
On Thu, Aug 28, 2014 at 9:14 AM, zhenhua.luo at freescale.com
<zhenhua.luo at freescale.com> wrote:
>> -----Original Message-----
>> From: otavio.salvador at gmail.com [mailto:otavio.salvador at gmail.com] On
>> Behalf Of Otavio Salvador
>> Sent: Wednesday, August 27, 2014 9:01 PM
>>
>> On Wed, Aug 27, 2014 at 1:57 AM, Zhenhua Luo <zhenhua.luo at freescale.com>
>> wrote:
>> > +
>> > +do_configure_prepend() {
>> > + # copy desired defconfig so we pick it up for the real
>> kernel_do_configure
>> > + cp ${KERNEL_DEFCONFIG} ${B}/.config
>> > +
>> > + # 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
>> > +}
>>
>> We have similar code in linux-imx.inc; I think we ought to move this to a
>> fsl-kernel-localversion.bbclass file to avoid duplicating the logic here.
>> I can work on this if you want.
> [Luo Zhenhua-B19537] Please go ahead.
Great. I will do this and submit a patch here this week. So we could
try to get same class in meta-fsl-arm and avoid duplicating this code.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the meta-freescale
mailing list