From 986583e9f814574830ab0d6878a4e1835414cdc0 Mon Sep 17 00:00:00 2001 From: Vincent Fortier <th0ma7@gmail.com> Date: Sun, 18 Apr 2021 23:04:26 +0000 Subject: [PATCH] spk.mk: Limit os_max_ver to point release updates for kernel spk --- mk/spksrc.spk.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/spksrc.spk.mk b/mk/spksrc.spk.mk index 1e91dd25aa4..f2c864508a4 100644 --- a/mk/spksrc.spk.mk +++ b/mk/spksrc.spk.mk @@ -128,6 +128,10 @@ endif endif ifneq ($(strip $(OS_MAX_VER)),) @echo os_max_ver=\"$(OS_MAX_VER)\" >> $@ +# If require kernel modules then limit +# 'os_max_ver' to point releases only +else ifeq ($(strip $(REQUIRE_KERNEL)),1) + @echo os_max_ver=\"$(word 1,$(subst ., ,$(TC_VERS))).$(word 2,$(subst ., ,$(TC_VERS)))-$$(expr $(TC_BUILD) + 10)\" >> $@ endif ifneq ($(strip $(BETA)),) @echo beta=\"yes\" >> $@