Fix CONFIG_LINUX_ for linux 3.0
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 15 Jun 2011 21:11:05 +0000 (21:11 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 15 Jun 2011 21:11:05 +0000 (21:11 +0000)
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27184 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pl

index 138232f..7208e16 100755 (executable)
@@ -188,7 +188,11 @@ sub target_name($) {
 sub kver($) {
        my $v = shift;
        $v =~ tr/\./_/;
-       $v =~ /(\d+_\d+_\d+)(_\d+)?/ and $v = $1;
+       if (substr($v,0,2) eq "2_") {
+               $v =~ /(\d+_\d+_\d+)(_\d+)?/ and $v = $1;
+       } else {
+               $v =~ /(\d+_\d+)(_\d+)?/ and $v = $1;
+       }
        return $v;
 }
 
This page took 0.032163 seconds and 4 git commands to generate.