diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-16 03:37:11 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-25 13:01:22 -0400 |
commit | d8821622c889d9dbc1a31b16e726717394954596 (patch) | |
tree | a0f552ca5fb24c241905946c1d8de2b51845e018 /Makefile | |
parent | baa16684b0eb4e590c7e0e65fff4d348c877bc4e (diff) |
kbuild: move 'scripts' target below
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -565,14 +565,6 @@ endif | |||
565 | export KBUILD_MODULES KBUILD_BUILTIN | 565 | export KBUILD_MODULES KBUILD_BUILTIN |
566 | 566 | ||
567 | ifeq ($(KBUILD_EXTMOD),) | 567 | ifeq ($(KBUILD_EXTMOD),) |
568 | # Additional helpers built in scripts/ | ||
569 | # Carefully list dependencies so we do not try to build scripts twice | ||
570 | # in parallel | ||
571 | PHONY += scripts | ||
572 | scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \ | ||
573 | asm-generic gcc-plugins | ||
574 | $(Q)$(MAKE) $(build)=$(@) | ||
575 | |||
576 | # Objects we will link into vmlinux / subdirs we need to visit | 568 | # Objects we will link into vmlinux / subdirs we need to visit |
577 | init-y := init/ | 569 | init-y := init/ |
578 | drivers-y := drivers/ sound/ firmware/ | 570 | drivers-y := drivers/ sound/ firmware/ |
@@ -1068,6 +1060,13 @@ endef | |||
1068 | include/config/kernel.release: include/config/auto.conf FORCE | 1060 | include/config/kernel.release: include/config/auto.conf FORCE |
1069 | $(call filechk,kernel.release) | 1061 | $(call filechk,kernel.release) |
1070 | 1062 | ||
1063 | # Additional helpers built in scripts/ | ||
1064 | # Carefully list dependencies so we do not try to build scripts twice | ||
1065 | # in parallel | ||
1066 | PHONY += scripts | ||
1067 | scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \ | ||
1068 | asm-generic gcc-plugins | ||
1069 | $(Q)$(MAKE) $(build)=$(@) | ||
1071 | 1070 | ||
1072 | # Things we need to do before we recursively start building the kernel | 1071 | # Things we need to do before we recursively start building the kernel |
1073 | # or the modules are listed in "prepare". | 1072 | # or the modules are listed in "prepare". |