build: implement support for selecting multiple device profiles
[openwrt/staging/florian.git] / scripts / metadata.pm
index b3f34f79e9fef9300ed5783b25923b64525a9a5c..c7f8532b54e36e93beac06096f57f046694df5be 100644 (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;