X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b8bd973764aef108dc049807b32ed61ccf5694bc..c69fa28f0f3a6704f63e8b5316e5a292223f27d9:/scripts/metadata.pl?ds=sidebyside diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 914b5127b..51dcc425b 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -152,6 +152,7 @@ sub target_config_features(@) { while ($_ = shift @_) { /broken/ and $ret .= "\tdepends BROKEN\n"; /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n"; + /gpio/ and $ret .= "\tselect GPIO_SUPPORT\n"; /pci/ and $ret .= "\tselect PCI_SUPPORT\n"; /usb/ and $ret .= "\tselect USB_SUPPORT\n"; /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n"; @@ -159,6 +160,7 @@ sub target_config_features(@) { /jffs2/ and $ret .= "\tselect USES_JFFS2\n"; /ext2/ and $ret .= "\tselect USES_EXT2\n"; /tgz/ and $ret .= "\tselect USES_TGZ\n"; + /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n"; } return $ret; } @@ -173,6 +175,13 @@ sub target_name($) { } } +sub kver($) { + my $v = shift; + $v =~ tr/\./_/; + $v =~ /(\d+_\d+_\d+)(_\d+)?/ and $v = $1; + return $v; +} + sub print_target($) { my $target = shift; my $features = target_config_features(@{$target->{features}}); @@ -190,10 +199,12 @@ sub print_target($) { undef $help; } + my $v = kver($target->{version}); $confstr = <{conf} bool "$target->{name}" select LINUX_$kernel + select LINUX_$v EOF if ($target->{subtarget}) { $confstr .= "\tdepends TARGET_$target->{boardconf}\n"; @@ -296,6 +307,16 @@ EOF $target->{subtarget} or print "\t\tdefault \"".$target->{board}."\" if TARGET_".$target->{conf}."\n"; } + my %kver; + foreach my $target (@target) { + my $v = kver($target->{version}); + next if $kver{$v}; + $kver{$v} = 1; + print <