kbuild: move 'scripts' target below
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 16 Mar 2018 07:37:11 +0000 (16:37 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:01:22 +0000 (02:01 +0900)
Just a trivial change to prepare for the next commit.
This target is still invisible from external module building.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile

index 37574e3d21fecf9880e2e9aeef207b7ab52e4d54..5aa07da475bc3b35173433ca795a813f8bfa591a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -565,14 +565,6 @@ endif
 export KBUILD_MODULES KBUILD_BUILTIN
 
 ifeq ($(KBUILD_EXTMOD),)
-# Additional helpers built in scripts/
-# Carefully list dependencies so we do not try to build scripts twice
-# in parallel
-PHONY += scripts
-scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \
-        asm-generic gcc-plugins
-       $(Q)$(MAKE) $(build)=$(@)
-
 # Objects we will link into vmlinux / subdirs we need to visit
 init-y         := init/
 drivers-y      := drivers/ sound/ firmware/
@@ -1068,6 +1060,13 @@ endef
 include/config/kernel.release: include/config/auto.conf FORCE
        $(call filechk,kernel.release)
 
+# Additional helpers built in scripts/
+# Carefully list dependencies so we do not try to build scripts twice
+# in parallel
+PHONY += scripts
+scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \
+        asm-generic gcc-plugins
+       $(Q)$(MAKE) $(build)=$(@)
 
 # Things we need to do before we recursively start building the kernel
 # or the modules are listed in "prepare".