kumquat-buildroot/package/racehound/racehound.mk
Yann E. MORIN 727bae0245 packages: ensure linux supports modules even when not using kernel-module
Some packages build kernel modules without using the kernel-module infra
(because they use custom build systems); they do not automatically get
the kernel to support modules which is ensured when using the infra.

It must be done manually for all those packages, whenever they are
enabled.

Note: the nvidia-driver case does not need the ifeq-block other packages
use, because it is already enclosed in a more stringent ifeq-block.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Noé Rubinstein <nrubinstein@aldebaran.com>
Cc: Jan Viktorin <viktorin@rehivetech.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-09-04 13:16:58 +02:00

34 lines
1.0 KiB
Makefile

################################################################################
#
# racehound
#
################################################################################
RACEHOUND_VERSION = f3375911019607a0cb6a15bf68fa62dadd6b790b
RACEHOUND_SITE = $(call github,winnukem,racehound,$(RACEHOUND_VERSION))
RACEHOUND_LICENSE = GPLv2
RACEHOUND_LICENSE_FILES = LICENSE
RACEHOUND_SUPPORTS_IN_SOURCE_BUILD = NO
RACEHOUND_DEPENDENCIES = elfutils linux
# We're building a kernel module without using the kernel-module infra,
# so we need to tell we want module support in the kernel
ifeq ($(BR2_PACKAGE_RACEHOUND),y)
LINUX_NEEDS_MODULES = y
endif
# override auto detection (uses host parameters, not cross compile
# ready)
RACEHOUND_CONF_OPTS += \
-DKERNEL_VERSION_OK=YES \
-DMODULE_BUILD_SUPPORTED=YES \
-DKERNEL_CONFIG_OK=YES \
-DKBUILD_BUILD_DIR=$(LINUX_DIR) \
-DKBUILD_VERSION_STRING=$(LINUX_VERSION_PROBED)
# cross compile environment for linux kernel module
RACEHOUND_MAKE_ENV = $(LINUX_MAKE_FLAGS)
$(eval $(cmake-package))