3 # Copyright (C) 2006 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
17 while ($_ = shift @_) {
18 /broken/ and $ret .= "\tdepends BROKEN\n";
19 /pci/ and $ret .= "\tselect PCI_SUPPORT\n";
20 /usb/ and $ret .= "\tselect USB_SUPPORT\n";
21 /atm/ and $ret .= "\tselect ATM_SUPPORT\n";
22 /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
23 /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
24 /jffs2/ and $ret .= "\tselect USES_JFFS2\n";
25 /ext2/ and $ret .= "\tselect USES_EXT2\n";
32 /^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
38 push @target, $target;
40 /^Target-Name:\s*(.+)\s*$/ and $target->{name} = $1;
41 /^Target-Path:\s*(.+)\s*$/ and $target->{path} = $1;
42 /^Target-Arch:\s*(.+)\s*$/ and $target->{arch} = $1;
43 /^Target-Features:\s*(.+)\s*$/ and do {
45 $target->{features} = $f;
46 @$f = split /\s+/, $1;
48 /^Target-Description:/ and do {
54 $target->{desc} = $desc;
56 /^Linux-Version:\s*(.+)\s*$/ and $target->{version} = $1;
57 /^Linux-Release:\s*(.+)\s*$/ and $target->{release} = $1;
58 /^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
62 $a->{name} cmp $b->{name}
66 foreach $target (@target) {
67 my $conf = uc $target->{kernel}.'_'.$target->{board};
68 my $features = features(@{$target->{features}});
69 my $help = $target->{desc};
74 $help =~ s/^\s*/\t /mg;
75 $help = "\thelp\n$help";
82 bool "$target->{name}"
83 select $target->{arch}