metadata.pl: add support for forcing sorting of profiles
Used to mix device profiles (specified in the image makefile) with regular target profiles. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -282,6 +282,10 @@ EOF
|
||||
|
||||
foreach my $target (@target) {
|
||||
my $profiles = $target->{profiles};
|
||||
$target->{sort} and @$profiles = sort {
|
||||
$a->{priority} <=> $b->{priority} or
|
||||
$a->{name} cmp $b->{name};
|
||||
} @$profiles;
|
||||
|
||||
foreach my $profile (@$profiles) {
|
||||
print <<EOF;
|
||||
|
||||
Reference in New Issue
Block a user