OSDN Git Service

ARM: 6317/1: ftrace: pass KBUILD_CFLAGS to record_mcount.pl
authorRabin Vincent <rabin@rab.in>
Tue, 10 Aug 2010 18:39:20 +0000 (19:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Sep 2010 14:26:39 +0000 (15:26 +0100)
commitf9810a82536e0c730c57844753e6c08cc7f77881
tree24d52d7da9518c1b426292ff99ca567f1c6dba28
parenta3ba87a614992500cf2c47e6f788e74a971ce91f
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>
scripts/Makefile.build