diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-30 20:58:45 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-09 08:44:37 -0400 |
commit | 43c78d88036e47949a5af2fac0067e7ebaaf7dd0 (patch) | |
tree | 1ed4654119e717c498b9d62424d9b46099e254a3 /Makefile | |
parent | 7199ff7d74003b5aad1e6328bf6128cd8ceea735 (diff) |
kbuild: compile-test kernel headers to ensure they are self-contained
The headers in include/ are globally used in the kernel source tree
to provide common APIs. They are included from external modules, too.
It will be useful to make as many headers self-contained as possible
so that we do not have to rely on a specific include order.
There are more than 4000 headers in include/. In my rough analysis,
70% of them are already self-contained. With efforts, most of them
can be self-contained.
For now, we must exclude more than 1000 headers just because they
cannot be compiled as standalone units. I added them to header-test-.
The blacklist was mostly generated by a script, so the reason of the
breakage should be checked later.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -618,6 +618,7 @@ ifeq ($(KBUILD_EXTMOD),) | |||
618 | init-y := init/ | 618 | init-y := init/ |
619 | drivers-y := drivers/ sound/ | 619 | drivers-y := drivers/ sound/ |
620 | drivers-$(CONFIG_SAMPLES) += samples/ | 620 | drivers-$(CONFIG_SAMPLES) += samples/ |
621 | drivers-$(CONFIG_KERNEL_HEADER_TEST) += include/ | ||
621 | net-y := net/ | 622 | net-y := net/ |
622 | libs-y := lib/ | 623 | libs-y := lib/ |
623 | core-y := usr/ | 624 | core-y := usr/ |