Commit c9ec719f authored by Xie XiuQi's avatar Xie XiuQi Committed by Jialin Zhang
Browse files

openEuler: introduced OPENEULER_LTS to identify LTS Release

openEuler inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7761D


CVE: NA

--------------------------------

In most cases, the out-of-tree module needs to identify the release
version of the openEuler for interface adaptation. The existing
OPENEULER_VERSION() and OPENEULER_VERSION_CODE() cannot distinguish
between LTS versions and innovative versions. Therefore, a new macro
OPENEULER_LTS is introduced.

Signed-off-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 6dc31884
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ PATCHLEVEL = 10
SUBLEVEL = 0
EXTRAVERSION =
NAME = Kleptomaniac Octopus
OPENEULER_LTS = 1
OPENEULER_MAJOR = 2203
OPENEULER_MINOR = 3

@@ -1308,6 +1309,7 @@ define filechk_version.h
	fi;                                                              \
	echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) +  \
	((c) > 255 ? 255 : (c)))';                                       \
	echo '#define OPENEULER_LTS $(OPENEULER_LTS)';                 	 \
	echo '#define OPENEULER_MAJOR $(OPENEULER_MAJOR)';               \
	echo '#define OPENEULER_MINOR $(OPENEULER_MINOR)';               \
	echo '#define OPENEULER_VERSION(a,b) (((a) << 8) + (b))';        \