buildroot: allow enabling MIPS16 user-space build
[openwrt/staging/mkresin.git] / scripts / metadata.pl
index bd6dbc54ac02b9ba1fb379c51deae64418228346..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;
        }
@@ -270,7 +272,7 @@ sub gen_target_config() {
        print <<EOF;
 choice
        prompt "Target System"
-       default TARGET_brcm47xx
+       default TARGET_ar71xx
        reset if !DEVEL
        
 EOF