kbuild: Generate modules.builtin in make modules

Generating the file in make modules_install was broken as well, because
it didn't work in a readonly filesystem and otherwise it generated a
root-owned file which is not wanted.

Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Michal Marek <mmarek@suse.cz>

+2 -2
+2 -2
Makefile
··· 1095 1095 # using awk while concatenating to the final file. 1096 1096 1097 1097 PHONY += modules 1098 - modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) 1098 + modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin 1099 1099 $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order 1100 1100 @$(kecho) ' Building modules, stage 2.'; 1101 1101 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost ··· 1117 1117 modules_install: _modinst_ _modinst_post 1118 1118 1119 1119 PHONY += _modinst_ 1120 - _modinst_: modules.builtin 1120 + _modinst_: 1121 1121 @if [ -z "`$(DEPMOD) -V 2>/dev/null | grep module-init-tools`" ]; then \ 1122 1122 echo "Warning: you may need to install module-init-tools"; \ 1123 1123 echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\