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
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-03-31 12:27:11 +02:00
|
|
|
KTAP_VERSION = 23bc7a4a94bd9e4e1b8b7c06632e61c041d57b5f
|
2013-12-10 12:59:41 +01:00
|
|
|
KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
KTAP_LICENSE = GPL-2.0
|
2013-12-10 12:59:41 +01:00
|
|
|
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
|
2021-12-01 08:39:59 +01:00
|
|
|
$(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
|
2013-12-10 12:59:41 +01:00
|
|
|
endef
|
|
|
|
|
2015-07-12 02:21:35 +02:00
|
|
|
KTAP_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
|
|
|
|
|
2020-04-04 14:10:24 +02:00
|
|
|
define KTAP_LINUX_CONFIG_FIXUPS
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_DEBUG_FS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_ENABLE_DEFAULT_TRACERS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS)
|
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER)
|
|
|
|
endef
|
|
|
|
|
2015-07-12 02:21:35 +02:00
|
|
|
$(eval $(kernel-module))
|
2013-12-10 12:59:41 +01:00
|
|
|
$(eval $(generic-package))
|