IB: include SUPPORTED_DEVICES in 'make info' output
[openwrt/openwrt.git] / scripts / metadata.pm
index d9804f8dc382953c08c66518133a530d8968e7b6..a338b8caadbcb0fd8d99686260a3eb2a82e531f3 100644 (file)
@@ -140,6 +140,7 @@ sub parse_target_metadata($) {
                                id => $1,
                                name => $1,
                                has_image_metadata => 0,
+                               supported_devices => [],
                                priority => 999,
                                packages => []
                        };
@@ -148,6 +149,7 @@ sub parse_target_metadata($) {
                };
                /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name} = $1;
                /^Target-Profile-hasImageMetadata:\s*(\d+)\s*$/ and $profile->{has_image_metadata} = $1;
+               /^Target-Profile-SupportedDevices:\s*(.+)\s*$/ and $profile->{supported_devices} = [ split(/\s+/, $1) ];
                /^Target-Profile-Priority:\s*(\d+)\s*$/ and do {
                        $profile->{priority} = $1;
                        $target->{sort} = 1;