X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b900f0c9364c969fb97f815bcc27fda8403ebb7d..a48e542b719814d32629d34d4b7fd87e7db73ed3:/scripts/metadata.pl diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f84bd462f..2898289bc 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -151,6 +151,7 @@ sub target_config_features(@) { while ($_ = shift @_) { /broken/ and $ret .= "\tdepends BROKEN\n"; + /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n"; /pci/ and $ret .= "\tselect PCI_SUPPORT\n"; /usb/ and $ret .= "\tselect USB_SUPPORT\n"; /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n"; @@ -172,6 +173,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}}); @@ -189,10 +197,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"; @@ -295,6 +305,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 <