Re: [PATCH bpf-next v2] selftests/bpf: use auto-dependencies for test objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, July 16th, 2024 at 5:57 PM, Eduard Zingerman <eddyz87@xxxxxxxxx> wrote:
 
> I don't like .test.d dependency on all .bpf.o files (the v3 change)
> as it does not encode the dependency we have:
> test_progs depends on core_reloc.bpf.o at runtime.

I talked to Eduard off-list, and in his view this is the most
appropriate way to leave a catch-all dependency:

    $(OUTPUT)/$(TRUNNER_BINARY): $(TRUNNER_BPF_OBJS)

As opposed to original:

    $(TRUNNER_TEST_OBJS): $(TRUNNER_OUTPUT)/%.test.o:			\
                      ...
   		          $(TRUNNER_BPF_OBJS)				\
                      ...

Or v3:

    $(TRUNNER_TEST_OBJS:.o=.d): $(TRUNNER_OUTPUT)/%.test.d:		\
                            ...
                                $(TRUNNER_BPF_OBJS)			\
                            ...





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux