aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/target-metadata.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/target-metadata.pl b/scripts/target-metadata.pl
index 3422572d16..7f7dc6d4ee 100755
--- a/scripts/target-metadata.pl
+++ b/scripts/target-metadata.pl
@@ -276,8 +276,12 @@ menu "Target Devices"
EOF
foreach my $target (@target) {
- my $profiles = $target->{profiles};
- foreach my $profile (@{$target->{profiles}}) {
+ my @profiles = sort {
+ my $x = $a->{name};
+ my $y = $b->{name};
+ "\L$x" cmp "\L$y";
+ } @{$target->{profiles}};
+ foreach my $profile (@profiles) {
next unless $profile->{id} =~ /^DEVICE_/;
print <<EOF;
menuconfig TARGET_DEVICE_$target->{conf}_$profile->{id}