]> git.baikalelectronics.ru Git - kernel.git/commit
net: move CONFIG_NET guard to top Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 Jan 2021 23:16:55 +0000 (08:16 +0900)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 01:03:52 +0000 (17:03 -0800)
commit32793a258e0e272a5b87887a3993e0daf79828ac
tree797ee0df9ca5c32291a76ba54603d1667de9f7bd
parent4dd3a6685927b6f9c82a5fe7d8d912be0408fcad
net: move CONFIG_NET guard to top Makefile

When CONFIG_NET is disabled, nothing under the net/ directory is
compiled. Move the CONFIG_NET guard to the top Makefile so the net/
directory is entirely skipped.

When Kbuild visits net/Makefile, CONFIG_NET is obvioulsy 'y' because
CONFIG_NET is a bool option. Clean up net/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210125231659.106201-1-masahiroy@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Makefile
net/Makefile