mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
kbuild: clean up objtool_args slightly
The code: $(if $(or $(CONFIG_GCOV_KERNEL),$(CONFIG_LTO_CLANG)), ...) ... can be simpled to: $(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), ...) Also, remove meaningless commas at the end of $(if ...). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
e54dd93a08
commit
44815c9021
@ -236,13 +236,12 @@ endif
|
|||||||
# then here to avoid duplication.
|
# then here to avoid duplication.
|
||||||
objtool_args = \
|
objtool_args = \
|
||||||
$(if $(CONFIG_UNWINDER_ORC),orc generate,check) \
|
$(if $(CONFIG_UNWINDER_ORC),orc generate,check) \
|
||||||
$(if $(part-of-module), --module,) \
|
$(if $(part-of-module), --module) \
|
||||||
$(if $(CONFIG_FRAME_POINTER),, --no-fp) \
|
$(if $(CONFIG_FRAME_POINTER),, --no-fp) \
|
||||||
$(if $(or $(CONFIG_GCOV_KERNEL),$(CONFIG_LTO_CLANG)), \
|
$(if $(CONFIG_GCOV_KERNEL)$(CONFIG_LTO_CLANG), --no-unreachable)\
|
||||||
--no-unreachable,) \
|
$(if $(CONFIG_RETPOLINE), --retpoline) \
|
||||||
$(if $(CONFIG_RETPOLINE), --retpoline,) \
|
$(if $(CONFIG_X86_SMAP), --uaccess) \
|
||||||
$(if $(CONFIG_X86_SMAP), --uaccess,) \
|
$(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount)
|
||||||
$(if $(CONFIG_FTRACE_MCOUNT_USE_OBJTOOL), --mcount,)
|
|
||||||
|
|
||||||
# Useful for describing the dependency of composite objects
|
# Useful for describing the dependency of composite objects
|
||||||
# Usage:
|
# Usage:
|
||||||
|
Loading…
Reference in New Issue
Block a user