hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9PZYW
--------------------------------
Add OPENEULER_RELEASE indicates the kernel detail version release. The out-of-tree driver could identify the specific kernel version when necessary.
Signed-off-by: Xie XiuQi xiexiuqi@huawei.com --- Makefile | 3 ++- Makefile.oever | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile index e458c8265d75..8e6d9b894b1e 100644 --- a/Makefile +++ b/Makefile @@ -1259,7 +1259,8 @@ define filechk_version.h echo #define OPENEULER_MINOR $(OPENEULER_MINOR); \ echo '#define OPENEULER_VERSION(a,b) (((a) << 8) + (b))'; \ echo #define OPENEULER_VERSION_CODE $(shell \ - expr $(OPENEULER_MAJOR) * 256 + $(OPENEULER_MINOR)) + expr $(OPENEULER_MAJOR) * 256 + $(OPENEULER_MINOR)); \ + echo #define OPENEULER_RELEASE "$(OPENEULER_RELEASE)" endef
$(version_h): PATCHLEVEL := $(or $(PATCHLEVEL), 0) diff --git a/Makefile.oever b/Makefile.oever index 96beccf3569c..e3b94ea65311 100644 --- a/Makefile.oever +++ b/Makefile.oever @@ -2,3 +2,4 @@ OPENEULER_LTS = 0 OPENEULER_MAJOR = 9999 OPENEULER_MINOR = 0 +OPENEULER_RELEASE = ""
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/7475 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/4...
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/7475 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/4...