[kernel] fixup 2.6.34 kernel headers to properly export XT_ALIGN() to userspace
[openwrt/svn-archive/archive.git] / scripts / metadata.pl
index 70d1b40255847328d14a607ee767a82fcd41c3a7..63809c496d6c66c055b06f3c2da45b5f8fbb4105 100755 (executable)
@@ -162,7 +162,7 @@ sub target_config_features(@) {
                /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
                /jffs2/ and $ret .= "\tselect USES_JFFS2\n";
                /ext2/ and $ret .= "\tselect USES_EXT2\n";
-               /tgz/ and $ret .= "\tselect USES_TGZ\n";
+               /targz/ and $ret .= "\tselect USES_TARGZ\n";
                /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
                /ubifs/ and $ret .= "\tselect USES_UBIFS\n";
                /fpu/ and $ret .= "\tselect HAS_FPU\n";
@@ -263,7 +263,7 @@ sub gen_target_config() {
        print <<EOF;
 choice
        prompt "Target System"
-       default TARGET_brcm_2_4
+       default TARGET_brcm47xx
        reset if !DEVEL
        
 EOF
@@ -423,8 +423,9 @@ sub mconf_depends {
                my $vdep;
                my $condition = $parent_condition;
 
-               next if $seen->{$depend};
-               $seen->{$depend} = 1;
+               next if $condition eq $depend;
+               next if $seen->{"$parent_condition:$depend"};
+               $seen->{"$parent_condition:$depend"} = 1;
                if ($depend =~ /^(.+):(.+)$/) {
                        if ($1 ne "PACKAGE_$pkgname") {
                                if ($condition) {