projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ae457
)
Fix CONFIG_LINUX_ for linux 3.0
author
Hauke Mehrtens
<hauke@hauke-m.de>
Wed, 15 Jun 2011 21:11:05 +0000
(21:11 +0000)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Wed, 15 Jun 2011 21:11:05 +0000
(21:11 +0000)
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 27184
scripts/metadata.pl
patch
|
blob
|
history
diff --git
a/scripts/metadata.pl
b/scripts/metadata.pl
index 138232f435ee4dd6c5aa4eb0ed25ea0a5660c2b5..7208e16a989a56f4452df39effcfbec0cab3d20a 100755
(executable)
--- 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;
}