build: implement support for selecting multiple device profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2016-05-22 22:02:31 +02:00
parent 9ae952cf8c
commit f8ebbbc568
3 changed files with 48 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ sub parse_target_metadata($) {
priority => 999,
packages => []
};
$1 =~ /^DEVICE_/ and $target->{has_devices} = 1;
push @{$target->{profiles}}, $profile;
};
/^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;