Jakub Sitnicki ab81e203bc 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
2019-10-20 18:21:21 -07:00
..
2019-09-22 10:34:46 -07:00
2019-07-11 18:35:30 -07:00
2019-09-25 17:51:40 -07:00
2017-03-28 16:16:52 +02:00
2019-08-12 15:00:37 -06:00
2019-09-20 08:36:47 -07:00
2017-11-14 18:25:40 -08:00
2019-09-22 10:34:46 -07:00
2019-05-06 11:12:09 -07:00
2014-08-20 16:03:45 +02:00