2013-12-10 12:59:41 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
2014-06-24 09:34:20 +02:00
|
|
|
# ktap
|
2013-12-10 12:59:41 +01:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-02-19 17:27:56 +01:00
|
|
|
KTAP_VERSION = eb66d40310c93dc82bc8eac889744c1ed1f01f7b
|
2013-12-10 12:59:41 +01:00
|
|
|
KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
|
|
|
|
KTAP_LICENSE = GPLv2
|
|
|
|
KTAP_LICENSE_FILES = LICENSE-GPL
|
|
|
|
|
2013-12-18 19:57:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
|
|
|
KTAP_DEPENDENCIES += elfutils
|
|
|
|
else
|
|
|
|
KTAP_FLAGS += NO_LIBELF=1
|
|
|
|
endif
|
|
|
|
|
2013-12-10 12:59:41 +01:00
|
|
|
define KTAP_BUILD_CMDS
|
2013-12-18 19:57:03 +01:00
|
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) $(KTAP_FLAGS) ktap
|
2013-12-10 12:59:41 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KTAP_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
|
|
|
|
endef
|
|
|
|
|
2015-07-12 02:21:35 +02:00
|
|
|
KTAP_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
|
|
|
|
|
|
|
|
$(eval $(kernel-module))
|
2013-12-10 12:59:41 +01:00
|
|
|
$(eval $(generic-package))
|