Skip to content

Commit 0b838d7

Browse files
author
Benjamin Tissoires
committed
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>
1 parent 6fd47ef commit 0b838d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/hid/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ $(BPF_SKELS): %.skel.h: %.bpf.o $(BPFTOOL) | $(OUTPUT)
229229
$(Q)$(BPFTOOL) gen object $(<:.o=.linked1.o) $<
230230
$(Q)$(BPFTOOL) gen skeleton $(<:.o=.linked1.o) name $(notdir $(<:.bpf.o=)) > $@
231231

232-
$(OUTPUT)/%.o: %.c $(BPF_SKELS)
232+
$(OUTPUT)/%.o: %.c $(BPF_SKELS) hid_common.h
233233
$(call msg,CC,,$@)
234234
$(Q)$(CC) $(CFLAGS) -c $(filter %.c,$^) $(LDLIBS) -o $@
235235

0 commit comments

Comments
 (0)