diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-28 22:56:31 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-01 09:09:38 -0500 |
commit | ce2fd53a10c7d17934c005029382f8310e565504 (patch) | |
tree | 1a2069d9a332cb34068ef9956fc960cefa6b29e8 | |
parent | 059bc9fc375e00f159f9d7c5ca9d18ab843f95de (diff) |
kbuild: descend into scripts/gcc-plugins/ via scripts/Makefile
Now that 'archprepare' depends on 'scripts', Kbuild can descend into
scripts/gcc-plugins in a more standard way.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | scripts/Makefile | 3 | ||||
-rw-r--r-- | scripts/Makefile.gcc-plugins | 8 |
3 files changed, 3 insertions, 10 deletions
@@ -1110,7 +1110,7 @@ prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h | |||
1110 | 1110 | ||
1111 | macroprepare: prepare1 archmacros | 1111 | macroprepare: prepare1 archmacros |
1112 | 1112 | ||
1113 | archprepare: archheaders archscripts macroprepare scripts gcc-plugins | 1113 | archprepare: archheaders archscripts macroprepare scripts |
1114 | 1114 | ||
1115 | prepare0: archprepare | 1115 | prepare0: archprepare |
1116 | $(Q)$(MAKE) $(build)=scripts/mod | 1116 | $(Q)$(MAKE) $(build)=scripts/mod |
diff --git a/scripts/Makefile b/scripts/Makefile index b48259d30280..feb1f71381d7 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
@@ -36,9 +36,10 @@ PHONY += build_unifdef | |||
36 | build_unifdef: $(obj)/unifdef | 36 | build_unifdef: $(obj)/unifdef |
37 | @: | 37 | @: |
38 | 38 | ||
39 | subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins | ||
39 | subdir-$(CONFIG_MODVERSIONS) += genksyms | 40 | subdir-$(CONFIG_MODVERSIONS) += genksyms |
40 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux | 41 | subdir-$(CONFIG_SECURITY_SELINUX) += selinux |
41 | subdir-$(CONFIG_GDB_SCRIPTS) += gdb | 42 | subdir-$(CONFIG_GDB_SCRIPTS) += gdb |
42 | 43 | ||
43 | # Let clean descend into subdirs | 44 | # Let clean descend into subdirs |
44 | subdir- += basic dtc kconfig mod package gcc-plugins | 45 | subdir- += basic dtc kconfig mod package |
diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index 46c5c6809806..c36f19959619 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins | |||
@@ -49,11 +49,3 @@ KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS) | |||
49 | # All enabled GCC plugins are collected here for building below. | 49 | # All enabled GCC plugins are collected here for building below. |
50 | GCC_PLUGIN := $(gcc-plugin-y) | 50 | GCC_PLUGIN := $(gcc-plugin-y) |
51 | export GCC_PLUGIN | 51 | export GCC_PLUGIN |
52 | |||
53 | # Actually do the build, if requested. | ||
54 | PHONY += gcc-plugins | ||
55 | gcc-plugins: scripts_basic | ||
56 | ifdef CONFIG_GCC_PLUGINS | ||
57 | $(Q)$(MAKE) $(build)=scripts/gcc-plugins | ||
58 | endif | ||
59 | @: | ||