diff options
author | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-01 16:30:09 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-04 16:10:46 +0200 |
commit | 0b838d768ccdbdfbcaed5f4b18b4bf63e53a0e0d (patch) | |
tree | b48bcfb9c10b4fafb181ca446877a1e7dd7e48b0 /tools/testing/selftests/hid | |
parent | 6fd47effe92b794c32f08504c2c64d1e40bbb543 (diff) |
selftests/hid: add dependency on hid_common.h
Allows to recompile the C tests when that file changes
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-5-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/testing/selftests/hid')
-rw-r--r-- | tools/testing/selftests/hid/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index 72be55ac4bdf..9399fa3f2f9d 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -229,7 +229,7 @@ $(BPF_SKELS): %.skel.h: %.bpf.o $(BPFTOOL) | $(OUTPUT) $(Q)$(BPFTOOL) gen object $(<:.o=.linked1.o) $< $(Q)$(BPFTOOL) gen skeleton $(<:.o=.linked1.o) name $(notdir $(<:.bpf.o=)) > $@ -$(OUTPUT)/%.o: %.c $(BPF_SKELS) +$(OUTPUT)/%.o: %.c $(BPF_SKELS) hid_common.h $(call msg,CC,,$@) $(Q)$(CC) $(CFLAGS) -c $(filter %.c,$^) $(LDLIBS) -o $@ |