Re: [meta-freescale] (no subject)

2018-04-26 Thread jan vermaete
Please find attached the patch.
Br

On Wed, Apr 25, 2018 at 7:33 PM, Otavio Salvador
<otavio.salva...@ossystems.com.br> wrote:
> On Wed, Apr 25, 2018 at 7:51 AM, jan vermaete <jan.verma...@gmail.com> wrote:
>> Hi,
>>
>> I would like not to have the short githash in the Linux kernel name
>> and the /lib/modules directory.
>> Although, I prefer to inherit fsl-kernel-localversion in the bb file
>> for the linux kernel.
>>
>> When setting 'SCMVERSION = "n"' in the local.conf file, I still had
>> the +g in the directory name of /lib/modules...
>>
>> The following patch solved it for me.
>
> Is it possible for you to send the patch using git format-patch / git
> send-patch or sending it as an attachment?
>
> --
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.brhttp://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750


0001-Do-not-add-the-short-git-hash-to-the-kernel-name-whe.patch
Description: Binary data
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


[meta-freescale] (no subject)

2018-04-25 Thread jan vermaete
Hi,

I would like not to have the short githash in the Linux kernel name
and the /lib/modules directory.
Although, I prefer to inherit fsl-kernel-localversion in the bb file
for the linux kernel.

When setting 'SCMVERSION = "n"' in the local.conf file, I still had
the +g in the directory name of /lib/modules...

The following patch solved it for me.

br

>From f67c79d669a9861f6f355717bcdabc918e1de03b Mon Sep 17 00:00:00 2001
From: Jan Vermaete <jan.verma...@gmail.com>
Date: Wed, 25 Apr 2018 12:03:01 +0200
Subject: [PATCH 1/1] Do not add the short git hash to the kernel name when
 SCMVERSION is not set.

---
 classes/fsl-kernel-localversion.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/classes/fsl-kernel-localversion.bbclass
b/classes/fsl-kernel-localversion.bbclass
index c0306a0..ff1075e 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -28,7 +28,9 @@ do_preconfigure() {
 CONF_SED_SCRIPT=""

 kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\""
-kernel_conf_variable LOCALVERSION_AUTO y
+if [ "${SCMVERSION}" = "y" ]; then
+kernel_conf_variable LOCALVERSION_AUTO y
+fi

 sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'

-- 
2.7.4


-- 
Jan Vermaete
"For every complex problem there is an answer that is clear, simple,
and wrong." - H.L. Mencken
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale