X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ea4600ff65ca71a211a2b820dfecc114790aef4a..147800af355a7388117e168572489b3e64c51a33:/scripts/metadata.pl diff --git a/scripts/metadata.pl b/scripts/metadata.pl index ca00fcae6..54ac06390 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -549,9 +549,10 @@ EOF print <{name} bool "$feature->{title}" - help -$feature->{description} EOF + $feature->{description} =~ /\w/ and do { + print "\t\thelp\n".$feature->{description}."\n"; + }; } print "endchoice\n" } @@ -620,6 +621,9 @@ sub gen_package_mk() { if ($config) { $pkg->{buildonly} and $config = ""; print "package-$config += $pkg->{subdir}$pkg->{src}\n"; + if ($pkg->{variant}) { + print "\$(curdir)/$pkg->{subdir}$pkg->{src}/variants += \$(if $config,$pkg->{variant})\n" + } $pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n"; }