diff options
author | Rabin Vincent <rabin@rab.in> | 2010-08-10 19:39:20 +0100 |
---|---|---|
committer | Mathieu J. Poirier <mathieu.poirier@canonical.com> | 2010-10-07 13:20:12 -0600 |
commit | 65fc1229506b70b8de6139eb5ba85e8f4f1c8153 (patch) | |
tree | fb7f583d73d26d8908f7fed08795465c6287e27e /scripts | |
parent | 5496eb2ec24cdeb92a98d11ae6f43d6662d7c5e6 (diff) |
ARM: 6317/1: ftrace: pass KBUILD_CFLAGS to record_mcount.pl
On ARM, we have two ABIs, and the ABI used is controlled via a config
option. Object files built with one ABI can't be merged with object
files built with the other ABI. So, record_mcount.pl needs to use the
same compiler flags as the kernel when generating the object file with
the mcount locations. Ensure this by passing CFLAGS to the script.
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mathieu J. Poirier <mathieu.poirier@canonical.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index e4deb73e9a8..4b73e05c86b 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -209,7 +209,8 @@ ifdef CONFIG_FTRACE_MCOUNT_RECORD cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ "$(if $(CONFIG_64BIT),64,32)" \ - "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ + "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ + "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ "$(if $(part-of-module),1,0)" "$(@)"; endif |