kernel: add a new global config symbol for enabling rfkill support (can be enabled...
[openwrt/staging/mkresin.git] / scripts / metadata.pl
index f26d8fa5e5db6cfb104f5f2ac29150d9b050bd4d..5625b8b5be0a50ad52fefdce635ae86ffbfd6ca0 100755 (executable)
@@ -177,6 +177,7 @@ sub target_config_features(@) {
                /powerpc64/ and $ret .= "\tselect powerpc64\n";
                /nommu/ and $ret .= "\tselect NOMMU\n";
                /mips16/ and $ret .= "\tselect HAS_MIPS16\n";
+               /rfkill/ and $ret .= "\tselect RFKILL_SUPPORT\n";
        }
        return $ret;
 }
@@ -762,7 +763,7 @@ sub gen_package_mk() {
                                        $idx = $subdir{$dep}.$dep;
                                }
                                $idx .= $suffix;
-                               undef $idx if $idx =~ /^(kernel\/linux)|(base-files)$/;
+                               undef $idx if $idx eq 'base-files';
                                if ($idx) {
                                        my $depline;
                                        next if $pkg->{src} eq $pkg_dep->{src}.$suffix;