mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
12a9c3f295
Add a check for BR2_PACKAGE_ELFUTILS; if this is enabled, then try to link against libelf from the elfutils package. This allows ktap to resolve symbols in userspace. The new FFI functionality in ktap is not exposed, as it currently only supports x86_64... Signed-off-by: Anders Darander <anders@chargestorm.se> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
32 lines
931 B
Makefile
32 lines
931 B
Makefile
################################################################################
|
|
#
|
|
# ktap, script-based dynamic tracing tool
|
|
#
|
|
################################################################################
|
|
|
|
KTAP_VERSION = v0.4
|
|
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
|
|
|
|
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
|
|
KTAP_DEPENDENCIES += elfutils
|
|
else
|
|
KTAP_FLAGS += NO_LIBELF=1
|
|
endif
|
|
|
|
define KTAP_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) $(KTAP_FLAGS) 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))
|