scripts/metadata.pl: add support for generating profile make code for the image builder

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2016-05-13 16:31:58 +02:00
parent 111285e742
commit 0d10ada19c
2 changed files with 22 additions and 6 deletions

View File

@@ -112,6 +112,11 @@ sub parse_target_metadata($) {
packages => []
}
];
$target->{sort} and @{$target->{profiles}} = sort {
$a->{priority} <=> $b->{priority} or
$a->{name} cmp $b->{name};
} @{$target->{profiles}};
}
return @target;
}