aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2011-06-15 21:11:05 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2011-06-15 21:11:05 +0000
commite04f68fb77365b724435163134890ea4583e28ab (patch)
tree7b3a15f6275317207247014d9b1a1862b34603e8 /scripts
parent45ae45782529b11f743fd3c0f8e27879235cf11b (diff)
downloadupstream-e04f68fb77365b724435163134890ea4583e28ab.tar.gz
upstream-e04f68fb77365b724435163134890ea4583e28ab.tar.bz2
upstream-e04f68fb77365b724435163134890ea4583e28ab.zip
Fix CONFIG_LINUX_ for linux 3.0
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 27184
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 138232f435..7208e16a98 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;
}