build: add option to mark devices as BROKEN
[openwrt/staging/wigyori.git] / scripts / metadata.pm
index 1826a040a1165032f49a64f10de40ed0d75f97fe..f6dce39662d280942541303be5cd7de463a00ba0 100644 (file)
@@ -158,6 +158,10 @@ sub parse_target_metadata($) {
                };
                /^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages} = [ split(/\s+/, $1) ];
                /^Target-Profile-Description:\s*(.*)\s*/ and $profile->{desc} = get_multiline(*FILE);
+               /^Target-Profile-Broken:\s*(.+)\s*$/ and do {
+                       $profile->{broken} = 1;
+                       $profile->{default} = "n";
+               };
                /^Target-Profile-Default:\s*(.+)\s*$/ and $profile->{default} = $1;
        }
        close FILE;