diff options
| author | Ilias Apalodimas <[email protected]> | 2025-05-20 08:21:32 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-05-29 18:42:38 -0600 |
| commit | 25ab30f1c46efc8d2c11b01013449c09815a3f65 (patch) | |
| tree | cbeb3a5646a66601901a8ebb67d5532ced88f64a /scripts/Makefile.build | |
| parent | bb08767f12795ba72a93948aa2b5477ad548c511 (diff) | |
kbuild: strip whitespace in cmd_record_mcount findstring
Backport from kernel
commit 1a49b2fd8f58 ("kbuild: strip whitespace in cmd_record_mcount findstring")
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'scripts/Makefile.build')
| -rw-r--r-- | scripts/Makefile.build | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index b7611c03008..aa48d249433 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -221,11 +221,8 @@ sub_cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(part-of-module),1,0)" "$(@)"; recordmcount_source := $(srctree)/scripts/recordmcount.pl endif -cmd_record_mcount = \ - if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ - "$(CC_FLAGS_FTRACE)" ]; then \ - $(sub_cmd_record_mcount) \ - fi +cmd_record_mcount = $(if $(findstring $(strip $(CC_FLAGS_FTRACE)),$(_c_flags)), \ + $(sub_cmd_record_mcount)) endif # -record-mcount endif |
