diff mbox series

[N/U,1/2] UBUNTU: SAUCE: rtla: fix deb build

Message ID 20240403051553.257864-2-andrea.righi@canonical.com
State New
Headers show
Series add Real-time Linux Analysis tool (rtla) to linux-tools | expand

Commit Message

Andrea Righi April 3, 2024, 5:13 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2059080

We need to explicitly define build rules for C object files when
building the deb, otherwise we may get the following build failure:

 make[1]: *** No rule to make target 'src/osnoise.o', needed by 'static'.  Stop.

This doesn't seem to happen when building rtla manually, but we need
it when we build the deb package, so add the extra rule to make the
build more robust.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
---
 tools/tracing/rtla/Makefile | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile
index afd18c678ff5..f4916d402c03 100644
--- a/tools/tracing/rtla/Makefile
+++ b/tools/tracing/rtla/Makefile
@@ -111,6 +111,9 @@  warnings: $(WARNINGS)
 	$(ERROR_OUT)
 endif
 
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $<
+
 rtla: $(OBJ)
 	$(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS)