kbuild: change filechk to surround the given command with { }
filechk_* rules often consist of multiple 'echo' lines. They must be
surrounded with { } or ( ) to work correctly. Otherwise, only the
string from the last 'echo' would be written into the target.
Let's take care of that in the 'filechk' in scripts/Kbuild.include
to clean up filechk_* rules.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
172caf1993
commit
ad77408635
7 changed files with 14 additions and 12 deletions
2
Kbuild
2
Kbuild
|
|
@ -27,7 +27,7 @@ timeconst-file := include/generated/timeconst.h
|
|||
targets += $(timeconst-file)
|
||||
|
||||
define filechk_gentimeconst
|
||||
(echo $(CONFIG_HZ) | bc -q $< )
|
||||
echo $(CONFIG_HZ) | bc -q $<
|
||||
endef
|
||||
|
||||
$(timeconst-file): kernel/time/timeconst.bc FORCE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue