]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix build error of 'make nsdeps' in clean tree
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 3 Oct 2019 07:58:24 +0000 (16:58 +0900)
committerJessica Yu <jeyu@kernel.org>
Mon, 7 Oct 2019 16:25:13 +0000 (18:25 +0200)
commite7af3040329010727d6997046f736138e548ab90
tree1e1c25c1a7619db5f463736b6ede0e939d5b7a83
parent5d68b9ff79c2b5d870916b5dfc4fb1442fe11289
kbuild: fix build error of 'make nsdeps' in clean tree

Running 'make nsdeps' in a clean source tree fails as follows:

$ make -s clean; make -s defconfig; make nsdeps
   [ snip ]
awk: fatal: cannot open file `init/modules.order' for reading (No such file or directory)
make: *** [Makefile;1307: modules.order] Error 2
make: *** Deleting file 'modules.order'
make: *** Waiting for unfinished jobs....

The cause of the error is 'make nsdeps' does not build modules at all.
Set KBUILD_MODULES to fix it.

Reviewed-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Makefile