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.
19 while ($_ = shift @_) {
20 /broken/ and $ret .= "\tdepends BROKEN\n";
21 /pci/ and $ret .= "\tselect PCI_SUPPORT\n";
22 /usb/ and $ret .= "\tselect USB_SUPPORT\n";
23 /atm/ and $ret .= "\tselect ATM_SUPPORT\n";
24 /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
25 /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
26 /jffs2/ and $ret .= "\tselect USES_JFFS2\n";
27 /ext2/ and $ret .= "\tselect USES_EXT2\n";
34 /^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
35 my $conf = uc $3.'_'.$2;
43 push @target, $target;
45 /^Target-Name:\s*(.+)\s*$/ and $target->{name
} = $1;
46 /^Target-Path:\s*(.+)\s*$/ and $target->{path
} = $1;
47 /^Target-Arch:\s*(.+)\s*$/ and $target->{arch
} = $1;
48 /^Target-Features:\s*(.+)\s*$/ and do {
50 $target->{features
} = $f;
51 @
$f = split /\s+/, $1;
53 /^Target-Description:/ and do {
59 $target->{desc
} = $desc;
61 /^Linux-Version:\s*(.+)\s*$/ and $target->{version
} = $1;
62 /^Linux-Release:\s*(.+)\s*$/ and $target->{release
} = $1;
63 /^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch
} = $1;
64 /^Default-Packages:\s*(.+)\s*$/ and do {
65 my @pkgs = split /\s+/, $1;
66 $target->{defaultpkgs
} = \
@pkgs;
68 /^Target-Profile:\s*(.+)\s*$/ and do {
69 $profiles = $target->{profiles
} or $target->{profiles
} = $profiles = [];
73 push @
$profiles, $profile;
75 /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name
} = $1;
76 /^Target-Profile-Packages:\s*(.+)\s*$/ and do {
77 my @pkgs = split /\s+/, $1;
78 $profile->{pkgs
} = \
@pkgs;
83 $a->{name
} cmp $b->{name
}
89 prompt "Target System"
90 default LINUX_2_4_BRCM
94 foreach $target (@target) {
95 my $features = features
(@
{$target->{features
}});
96 my $help = $target->{desc
};
100 $help =~ s/^\s*/\t /mg;
101 $help = "\thelp\n$help";
107 config LINUX_$target->{conf}
108 bool "$target->{name}"
109 select $target->{arch}
119 bool "UNSUPPORTED little-endian arm platform"
124 config LINUX_2_6_CRIS
125 bool "UNSUPPORTED cris platform"
130 config LINUX_2_6_M68K
131 bool "UNSUPPORTED m68k platform"
137 bool "UNSUPPORTED little-endian sh3 platform"
142 config LINUX_2_6_SH3EB
143 bool "UNSUPPORTED big-endian sh3 platform"
149 bool "UNSUPPORTED little-endian sh4 platform"
154 config LINUX_2_6_SH4EB
155 bool "UNSUPPORTED big-endian sh4 platform"
160 config LINUX_2_6_SPARC
161 bool "UNSUPPORTED sparc platform"
171 prompt "Target Profile"
175 foreach $target (@target) {
178 $profiles = $target->{profiles
} or $profiles = [
185 foreach my $profile (@
$profiles) {
187 config LINUX_$target->{conf}_$profile->{id}
188 bool "$profile->{name}"
189 depends LINUX_$target->{conf}
191 foreach my $pkg (@
{$target->{defaultpkgs
}}, @
{$profile->{pkgs
}}) {
192 print "\tselect DEFAULT_$pkg\n";
This page took 0.054363 seconds and 5 git commands to generate.