buildroot: make it easier to build all kmods
Split out kmods from ALL to make it easier to create local builds that are compatible kmod-wise with releases. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44830
This commit is contained in:
parent
4fdb66373f
commit
9dc137397f
@ -6,8 +6,12 @@
|
||||
|
||||
menu "Global build settings"
|
||||
|
||||
config ALL_KMODS
|
||||
bool "Select all kernel module packages by default"
|
||||
default ALL
|
||||
|
||||
config ALL
|
||||
bool "Select all packages by default"
|
||||
bool "Select all userspace packages by default"
|
||||
default n
|
||||
|
||||
comment "General build options"
|
||||
|
@ -53,7 +53,7 @@ $(lastword $(subst :, ,$(1)))
|
||||
endef
|
||||
|
||||
VERSION_TAINT_SPECS := \
|
||||
-ALL:no-all \
|
||||
-ALL_KMODS:no-all \
|
||||
-IPV6:no-ipv6 \
|
||||
+USE_GLIBC:glibc \
|
||||
+USE_MKLIBS:mklibs \
|
||||
|
@ -545,8 +545,12 @@ sub print_package_config_category($) {
|
||||
print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." $title\n";
|
||||
print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n";
|
||||
unless ($pkg->{hidden}) {
|
||||
if ($pkg->{name} =~ /^kmod-/) {
|
||||
$pkg->{default} ||= "m if ALL_KMODS";
|
||||
} else {
|
||||
$pkg->{default} ||= "m if ALL";
|
||||
}
|
||||
}
|
||||
if ($pkg->{default}) {
|
||||
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
||||
print "\t\tdefault $default\n";
|
||||
|
Loading…
Reference in New Issue
Block a user