################################################################################
#
# racehound
#
################################################################################

RACEHOUND_VERSION = f09f06fcc3c77c8c5541be3ba5be80aa8148ce0c
RACEHOUND_SITE = $(call github,kmrov,racehound,$(RACEHOUND_VERSION))
RACEHOUND_LICENSE = GPL-2.0
RACEHOUND_LICENSE_FILES = LICENSE
RACEHOUND_SUPPORTS_IN_SOURCE_BUILD = NO

RACEHOUND_DEPENDENCIES = elfutils linux

# 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))
