UBUNTU: [Packaging] add Real-time Linux Analysis tool (rtla) to linux-tools

BugLink: https://bugs.launchpad.net/bugs/2059080

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Andrea Righi
2024-03-26 08:46:34 +01:00
committed by Roxana Nicolescu
parent 888e7c48a1
commit fa1cbadd64
8 changed files with 19 additions and 0 deletions
+2
View File
@@ -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>,
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+10
View File
@@ -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)
+2
View File
@@ -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