Skip to content

Commit b3acf29

Browse files
rostedtIngo Molnar
authored andcommitted
ftrace, kbuild: condense recordmcount.pl parameter code
Impact: cleanup Sam Ravnborg pointed out that I could condense the code for the parameters of recordmcount.pl by using an $(if ...) condition. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent e1e302d commit b3acf29

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎scripts/Makefile.build‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,10 @@ cmd_modversions = \
198198
fi;
199199
endif
200200

201-
ifdef CONFIG_64BIT
202-
arch_bits = 64
203-
else
204-
arch_bits = 32
205-
endif
206-
207201
ifdef CONFIG_FTRACE_MCOUNT_RECORD
208-
cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl \
209-
"$(ARCH)" "$(arch_bits)" "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" \
210-
"$(NM)" "$(RM)" "$(MV)" "$(@)";
202+
cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
203+
"$(if $(CONFIG_64BIT),64,32)" \
204+
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" "$(@)";
211205
endif
212206

213207
define rule_cc_o_c

0 commit comments

Comments
 (0)