From: Luciano Coelho <luciano.coe...@intel.com>

Adjust the kernel version parsing and list of backport files
generation for 4.x kernels.

Signed-off-by: Luciano Coelho <luciano.coe...@intel.com>
---
I was working on the same thing and Johannes told me that Arend had a
similar patch.  Maybe this one can be used?

 backport/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/backport/Makefile b/backport/Makefile
index ea3982b..c4962c9 100644
--- a/backport/Makefile
+++ b/backport/Makefile
@@ -85,11 +85,12 @@ mrproper:
                        done                                                    
        \
                ) > Kconfig.kernel                                              
        ;\
                kver=$$($(MAKE) --no-print-directory -C $(KLIB_BUILD) 
kernelversion |   \
-                       sed 's/^\(\(3\|2\.6\)\.[0-9]\+\).*/\1/;t;d')            
        ;\
+                       sed 's/^\(\([3-4]\|2\.6\)\.[0-9]\+\).*/\1/;t;d')        
        ;\
                test "$$kver" != "" || echo "Kernel version parse failed!"      
        ;\
                test "$$kver" != ""                                             
        ;\
                kvers="$$(seq 14 39 | sed 's/^/2.6./')"                         
        ;\
-               kvers="$$kvers $$(seq 0 99 | sed 's/^/3./')"                    
        ;\
+               kvers="$$kvers $$(seq 0 19 | sed 's/^/3./')"                    
        ;\
+               kvers="$$kvers $$(seq 0 99 | sed 's/^/4./')"                    
        ;\
                print=0                                                         
        ;\
                for v in $$kvers ; do                                           
        \
                        if [ "$$print" = "1" ] ; then                           
        \
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to