Home
last modified time | relevance | path

Searched hist:ab81e203bc0d4a4542bca2498535f8761a3cfd92 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A DMakefilediff ab81e203bc0d4a4542bca2498535f8761a3cfd92 Sun Oct 20 06:23:44 CDT 2019 Jakub Sitnicki <jakub@cloudflare.com> scripts/bpf: Print an error when known types list needs updating

Don't generate a broken bpf_helper_defs.h header if the helper script needs
updating because it doesn't recognize a newly added type. Instead print an
error that explains why the build is failing, clean up the partially
generated header and stop.

v1->v2:
- Switched from temporary file to .DELETE_ON_ERROR.

Fixes: 456a513bb5d4 ("scripts/bpf: Emit an #error directive known types list needs updating")
Suggested-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191020112344.19395-1-jakub@cloudflare.com