3e1e7db3cc
Add ktap, a script-based dynamic tracing tool. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
816 B
Makefile
26 lines
816 B
Makefile
################################################################################
|
|
#
|
|
# ktap, script-based dynamic tracing tool
|
|
#
|
|
################################################################################
|
|
|
|
KTAP_VERSION = v0.3
|
|
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
|
|
|
|
define KTAP_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) ktap
|
|
$(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))
|