backports: no longer support kernels < 3.10
authorJohannes Berg <johannes.berg@intel.com>
Fri, 13 Oct 2017 09:25:44 +0000 (11:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Oct 2017 13:29:52 +0000 (15:29 +0200)
Since CRYPTO_CMAC was introduced in 3.10, and mac80211
depends on it, we basically get nothing out of it anyway.

I'm not removing the support code (yet) since it actually
compiles, and perhaps somebody has a need for (certain)
kernel versions lower than 3.10.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
README
devel/backports-update-manager

diff --git a/README b/README
index 8d544eb4870ed7c48ca188eb587fa7324a7fb1db..2b494c8c7238621490fc5925623d863363b617e4 100644 (file)
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ down to older kernels. It currently backports the following subsystems:
   * WWAN
 
 This package provides the latest Linux kernel subsystem enhancements
-for kernels 3.0 and above.
+for kernels 3.10 and above.
 
 # Documentation
 
index 8069fd485ea64fc5c655bb1b360bf94b8783fe24..dc9697253e8455515011cbc9114ea28411ba3ef5 100755 (executable)
@@ -18,6 +18,8 @@ SPACE_PER_KERNEL=101
 # ~13 MiB of both deb files
 SPACE_PER_KERNEL_DEB=13
 
+MIN_VERSION = (3, 10)
+
 GIT_TREES = [
     "git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git",
     "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git",
@@ -82,6 +84,12 @@ class backport_kernel_updater:
                 while len(sver[0]) < n:
                     sver[0].append(0)
 
+        filtered = {}
+        for subvers in last:
+            if tuple(make_version_tuple(subvers[1:])) >= MIN_VERSION:
+                filtered[subvers] = last[subvers]
+        last = filtered
+
         result = []
         for subvers in last.values():
             subvers.sort(reverse=True)