initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_KTAP
|
||||
bool "ktap"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
ktap is a script-based dynamic tracing tool for Linux
|
||||
|
||||
It uses a scripting language and lets users trace the Linux
|
||||
kernel dynamically. ktap is designed to give operational
|
||||
insights with interoperability that allows users to tune,
|
||||
troubleshoot and extend kernel and application.
|
||||
It's similar to Linux Systemtap and Solaris Dtrace.
|
||||
|
||||
ktap doesn't support kernels older than 3.1.
|
||||
|
||||
To be able to resolve symbols in DSO and for sdt, you need to
|
||||
enable elfutils.
|
||||
|
||||
Your kernel must have CONFIG_EVENT_TRACING,
|
||||
CONFIG_PERF_EVENTS, and CONFIG_DEBUG_FS enabled to compile.
|
||||
|
||||
Buildroot automatically enables these in the kernel
|
||||
configuration.
|
||||
|
||||
http://www.ktap.org
|
||||
|
||||
comment "ktap needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
comment "ktap needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 44a0808d57175cf9d15466f720e1e10d5ed1abc3497aedf9ddd6469545552345 ktap-23bc7a4a94bd9e4e1b8b7c06632e61c041d57b5f.tar.gz
|
||||
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 LICENSE-GPL
|
||||
@@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
#
|
||||
# ktap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KTAP_VERSION = 23bc7a4a94bd9e4e1b8b7c06632e61c041d57b5f
|
||||
KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
|
||||
KTAP_LICENSE = GPL-2.0
|
||||
KTAP_LICENSE_FILES = LICENSE-GPL
|
||||
|
||||
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
|
||||
endef
|
||||
|
||||
define KTAP_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
|
||||
endef
|
||||
|
||||
KTAP_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
|
||||
|
||||
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
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user