+ $confstr .= $features;
+ }
+
+ $confstr .= "$help\n\n";
+ print $confstr;
+}
+
+sub gen_target_config() {
+ my @target = parse_target_metadata();
+
+ my @target_sort = sort {
+ target_name($a) cmp target_name($b);
+ } @target;
+
+
+ print <<EOF;
+choice
+ prompt "Target System"
+ default TARGET_brcm_2_4
+ reset if !DEVEL
+
+EOF
+
+ foreach my $target (@target_sort) {
+ next if $target->{subtarget};
+ print_target($target);