AnsweredAssumed Answered

kernel version string

Question asked by mayank sirotiya on May 3, 2019
Latest reply on May 3, 2019 by gusarambula

Hello All,


I have downloaded and flashed linux kernel from the following location :-

Alpha / Beta BSPs for Microprocessors | NXP 

(Linux 4.14.62_1.0.0_Beta )


uname -a on device gives me following result :-

Linux imx8qxpmek 4.14.62-imx_4.14.62_1.0.0_beta+g1907fe4 #1 SMP PREEMPT Tue Oct 16 07:04:53 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux


Now for building my modules on host machine, I have cloned linux-kernel from linux-imx - i.MX Linux kernel , and switched to branch imx_4.14.62_1.0.0_beta.

On building this kernel version, my include/config/kernel.release contains following :-


which seems correct as per git describe. I am wondering how to get kernel version like the one showing in pre-built image i.e. 4.14.62-imx_4.14.62_1.0.0_beta+g1907fe4.

I couldn't find any way to include branch name in kernel version string.