Skip to content

Commit 25ab30f

Browse files
apalostrini
authored andcommitted
kbuild: strip whitespace in cmd_record_mcount findstring
Backport from kernel commit 1a49b2f ("kbuild: strip whitespace in cmd_record_mcount findstring") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
1 parent bb08767 commit 25ab30f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

scripts/Makefile.build

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,8 @@ sub_cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
221221
"$(if $(part-of-module),1,0)" "$(@)";
222222
recordmcount_source := $(srctree)/scripts/recordmcount.pl
223223
endif
224-
cmd_record_mcount = \
225-
if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \
226-
"$(CC_FLAGS_FTRACE)" ]; then \
227-
$(sub_cmd_record_mcount) \
228-
fi
224+
cmd_record_mcount = $(if $(findstring $(strip $(CC_FLAGS_FTRACE)),$(_c_flags)), \
225+
$(sub_cmd_record_mcount))
229226
endif # -record-mcount
230227
endif
231228

0 commit comments

Comments
 (0)