X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=scripts%2Fmetadata.pl;h=250a85ed84e2e343678bf9c44221bab7cec143e7;hp=f075525e1dadea8256844edede19a3a0f12afc22;hb=b24897ee5c53b6488d1b984b63ab65220e486ed7;hpb=e9abf9f8a08bd44a3008faf1b0b9317df9b7d11d diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f075525e1d..250a85ed84 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -75,7 +75,10 @@ sub parse_target_metadata() { } close FILE; foreach my $target (@target) { - next if @{$target->{subtargets}} > 0; + if (@{$target->{subtargets}} > 0) { + $target->{profiles} = []; + next; + } @{$target->{profiles}} > 0 or $target->{profiles} = [ { id => 'Default', @@ -180,6 +183,7 @@ sub target_config_features(@) { /nommu/ and $ret .= "\tselect NOMMU\n"; /mips16/ and $ret .= "\tselect HAS_MIPS16\n"; /rfkill/ and $ret .= "\tselect RFKILL_SUPPORT\n"; + /low_mem/ and $ret .= "\tselect LOW_MEMORY_FOOTPRINT\n"; } return $ret; }