Set openEuler version release for 24.03 LTS, which will appear in <linux/version.h> like:
#define LINUX_VERSION_CODE 394752 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))) #define LINUX_VERSION_MAJOR 6 #define LINUX_VERSION_PATCHLEVEL 6 #define LINUX_VERSION_SUBLEVEL 0 #define OPENEULER_LTS 1 #define OPENEULER_MAJOR 2403 #define OPENEULER_MINOR 0 #define OPENEULER_VERSION(a,b) (((a) << 8) + (b)) #define OPENEULER_VERSION_CODE 615168 #define OPENEULER_RELEASE "26.0.0.30"
https://gitee.com/openeuler/kernel/issues/I9PZYW
Xie XiuQi (2): kernel.spec: support set openeuler release version via kernel.spec kernel.spec: set openEuler version for 24.03 LTS
kernel.spec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)