From 0f3a9de958df3f6d77ef906db1bf991cb2715428 Mon Sep 17 00:00:00 2001 From: Prslc Date: Mon, 23 Jun 2025 18:59:30 +0800 Subject: [PATCH] Kernel: use main branch commit count for consistent versioning (#209) --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index a92c7dc4..0cbe540f 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -31,7 +31,7 @@ KSU_GITHUB_VERSION := $(shell $(CURL_BIN) -sI "https://api.github.com/repos/$(RE ifeq ($(KSU_GITHUB_VERSION),) ifeq ($(shell test -e $(srctree)/$(src)/../.git; echo $$?),0) $(shell cd $(srctree)/$(src); [ -f ../.git/shallow ] && $(GIT_BIN) fetch --unshallow) - KSU_LOCAL_VERSION := $(shell cd $(srctree)/$(src); $(GIT_BIN) rev-list --count HEAD) + KSU_LOCAL_VERSION := $(shell cd $(srctree)/$(src); $(GIT_BIN) rev-list --count $(REPO_BRANCH)) $(eval KSU_VERSION := $(shell expr 10000 + $(KSU_LOCAL_VERSION) + 700)) $(info -- SukiSU-Ultra version (local .git): $(KSU_VERSION)) else