kernel: convert to semantic versions
authorPaul Spooren <mail@aparcar.org>
Thu, 3 Feb 2022 23:13:01 +0000 (00:13 +0100)
committerPaul Spooren <mail@aparcar.org>
Wed, 23 Feb 2022 19:23:56 +0000 (20:23 +0100)
The semantic versions allow APK to compare the versions correctly.

Signed-off-by: Paul Spooren <mail@aparcar.org>
package/kernel/linux/Makefile

index 67063726b1c513f8bae31179ce3076190f4d18ae..a3a9448f2c246fc7f5751562b6c9fd2094d05979 100644 (file)
@@ -47,7 +47,7 @@ define Package/kernel
   CATEGORY:=Kernel
   DEFAULT:=y
   TITLE:=Virtual kernel package
-  VERSION:=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)
+  VERSION:=$(LINUX_VERSION)_p$(LINUX_RELEASE)-r$(COMMITCOUNT)
   PROVIDES:="kernel-$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)"
   URL:=http://www.kernel.org/
   PKG_FLAGS:=nonshared