Re: [PATCH 2/2] makefiles: do not generate empty vmlinux.h

From: Changbin Du
Date: Tue Nov 29 2022 - 03:49:41 EST


On Mon, Nov 28, 2022 at 10:00:14PM -0800, Andrii Nakryiko wrote:
> On Sat, Nov 26, 2022 at 3:13 AM Changbin Du <changbin.du@xxxxxxxxx> wrote:
> >
> > Remove the empty vmlinux.h if bpftool failed to dump btf info.
> > The emptry vmlinux.h can hide real error when reading output
> > of make.
>
> wouldn't this be better handled by adding .DELETE_ON_ERROR: to
> bpftool's Makefile?
>
yes, let me replace it.

--
Cheers,
Changbin Du