Skip to content

Commit

Permalink
ftrace, kbuild: condense recordmcount.pl parameter code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rostedt authored and Ingo Molnar committed Oct 30, 2008
1 parent e1e302d commit b3acf29
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,10 @@ cmd_modversions = \
fi;
endif

ifdef CONFIG_64BIT
arch_bits = 64
else
arch_bits = 32
endif

ifdef CONFIG_FTRACE_MCOUNT_RECORD
cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl \
"$(ARCH)" "$(arch_bits)" "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" \
"$(NM)" "$(RM)" "$(MV)" "$(@)";
cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
"$(if $(CONFIG_64BIT),64,32)" \
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" "$(@)";
endif

define rule_cc_o_c
Expand Down

0 comments on commit b3acf29

Please sign in to comment.