kmod: don't build documentation if not needed
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 8 Nov 2012 15:25:31 +0000 (16:25 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 8 Nov 2012 15:26:12 +0000 (16:26 +0100)
No sense in building it if we throw it away in target-finalize anyway.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/kmod/kmod.mk

index c6ef6a152d2f0b7b9ac967494b08ee1535af2353..28336295df7402df5b5f581b3b19f154f0a5263e 100644 (file)
@@ -4,6 +4,10 @@ KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod/
 KMOD_INSTALL_STAGING = YES
 KMOD_DEPENDENCIES = host-pkgconf
 
+ifneq ($(BR2_HAVE_DOCUMENTATION),y)
+KMOD_CONF_OPT += --disable-manpages
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 KMOD_DEPENDENCIES += zlib
 KMOD_CONF_OPT += --with-zlib