0029-buildroot-make-it-easier-to-build-all-kmods.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Mon, 16 Mar 2015 13:23:34 +0100
  3. Subject: buildroot: make it easier to build all kmods
  4. Split out kmods from ALL to make it easier to create local builds that
  5. are compatible kmod-wise with releases.
  6. Signed-off-by: Jonas Gorski <jogo@openwrt.org>
  7. diff --git a/config/Config-build.in b/config/Config-build.in
  8. index 371ae76..8b0ebbf 100644
  9. --- a/config/Config-build.in
  10. +++ b/config/Config-build.in
  11. @@ -6,8 +6,12 @@
  12. menu "Global build settings"
  13. + config ALL_KMODS
  14. + bool "Select all kernel module packages by default"
  15. + default ALL
  16. +
  17. config ALL
  18. - bool "Select all packages by default"
  19. + bool "Select all userspace packages by default"
  20. default n
  21. comment "General build options"
  22. diff --git a/include/version.mk b/include/version.mk
  23. index 2fd605f..f6c0fe2 100644
  24. --- a/include/version.mk
  25. +++ b/include/version.mk
  26. @@ -50,7 +50,7 @@ $(lastword $(subst :, ,$(1)))
  27. endef
  28. VERSION_TAINT_SPECS := \
  29. - -ALL:no-all \
  30. + -ALL_KMODS:no-all \
  31. -IPV6:no-ipv6 \
  32. +USE_EGLIBC:eglibc \
  33. +USE_MKLIBS:mklibs \
  34. diff --git a/scripts/metadata.pl b/scripts/metadata.pl
  35. index 79f930c..4eecb0c 100755
  36. --- a/scripts/metadata.pl
  37. +++ b/scripts/metadata.pl
  38. @@ -574,7 +574,11 @@ sub print_package_config_category($) {
  39. print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." $title\n";
  40. print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n";
  41. unless ($pkg->{hidden}) {
  42. - $pkg->{default} ||= "m if ALL";
  43. + if ($pkg->{name} =~ /^kmod-/) {
  44. + $pkg->{default} ||= "m if ALL_KMODS";
  45. + } else {
  46. + $pkg->{default} ||= "m if ALL";
  47. + }
  48. }
  49. if ($pkg->{default}) {
  50. foreach my $default (split /\s*,\s*/, $pkg->{default}) {