X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2Fmetadata.pl;h=7902dec3efb90063bc01e29f70d8cbb909b9ef71;hb=7a8066735d7694d6b782aa76daa6a3be8a7fb60c;hp=c963964ba3ad8e7d781b3f17cb995a6fd518c5ff;hpb=900de421864beceaf7a17142dd1f1f56caadafb2;p=oweals%2Fopenwrt.git diff --git a/scripts/metadata.pl b/scripts/metadata.pl index c963964ba3..7902dec3ef 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -158,11 +158,12 @@ sub target_config_features(@) { /pci/ and $ret .= "\tselect PCI_SUPPORT\n"; /pcie/ and $ret .= "\tselect PCIE_SUPPORT\n"; /usb/ and $ret .= "\tselect USB_SUPPORT\n"; + /usbgadget/ and $ret .= "\tselect USB_GADGET_SUPPORT\n"; /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n"; /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 +264,7 @@ sub gen_target_config() { print <{"$parent_condition:$depend"}; + $seen->{"$parent_condition:$depend"} = 1; if ($depend =~ /^(.+):(.+)$/) { if ($1 ne "PACKAGE_$pkgname") { if ($condition) { @@ -433,9 +437,7 @@ sub mconf_depends { } $depend = $2; } - next if $seen->{$depend}; next if $package{$depend} and $package{$depend}->{buildonly}; - $seen->{$depend} = 1; if ($vdep = $package{$depend}->{vdepends}) { $depend = join("||", map { "PACKAGE_".$_ } @$vdep); } else {