[Buildroot] [git commit] kmod: needs largefile

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 4 18:29:54 UTC 2015

commit: http://git.buildroot.net/buildroot/commit/?id=6b185834163ea259b6b24c8bb65a876421282648
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Since version 20 it requires largefile support.

 - Disable --disable-largefile. We already had possible bugs in the
   index implementation if this were passed. It's now fixed, but it's
   never tested. Disable it.

Fix build failure:
configure: error: --disable-largefile is not supported by kmod
package/pkg-generic.mk:172: recipe for target 'output/build/kmod-20/.stamp_configured' failed


 - use two separate 'depends on' conditions for BR2_STATIC_LIBS and
   BR2_LARGEFILE, like we do in most packages.
 - take this opportunity to also indicate the dependency on dynamic
   library in the comment, which was missing until now.]

Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
Cc: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 package/kmod/Config.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/kmod/Config.in b/package/kmod/Config.in
index 8703e82..8d8a993 100644
--- a/package/kmod/Config.in
+++ b/package/kmod/Config.in
@@ -1,6 +1,7 @@
 	bool "kmod"
 	depends on !BR2_STATIC_LIBS
+	depends on BR2_LARGEFILE
 	  handle kernel modules
@@ -16,3 +17,6 @@ config BR2_PACKAGE_KMOD_TOOLS
 	  modinfo, modprobe, rmmod).
+comment "kmod needs a toolchain w/ largefile, dynamic library"
+	depends on !BR2_LARGEFILE || BR2_STATIC_LIBS

More information about the buildroot mailing list