2013-12-10 12:59:41 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ktap, script-based dynamic tracing tool
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-12-18 19:57:03 +01:00
|
|
|
KTAP_VERSION = v0.4
|
2013-12-10 12:59:41 +01:00
|
|
|
KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
|
|
|
|
KTAP_SOURCE = v$(KTAP_VERSION).tar.gz
|
|
|
|
KTAP_LICENSE = GPLv2
|
|
|
|
KTAP_LICENSE_FILES = LICENSE-GPL
|
|
|
|
|
|
|
|
KTAP_DEPENDENCIES = linux
|
|
|
|
|
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
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) mod
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KTAP_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
|
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) modules_install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|