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

Andrea Righi andrea.righi at canonical.com
Wed Apr 3 05:13:29 UTC 2024


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 at canonical.com>
---
 tools/tracing/rtla/Makefile | 3 +++
 1 file changed, 3 insertions(+)

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)
 
-- 
2.43.0




More information about the kernel-team mailing list