@@ -37,6 +37,8 @@ Build-Depends:
libtool <!stage1>,
uuid-dev <!stage1>,
libnuma-dev [amd64 arm64 ppc64el s390x] <!stage1>,
+ libtraceevent-dev <!stage1>,
+ libtracefs-dev <!stage1>,
dkms <!stage1>,
curl <!stage1>,
zstd <!stage1>,
@@ -16,6 +16,7 @@ do_tools_perf_python = true
do_tools_bpftool = true
do_tools_x86 = true
do_tools_hyperv = true
+do_tools_rtla = true
do_extras_package = true
do_tools_acpidbg = true
do_lib_rust = true
@@ -17,5 +17,6 @@ do_tools_perf = true
do_tools_perf_jvmti = true
do_tools_perf_python = true
do_tools_bpftool = true
+do_tools_rtla = true
do_dtbs = true
@@ -13,5 +13,6 @@ do_tools_perf = true
do_tools_perf_jvmti = true
do_tools_perf_python = true
do_tools_bpftool = true
+do_tools_rtla = true
do_dtbs = true
@@ -14,5 +14,6 @@ do_tools_perf = true
do_tools_perf_jvmti = true
do_tools_perf_python = true
do_tools_bpftool = true
+do_tools_rtla = true
#do_flavour_image_package = false
@@ -17,3 +17,4 @@ do_tools_perf = true
do_tools_perf_jvmti = true
do_tools_perf_python = true
do_tools_bpftool = true
+do_tools_rtla = false
@@ -352,6 +352,9 @@ endif
ifeq ($(do_tools_cpupower),true)
$(LN) ../../$(src_pkg_name)-tools-$(abi_release)/cpupower $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
endif
+ifeq ($(do_tools_rtla),true)
+ $(LN) ../../$(src_pkg_name)-tools-$(abi_release)/rtla $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
+endif
ifeq ($(do_tools_perf),true)
$(LN) ../../$(src_pkg_name)-tools-$(abi_release)/perf $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
ifeq ($(do_tools_perf_jvmti),true)
@@ -641,6 +644,9 @@ endif
ifeq ($(do_tools_acpidbg),true)
cd $(builddirpa)/tools/power/acpi && make clean && make CFLAGS="-g -O2 -static -I$(builddirpa)/include" CROSS_COMPILE=$(CROSS_COMPILE) acpidbg
endif
+ifeq ($(do_tools_rtla),true)
+ cd $(builddirpa)/tools/tracing/rtla && make clean && make CFLAGS='-g -O -Wall -I/usr/include/tracefs -I/usr/include/traceevent -DVERSION="\"6.8.1\""' static
+endif
ifeq ($(do_tools_cpupower),true)
make -C $(builddirpa)/tools/power/cpupower \
CROSS_COMPILE=$(CROSS_COMPILE) \
@@ -697,6 +703,10 @@ ifeq ($(do_tools_cpupower),true)
install -m755 $(builddirpa)/tools/power/cpupower/cpupower \
$(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
endif
+ifeq ($(do_tools_rtla),true)
+ install -m755 $(builddirpa)/tools/tracing/rtla/rtla-static \
+ $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)/rtla
+endif
ifeq ($(do_tools_perf),true)
install -m755 $(builddirpa)/tools/perf/perf $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
ifeq ($(do_tools_perf_jvmti),true)
@@ -89,6 +89,8 @@ ifeq ($(do_tools_common),true)
install -m755 debian/tools/generic $(toolsbin)/cpupower
install -m644 $(CURDIR)/tools/power/cpupower/man/*.1 $(toolsman)/man1/
+ install -m755 debian/tools/generic $(toolsbin)/rtla
+
install -m755 debian/tools/generic $(toolsbin)/perf
install -m755 debian/tools/generic $(toolssbin)/bpftool
BugLink: https://bugs.launchpad.net/bugs/2059080 Signed-off-by: Andrea Righi <andrea.righi@canonical.com> --- debian.master/control.stub.in | 2 ++ debian.master/rules.d/amd64.mk | 1 + debian.master/rules.d/arm64.mk | 1 + debian.master/rules.d/armhf.mk | 1 + debian.master/rules.d/ppc64el.mk | 1 + debian.master/rules.d/s390x.mk | 1 + debian/rules.d/2-binary-arch.mk | 10 ++++++++++ debian/rules.d/3-binary-indep.mk | 2 ++ 8 files changed, 19 insertions(+)