diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-17 05:02:44 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-01-27 19:11:17 -0500 |
commit | b79c6aa6a1f111eab2fc08b92541c9e88824be72 (patch) | |
tree | d078e5aa6b60780e734387dd5a604bc057e5045f /scripts/Makefile.build | |
parent | afa974b771281fd89e8fdcb71152152f17fb8303 (diff) |
kbuild: remove unnecessary in-subshell execution
The commands surrounded by ( ) are executed in a subshell, but in
most cases, we do not need to spawn an extra subshell.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 9800178fdcd2..f8e2794107ed 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -312,11 +312,11 @@ $(real-obj-m:.o=.s): modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE) | |||
312 | # | 312 | # |
313 | # These mirror gensymtypes_c and co above, keep them in synch. | 313 | # These mirror gensymtypes_c and co above, keep them in synch. |
314 | cmd_gensymtypes_S = \ | 314 | cmd_gensymtypes_S = \ |
315 | (echo "\#include <linux/kernel.h>" ; \ | 315 | { echo "\#include <linux/kernel.h>" ; \ |
316 | echo "\#include <asm/asm-prototypes.h>" ; \ | 316 | echo "\#include <asm/asm-prototypes.h>" ; \ |
317 | $(CPP) $(a_flags) $< | \ | 317 | $(CPP) $(a_flags) $< | \ |
318 | grep "\<___EXPORT_SYMBOL\>" | \ | 318 | grep "\<___EXPORT_SYMBOL\>" | \ |
319 | sed 's/.*___EXPORT_SYMBOL[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*,.*/EXPORT_SYMBOL(\1);/' ) | \ | 319 | sed 's/.*___EXPORT_SYMBOL[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*,.*/EXPORT_SYMBOL(\1);/' ; } | \ |
320 | $(CPP) -D__GENKSYMS__ $(c_flags) -xc - | \ | 320 | $(CPP) -D__GENKSYMS__ $(c_flags) -xc - | \ |
321 | $(GENKSYMS) $(if $(1), -T $(2)) \ | 321 | $(GENKSYMS) $(if $(1), -T $(2)) \ |
322 | $(patsubst y,-R,$(CONFIG_MODULE_REL_CRCS)) \ | 322 | $(patsubst y,-R,$(CONFIG_MODULE_REL_CRCS)) \ |