backports: move headers to be clearer
PATCH v2 1/11 backports: move headers to be clearer
From: Johannes Berg <[email protected]>
Those uapi header files are always needed, so don't mark them as being for wwan drivers.
--- copy-list | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
copy-list +4 -7
@@ -39,6 +39,10 @@ include/linux/rndis.h include/linux/bcm47xx_wdt.h include/linux/usb/usbnet.h include/linux/usb/cdc.h +include/uapi/linux/usb/cdc.h +include/uapi/linux/usb/cdc-wdm.h +include/linux/usb/cdc_ncm.h +include/linux/usb/cdc-wdm.h include/linux/usb/rndis_host.h include/linux/spi/libertas_spi.h include/linux/platform_data/brcmfmac.h
@@ -92,13 +96,6 @@ drivers/net/usb/rndis_host.c drivers/net/usb/cdc_ether.c drivers/net/usb/usbnet.c - -# wwan drivers -include/uapi/linux/usb/cdc.h -include/uapi/linux/usb/cdc-wdm.h -include/linux/usb/cdc_ncm.h -include/linux/usb/cdc-wdm.h - drivers/usb/class/Makefile drivers/usb/class/Kconfig drivers/usb/class/cdc-wdm.c
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 2/11 backports: add mktime64()
From: Johannes Berg <[email protected]>
--- backport/backport-include/linux/time64.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
backport/backport-include/linux/time64.h +22 -0
@@ -21,4 +21,26 @@#define timespec64 timespec#endif /* LINUX_VERSION_IS_LESS(3,17,0) */ +#if LINUX_VERSION_IS_LESS (3 ,19 ,0 ) +static inline time64_t mktime64 (const unsigned int year0,const unsigned int mon0, +const unsigned int day,const unsigned int hour, +const unsigned int min,const unsigned int sec) +{ +unsigned int mon = mon0, year = year0; + +/* 1..12 -> 11,12,1..10 */ +if (0 >= (int ) (mon -=2 )) { + mon +=12 ;/* Puts Feb last since it has leap day */ + year -=1 ; + } + +return ((((time64_t) + (year/4 - year/100 + year/400 +367 *mon/12 + day) + + year*365 -719499 + )*24 + hour/* now have hours - midnight tomorrow handled here */ + )*60 + min/* now have minutes */ + )*60 + sec;/* finally seconds */ +} +#endif +#endif /* __BACKPORT_LINUX_TIME64_H */
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 3/11 copy-list: move mpls includes
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
--- copy-list | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
copy-list +5 -6
@@ -65,6 +65,11 @@ net/Makefile net/Kconfig net/wireless/ net/mac80211/ +# MPLS labels, checked on skb->protocol on the +# respective 802 family, only ethernet seems to use +# this right now, see 960d97f95 +include/linux/mpls.h +include/uapi/linux/mpls.h drivers/net/wireless/ath/ drivers/ssb/
@@ -113,9 +118,3 @@ include/uapi/linux/nfc.h drivers/nfc/ include/linux/platform_data/nfcmrvl.h include/linux/platform_data/nxp-nci.h - -# MPLS labels, checked on skb->protocol on the -# respective 802 family, only ethernet seems to use -# this right now, see 960d97f95 -include/linux/mpls.h -include/uapi/linux/mpls.h
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 4/11 backports: add hex_byte_pack
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
This was just renamed at some point, needed by bin2hex() in the next patch.
--- backport/backport-include/linux/kernel.h | 2 ++ 1 file changed, 2 insertions(+)
backport/backport-include/linux/kernel.h +2 -0
@@ -159,6 +159,8 @@#endif /* rounddown */ #if LINUX_VERSION_IS_LESS (3 ,2 ,0 ) +#define hex_byte_pack pack_hex_byte +/* kernels before 3.2 didn't have error checking for the function */ #define hex2bin LINUX_BACKPORT(hex2bin)int __must_check hex2bin (u8 *dst,const char *src,size_t count);
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 5/11 backports: add bin2hex()
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
This is needed in the key backports in the next patch.
--- backport/backport-include/linux/kernel.h | 5 +++++ backport/compat/backport-3.18.c | 10 ++++++++++ 2 files changed, 15 insertions(+)
backport/backport-include/linux/kernel.h +5 -0
@@ -213,6 +213,11 @@ static inline u32 reciprocal_scale(u32 val, u32 ep_ro) }#endif /* LINUX_VERSION_IS_LESS(3,14,0) */ +#if LINUX_VERSION_IS_LESS (3 ,18 ,0 ) +#define bin2hex LINUX_BACKPORT(bin2hex) +extern char *bin2hex (char *dst,const void *src,size_t count); +#endif +#endif /* __BACKPORT_KERNEL_H */ /*
backport/compat/backport-3.18.c +10 -0
@@ -320,3 +320,13 @@ void memzero_explicit(void *s, size_t count) }EXPORT_SYMBOL_GPL (memzero_explicit);#endif + +char *bin2hex (char *dst,const void *src,size_t count) +{ +const unsigned char *_src = src; + +while (count--) + dst =hex_byte_pack (dst, *_src++); +return dst; +} +EXPORT_SYMBOL (bin2hex);
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 6/11 backports: add signature verification code
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
Uh, this was awful. Because the crypto/ things are completely impossible to backport, I've actually implemented this by using mbedtls and embedding the relevant functions it has...
The mbedtls code is taken from mbedtls version 2.6.0 and only minimally modified (mostly to remove <string.h> and similar).
--- backport/backport-include/keys/asymmetric-type.h | 33 + backport/backport-include/keys/system_keyring.h | 10 + backport/backport-include/linux/key.h | 66 + backport/backport-include/linux/verification.h | 28 + backport/compat/.gitignore | 1 + backport/compat/Kconfig | 26 + backport/compat/Makefile | 29 + backport/compat/verification/asn1parse.c | 393 ++++ backport/compat/verification/bignum.c | 2447 ++++++++++++++++++++ backport/compat/verification/key.c | 171 ++ backport/compat/verification/mbedtls/asn1.h | 344 +++ backport/compat/verification/mbedtls/bignum.h | 760 ++++++ backport/compat/verification/mbedtls/bn_mul.h | 887 +++++++ backport/compat/verification/mbedtls/config.h | 15 + backport/compat/verification/mbedtls/md.h | 356 +++ backport/compat/verification/mbedtls/md_internal.h | 116 + backport/compat/verification/mbedtls/oid.h | 572 +++++ backport/compat/verification/mbedtls/pk.h | 618 +++++ backport/compat/verification/mbedtls/platform.h | 12 + backport/compat/verification/mbedtls/rsa.h | 672 ++++++ backport/compat/verification/mbedtls/sha1.h | 135 ++ backport/compat/verification/mbedtls/sha256.h | 140 ++ backport/compat/verification/md.c | 471 ++++ backport/compat/verification/md_wrap.c | 577 +++++ backport/compat/verification/oid.c | 709 ++++++ backport/compat/verification/pkcs7-asn1.c | 355 +++ backport/compat/verification/pkcs7-asn1.h | 27 + backport/compat/verification/public_key.c | 131 ++ backport/compat/verification/rsa.c | 1872 +++++++++++++++ backport/compat/verification/rsapubkey-asn1.c | 38 + backport/compat/verification/rsapubkey-asn1.h | 15 + backport/compat/verification/sha256.c | 458 ++++ backport/compat/verification/verify.c | 65 + backport/compat/verification/x509-asn1.c | 182 ++ backport/compat/verification/x509-asn1.h | 22 + backport/compat/verification/x509_akid-asn1.c | 144 ++ backport/compat/verification/x509_akid-asn1.h | 15 + copy-list | 13 + patches/verify.patch | 86 + 39 files changed, 13011 insertions(+) create mode 100644 backport/backport-include/keys/asymmetric-type.h create mode 100644 backport/backport-include/keys/system_keyring.h create mode 100644 backport/backport-include/linux/key.h create mode 100644 backport/backport-include/linux/verification.h create mode 100644 backport/compat/.gitignore create mode 100644 backport/compat/verification/asn1parse.c create mode 100644 backport/compat/verification/bignum.c create mode 100644 backport/compat/verification/key.c create mode 100644 backport/compat/verification/mbedtls/asn1.h create mode 100644 backport/compat/verification/mbedtls/bignum.h create mode 100644 backport/compat/verification/mbedtls/bn_mul.h create mode 100644 backport/compat/verification/mbedtls/config.h create mode 100644 backport/compat/verification/mbedtls/md.h create mode 100644 backport/compat/verification/mbedtls/md_internal.h create mode 100644 backport/compat/verification/mbedtls/oid.h create mode 100644 backport/compat/verification/mbedtls/pk.h create mode 100644 backport/compat/verification/mbedtls/platform.h create mode 100644 backport/compat/verification/mbedtls/rsa.h create mode 100644 backport/compat/verification/mbedtls/sha1.h create mode 100644 backport/compat/verification/mbedtls/sha256.h create mode 100644 backport/compat/verification/md.c create mode 100644 backport/compat/verification/md_wrap.c create mode 100644 backport/compat/verification/oid.c create mode 100644 backport/compat/verification/pkcs7-asn1.c create mode 100644 backport/compat/verification/pkcs7-asn1.h create mode 100644 backport/compat/verification/public_key.c create mode 100644 backport/compat/verification/rsa.c create mode 100644 backport/compat/verification/rsapubkey-asn1.c create mode 100644 backport/compat/verification/rsapubkey-asn1.h create mode 100644 backport/compat/verification/sha256.c create mode 100644 backport/compat/verification/verify.c create mode 100644 backport/compat/verification/x509-asn1.c create mode 100644 backport/compat/verification/x509-asn1.h create mode 100644 backport/compat/verification/x509_akid-asn1.c create mode 100644 backport/compat/verification/x509_akid-asn1.h create mode 100644 patches/verify.patch
backport/backport-include/keys/asymmetric-type.h new file +33 -0
@@ -0,0 +1,33 @@ +#ifndef __BP_ASYMMETRIC_TYPE_H +#define __BP_ASYMMETRIC_TYPE_H +#ifdef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION + +struct asymmetric_key_id { +unsigned short len; +unsigned char data[]; +}; + +struct asymmetric_key_ids { +struct asymmetric_key_id *id[2 ]; +}; + +static inline bool asymmetric_key_id_same (const struct asymmetric_key_id *kid1, +const struct asymmetric_key_id *kid2) +{ +if (!kid1 || !kid2) +return false; +if (kid1->len != kid2->len) +return false; +return memcmp (kid1->data, kid2->data, kid1->len) ==0 ; +} + +extern struct asymmetric_key_id * +asymmetric_key_generate_id (const void *val_1,size_t len_1, +const void *val_2,size_t len_2); + +extern struct key *find_asymmetric_key (struct key *keyring, +const struct asymmetric_key_id *id_0, +const struct asymmetric_key_id *id_1, +bool partial); +#endif +#endif /* __BP_ASYMMETRIC_TYPE_H */
backport/backport-include/keys/system_keyring.h new file +10 -0
@@ -0,0 +1,10 @@ +#ifndef __BP_SYSTEM_KEYRING_H +#define __BP_SYSTEM_KEYRING_H +#ifndef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION +#include_next <keys/system_keyring.h> +#else +#include <linux/key.h> + +#define is_hash_blacklisted (...) 0 +#endif /* CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION */ +#endif /* __BP_SYSTEM_KEYRING_H */
backport/backport-include/linux/key.h new file +66 -0
66 lines not on this page · raw message
backport/backport-include/linux/verification.h new file +28 -0
@@ -0,0 +1,28 @@ +#ifndef __BP_VERIFICATION_H +#define __BP_VERIFICATION_H +#include <linux/version.h> +#ifndef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION +#include_next <linux/verification.h> +#else +#include <linux/key.h> + +enum key_being_used_for { +VERIFYING_MODULE_SIGNATURE , +VERIFYING_FIRMWARE_SIGNATURE , +VERIFYING_KEXEC_PE_SIGNATURE , +VERIFYING_KEY_SIGNATURE , +VERIFYING_KEY_SELF_SIGNATURE , +VERIFYING_UNSPECIFIED_SIGNATURE , +NR__KEY_BEING_USED_FOR +}; + +extern int verify_pkcs7_signature (const void *data,size_t len, +const void *raw_pkcs7,size_t pkcs7_len, +struct key *trusted_keys, +enum key_being_used_for usage, +int (*view_content)(void *ctx, +const void *data,size_t len, +size_t asn1hdrlen), +void *ctx); +#endif /* LINUX_VERSION_IS_GEQ(4,7,0) */ +#endif /* __BP_VERIFICATION_H */
backport/compat/.gitignore new file +1 -0
@@ -0,0 +1 @@ +oid_registry_data.c
backport/compat/Kconfig +26 -0
@@ -174,3 +174,29 @@ config BPAUTO_REFCOUNT depends on KERNEL_4_11 #h-file linux/refcount.h #c-file lib/refcount.c + +config BPAUTO_SYSTEM_DATA_VERIFICATION + bool + +config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION + bool + default y if BPAUTO_SYSTEM_DATA_VERIFICATION + depends on KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION + select BPAUTO_ASN1_DECODER + select BPAUTO_PUBLIC_KEY + select BPAUTO_PKCS7 + #h-file linux/oid_registry.h + #c-file lib/oid_registry.c + +config BPAUTO_PUBLIC_KEY + bool + #h-file crypto/public_key.h + +config BPAUTO_ASN1_DECODER + bool + #h-file linux/asn1_decoder.h + #c-file lib/asn1_decoder.c + +config BPAUTO_PKCS7 + bool + #h-file crypto/pkcs7.h
backport/compat/Makefile +29 -0
@@ -39,3 +39,32 @@ compat-$(CPTCFG_KERNEL_4_10) += backport-4.10.o compat-$(CPTCFG_BPAUTO_BUILD_CRYPTO_CCM) += crypto-ccm.o compat-$(CPTCFG_BPAUTO_CRYPTO_SKCIPHER) += crypto-skcipher.o + +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/verify.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_verify.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_parser.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_akid-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_cert_parser.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_public_key.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_trust.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/key.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/public_key.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/rsa.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/bignum.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/md.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/md_wrap.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/sha256.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/oid.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/asn1parse.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/rsapubkey-asn1.o + +$(obj)/lib-oid_registry.o: $(obj)/oid_registry_data.c + +$(obj)/oid_registry_data.c: $(src)/../include/linux/backport-oid_registry.h \ + $(src)/build_OID_registry + $(call cmd,build_OID_registry) + +quiet_cmd_build_OID_registry = GEN $@ + cmd_build_OID_registry = perl $(src)/build_OID_registry $< $@
backport/compat/verification/asn1parse.c new file +393 -0
393 lines not on this page · raw message
backport/compat/verification/bignum.c new file +2447 -0
2,408 lines not on this page · raw message
backport/compat/verification/key.c new file +171 -0
171 lines not on this page · raw message
backport/compat/verification/mbedtls/asn1.h new file +344 -0
344 lines not on this page · raw message
backport/compat/verification/mbedtls/bignum.h new file +760 -0
760 lines not on this page · raw message
backport/compat/verification/mbedtls/bn_mul.h new file +887 -0
887 lines not on this page · raw message
backport/compat/verification/mbedtls/config.h new file +15 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/mbedtls/md.h new file +356 -0
356 lines not on this page · raw message
backport/compat/verification/mbedtls/md_internal.h new file +116 -0
116 lines not on this page · raw message
backport/compat/verification/mbedtls/oid.h new file +572 -0
572 lines not on this page · raw message
backport/compat/verification/mbedtls/pk.h new file +618 -0
618 lines not on this page · raw message
backport/compat/verification/mbedtls/platform.h new file +12 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/mbedtls/rsa.h new file +672 -0
672 lines not on this page · raw message
backport/compat/verification/mbedtls/sha1.h new file +135 -0
135 lines not on this page · raw message
backport/compat/verification/mbedtls/sha256.h new file +140 -0
140 lines not on this page · raw message
backport/compat/verification/md.c new file +471 -0
471 lines not on this page · raw message
backport/compat/verification/md_wrap.c new file +577 -0
577 lines not on this page · raw message
backport/compat/verification/oid.c new file +709 -0
709 lines not on this page · raw message
backport/compat/verification/pkcs7-asn1.c new file +355 -0
355 lines not on this page · raw message
backport/compat/verification/pkcs7-asn1.h new file +27 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/public_key.c new file +131 -0
131 lines not on this page · raw message
backport/compat/verification/rsa.c new file +1872 -0
1,872 lines not on this page · raw message
backport/compat/verification/rsapubkey-asn1.c new file +38 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/rsapubkey-asn1.h new file +15 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/sha256.c new file +458 -0
458 lines not on this page · raw message
backport/compat/verification/verify.c new file +65 -0
65 lines not on this page · raw message
backport/compat/verification/x509-asn1.c new file +182 -0
182 lines not on this page · raw message
backport/compat/verification/x509-asn1.h new file +22 -0
Lines of this file are not shown. View the raw message.
backport/compat/verification/x509_akid-asn1.c new file +144 -0
144 lines not on this page · raw message
backport/compat/verification/x509_akid-asn1.h new file +15 -0
Lines of this file are not shown. View the raw message.
patches/verify.patch new file +86 -0
86 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Part of the diff is not shown here. View the raw message.
PATCH v2 7/11 backports: add netdev_upper_dev_link() extack argument
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
--- backport/backport-include/linux/netdevice.h | 5 +++++ 1 file changed, 5 insertions(+)
backport/backport-include/linux/netdevice.h +5 -0
@@ -333,4 +333,9 @@ static inline void netif_trans_update(struct net_device *dev) (_dev)->needs_free_netdev = true;#endif +#if LINUX_VERSION_IS_LESS (4 ,14 ,0 ) +#define netdev_upper_dev_link (dev, upper, extack) \ + netdev_upper_dev_link(dev, upper) +#endif +#endif /* __BACKPORT_NETDEVICE_H */
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 8/11 backports: make QTNFMAC_PEARL_PCIE depend on 3.13
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
It needs pcie_get_mps() which was only exported in that kernel.
--- dependencies | 3 +++ 1 file changed, 3 insertions(+)
dependencies +3 -0
@@ -62,6 +62,9 @@ NFC_NXP_NCI_I2C 3.17 # pci_error_handlers->reset_notify is missing MWIFIEX_PCIE 3.16 +# needs pcie_get_mps() +QTNFMAC_PEARL_PCIE 3.13 + # needs pm_system_wakeup() which can't reall be # backported properly MWIFIEX 3.18
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 9/11 backports: RSI_SDIO depends on 3.13
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
--- dependencies | 3 +++ 1 file changed, 3 insertions(+)
dependencies +3 -0
@@ -159,3 +159,6 @@ NFC_WILINK 4.8 # struct ethtool_link_ksettings is missing, I'm lazy USB_USBNET 4.6 USB_NET_RNDIS_WLAN 4.6 + +# depends on struct mmc_card::ocr +RSI_SDIO 3.13
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 10/11 backports-update-manager: use KPATH variable
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
There's already a variable for the URL, use it.
--- devel/backports-update-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
devel/backports-update-manager +1 -1
@@ -52,7 +52,7 @@ class backport_kernel_updater: @classmethod def _get_ubuntu_ppa_mainline_kernels(cls): - base = 'http://kernel.ubuntu.com/~kernel-ppa/mainline/' + base = KPATH html = urlopen(base).read() builds = re.findall(b'href="([-v.0-9a-z]*)/"', html) builds = [b.decode('ascii') for b in builds]
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in
PATCH v2 11/11 backports: no longer support kernels < 3.10
In reply to Johannes BergFrom: Johannes Berg <[email protected]>
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.
--- README | 2 +- devel/backports-update-manager | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
README +1 -1
@@ -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
devel/backports-update-manager +8 -0
@@ -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)
Signature · 4 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in