Commit 516aa7af authored by Xie XiuQi's avatar Xie XiuQi
Browse files

Makefile.oever: add OPENEULER_RELEASE for version.h

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: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent ba7871ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -2,3 +2,4 @@
OPENEULER_LTS = 0
OPENEULER_MAJOR = 9999
OPENEULER_MINOR = 0
OPENEULER_RELEASE = ""