buildroot: allow enabling MIPS16 user-space build
[openwrt/staging/mkresin.git] / scripts / metadata.pl
index 7afc3889270158df98afbc88875f16081b5780ea..6249127e3ddfc158626a8e1ab8f7adf91221e2e9 100755 (executable)
@@ -174,6 +174,7 @@ sub target_config_features(@) {
                /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
                /powerpc64/ and $ret .= "\tselect powerpc64\n";
                /nommu/ and $ret .= "\tselect NOMMU\n";
+               /mips16/ and $ret .= "\tselect HAS_MIPS16\n";
        }
        return $ret;
 }
@@ -233,6 +234,7 @@ EOF
        }
        if (@{$target->{subtargets}} > 0) {
                $confstr .= "\tselect HAS_SUBTARGETS\n";
+               grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends BROKEN\n";
        } else {
                $confstr .= $features;
        }