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 = ""