tools/rtla: Use tools/build makefiles to build rtla
authorDaniel Bristot de Oliveira <bristot@kernel.org>
Fri, 15 Mar 2024 16:44:04 +0000 (17:44 +0100)
committerDaniel Bristot de Oliveira <bristot@kernel.org>
Wed, 20 Mar 2024 04:39:06 +0000 (05:39 +0100)
commit01474dc706cabbdaab600a46a107220ac5de9386
tree4c024a7697d572aca061e8a38d9ed8dcc93d4485
parent9d56c88e522517652213e9622dcae159e6372fd3
tools/rtla: Use tools/build makefiles to build rtla

Use tools/build/ makefiles to build rtla, inheriting the benefits of
it. For example, having a proper way to handle dependencies.

rtla is built using perf infra-structure when building inside the
kernel tree.

At this point, rtla diverges from perf in two points: Documentation
and tarball generation/build.

At the documentation level, rtla is one step ahead, placing the
documentation at Documentation/tools/rtla/, using the same build
tools as kernel documentation. The idea is to move perf
documentation to the same scheme and then share the same makefiles.

rtla has a tarball target that the (old) RHEL8 uses. The tarball was
kept using a simple standalone makefile for compatibility. The
standalone makefile shares most of the code, e.g., flags, with
regular buildings.

The tarball method was set as deprecated. If necessary, we can make
a rtla tarball like perf, which includes the entire tools/build.
But this would also require changes in the user side (the directory
structure changes, and probably the deps to build the package).

Inspired on perf and objtool.

Link: https://lkml.kernel.org/r/57563abf2715d22515c0c54a87cff3849eca5d52.1710519524.git.bristot@kernel.org
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: John Kacur <jkacur@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
tools/tracing/rtla/.gitignore
tools/tracing/rtla/Build [new file with mode: 0644]
tools/tracing/rtla/Makefile
tools/tracing/rtla/Makefile.config [new file with mode: 0644]
tools/tracing/rtla/Makefile.rtla [new file with mode: 0644]
tools/tracing/rtla/Makefile.standalone [new file with mode: 0644]
tools/tracing/rtla/src/Build [new file with mode: 0644]