On Fri, Nov 8, 2024 at 9:35 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > > I can reproduce it with the attached config. Something like this should work I think: diff --git a/samples/rust/Makefile b/samples/rust/Makefile index f29280ec4820..37c15f05cb81 100644 --- a/samples/rust/Makefile +++ b/samples/rust/Makefile @@ -2,6 +2,8 @@ ccflags-y += -I$(src) # needed for trace events obj-$(CONFIG_SAMPLE_RUST_MINIMAL) += rust_minimal.o -obj-$(CONFIG_SAMPLE_RUST_PRINT) += rust_print.o rust_print_events.o + +obj-$(CONFIG_SAMPLE_RUST_PRINT) += rust_print_combined.o +rust_print_combined-y := rust_print.o rust_print_events.o subdir-$(CONFIG_SAMPLE_RUST_HOSTPROGS) += hostprogs Cheers, Miguel