summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 52355dcdd..b80c3b63f 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -145,3 +145,7 @@ define AutoLoad
add_module $(1) "$(2)";
endef
+define CompareKernelPatchVer
+ $(shell [ $$(echo $(1) | tr . 0) -$(2) $$(echo $(3) | tr . 0) ] && echo 1 || echo 0)
+endef
+