mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
bpf: makefiles: Do not generate empty vmlinux.h
Remove the empty vmlinux.h if bpftool failed to dump btf info. The empty vmlinux.h can hide real error when reading output of make. This is done by adding .DELETE_ON_ERROR special target in related makefiles. Signed-off-by: Changbin Du <changbin.du@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20221217223509.88254-3-changbin.du@gmail.com
This commit is contained in:
parent
e6b4e1d759
commit
e7f0d5cdd0
@ -289,3 +289,6 @@ FORCE:
|
|||||||
.PHONY: all FORCE bootstrap clean install-bin install uninstall
|
.PHONY: all FORCE bootstrap clean install-bin install uninstall
|
||||||
.PHONY: doc doc-clean doc-install doc-uninstall
|
.PHONY: doc doc-clean doc-install doc-uninstall
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
|
# Delete partially updated (corrupted) files on error
|
||||||
|
.DELETE_ON_ERROR:
|
||||||
|
@ -626,3 +626,6 @@ EXTRA_CLEAN := $(TEST_CUSTOM_PROGS) $(SCRATCH_DIR) $(HOST_SCRATCH_DIR) \
|
|||||||
liburandom_read.so)
|
liburandom_read.so)
|
||||||
|
|
||||||
.PHONY: docs docs-clean
|
.PHONY: docs docs-clean
|
||||||
|
|
||||||
|
# Delete partially updated (corrupted) files on error
|
||||||
|
.DELETE_ON_ERROR:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user