Re: [PATCH v2] kbuild: add support for ensuring headers are self-contained

From: Masahiro Yamada
Date: Tue Jun 18 2019 - 11:51:20 EST


On Wed, Jun 5, 2019 at 2:26 AM Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:
>
> On Tue, Jun 04, 2019 at 03:42:48PM +0300, Jani Nikula wrote:
> > Sometimes it's useful to be able to explicitly ensure certain headers
> > remain self-contained, i.e. that they are compilable as standalone
> > units, by including and/or forward declaring everything they depend on.
> >
> > Add special target header-test-y where individual Makefiles can add
> > headers to be tested if CONFIG_HEADER_TEST is enabled. This will
> > generate a dummy C file per header that gets built as part of extra-y.
> >
> > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> > Cc: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
> > Cc: Michal Marek <michal.lkml@xxxxxxxxxxx>
> > Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
> > Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
>
> Looks good, thanks.
>
> Reviewed-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
>

Applied to linux-kbuild.
Thanks.


--
Best Regards
Masahiro Yamada