build system: introduce a new feature called build variants. it allows building a package multiple times in one pass with different build dirs, based on the same build settings. replaces templating hacks like the one used in the hostapd package
SVN-Revision: 18357
This commit is contained in:
@@ -620,6 +620,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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user