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.
Xie XiuQi (1): openEuler: introduced OPENEULER_LTS to identify LTS Release
Makefile | 2 ++ 1 file changed, 2 insertions(+)
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/1219 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/J...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/1219 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/J...
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: Xie XiuQi xiexiuqi@huawei.com --- Makefile | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile index b36218bd47c2..6d7748fa8964 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PATCHLEVEL = 10 SUBLEVEL = 0 EXTRAVERSION = NAME = Kleptomaniac Octopus +OPENEULER_LTS = 1 OPENEULER_MAJOR = 2203 OPENEULER_MINOR = 2
@@ -1295,6 +1296,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))'; \