mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2026-01-27 11:52:04 +01:00
fsl-kernel-localversion: Fix duplicate LOCALVERSION
The kernel version contains LOCALVERSION twice. For example, for LOCALVERSION=nxp-next: ``` $ cat tmp/work/imx95evk-poky-linux/linux-imx/6.18.y+git/build/include/generated/utsrelease.h #define UTS_RELEASE "6.18.0-nxp-next-nxp-next-06195-gb61baedaf5d5" ``` The problem is kernel-yocto.bbclass adds LOCALVERSION via .config if LINUX_VERSION_EXTENSION is not empty, and the build itself adds it because fsl-kernel-localversion.bbclass sets CONFIG_LOCALVERSION_AUTO=y whenever SCMVERSION is enabled. Fix by clearing LINUX_VERSION_EXTENSION if SCMVERSION is enabled. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
parent
1f1dd28237
commit
e6a138da45
|
|
@ -13,7 +13,8 @@ SCMVERSION ??= "y"
|
||||||
LOCALVERSION ??= "+fslc"
|
LOCALVERSION ??= "+fslc"
|
||||||
|
|
||||||
# LINUX_VERSION_EXTENSION is used as CONFIG_LOCALVERSION by kernel-yocto class
|
# LINUX_VERSION_EXTENSION is used as CONFIG_LOCALVERSION by kernel-yocto class
|
||||||
LINUX_VERSION_EXTENSION ?= "${LOCALVERSION}"
|
LINUX_VERSION_EXTENSION ?= \
|
||||||
|
"${@bb.utils.contains('SCMVERSION', 'y', '', '${LOCALVERSION}', d)}"
|
||||||
|
|
||||||
do_kernel_localversion[dirs] += "${S} ${B}"
|
do_kernel_localversion[dirs] += "${S} ${B}"
|
||||||
do_kernel_localversion() {
|
do_kernel_localversion() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user