aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-13 16:31:58 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-13 16:32:36 +0200
commit0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c (patch)
treeed2026f974379a235152d530945878e90ad8987c /scripts/metadata.pm
parent111285e742d075956a149dce5a817fad3de2c850 (diff)
downloadupstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.tar.gz
upstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.tar.bz2
upstream-0d10ada19c1a1bff98e2e9cc79ea1dca0fdcbe1c.zip
scripts/metadata.pl: add support for generating profile make code for the image builder
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 5f28289037..e2a739533c 100644
--- a/scripts/metadata.pm
+++ b/scripts/metadata.pm
@@ -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;
}