It is quite common that a .bpf.c file depends on a header file.
However, the current FindBpfObject.cmake does not allow one to specify such dependency, so modification to the header file does not trigger recompilation of the BPF object file (and subsequent skeleton header).
This PR addresses the issue by allowing one to write, for example,
bpf_object(app app.bpf.c app.h utils.h)
So that the change to the header files (app.h and utils.h is tracked).
It is quite common that a
.bpf.c
file depends on a header file.However, the current
FindBpfObject.cmake
does not allow one to specify such dependency, so modification to the header file does not trigger recompilation of the BPF object file (and subsequent skeleton header).This PR addresses the issue by allowing one to write, for example,
So that the change to the header files (
app.h
andutils.h
is tracked).