On Fri, Jul 12, 2024 at 12:47 PM Eduard Zingerman <eddyz87@xxxxxxxxx> wrote: > > On Fri, 2024-07-12 at 12:20 -0700, Andrii Nakryiko wrote: > > [...] > > > > An alternative fix would be to specify additional dependencies for > > > core_reloc.test.o (and others) directly, e.g.: > > > > > > core_reloc.test.o: test_core_reloc_module.bpf.o ... > > > > > > (with correct trunner prefix) > > > > I was about to say that not all tests use BPF skeleton headers just > > yet, so we have to have a way to explicitly specify dependencies. I > > think a separate list should be good enough for now, and in parallel > > we should try to switch remaining tests to skeleton headers. Even if > > we don't want to convert tests themselves to using skeleton structs, > > we can convert them to use elf_bytes from skeleton headers instead of > > loading .bpf.o files from disk. That should eliminate the need for > > extra dependencies. > > For the scope of this patch-set, I'd say specifying dependencies > in the Makefile should be ok. > Or would you prefer migrating tests to use elf bytes? I don't particularly care. If we don't do that, then we waste some effort to specify dependencies manually, just to remove them later. So it might be worth it to do a quick switch to <skel>__elf_bytes(), ending up with a better end state earlier. But I don't feel strongly about any of this, so it's up to you guys. > > [...]