]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/rtla: Fix installation from out-of-tree build
authorBen Hutchings <benh@debian.org>
Sun, 15 Sep 2024 23:31:58 +0000 (01:31 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 3 Oct 2024 20:43:22 +0000 (16:43 -0400)
rtla now supports out-of-tree builds, but installation fails as it
still tries to install the rtla binary from the source tree.  Use the
existing macro $(RTLA) to refer to the binary.

Link: https://lore.kernel.org/ZudubuoU_JHjPZ7w@decadent.org.uk
Fixes: 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Tested-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Ben Hutchings <benh@debian.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/Makefile.rtla

index 3ff0b8970896f72e591a5dd40041443c267428d2..cc1d6b615475f0817a5d0cc9aa0537c99467c2b3 100644 (file)
@@ -38,7 +38,7 @@ BINDIR                := /usr/bin
 .PHONY: install
 install: doc_install
        @$(MKDIR) -p $(DESTDIR)$(BINDIR)
-       $(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR)
+       $(call QUIET_INSTALL,rtla)$(INSTALL) $(RTLA) -m 755 $(DESTDIR)$(BINDIR)
        @$(STRIP) $(DESTDIR)$(BINDIR)/rtla
        @test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise
        @$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise