summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-15 21:11:05 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-15 21:11:05 +0000
commit1bd54fdefa32edd389f84539e60002e39c125cdb (patch)
treedd7b072c8360f2754dec28e76a0161234e63eb5b /scripts
parent3da81e77a5d445f1d220279d29199798ee76ad96 (diff)
Fix CONFIG_LINUX_ for linux 3.0
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 138232f43..7208e16a9 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -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;
}