----- Original Message -----
is there any way to pass CC while making as I see configure.c taking care of options.
make target=ARM will not help.
I need something like I compile gdb
./configure --host=arm-none-eabi --target=arm-none-eabi
Regards,
Oza.
I do not have an ARM machine to test with, but it is my understanding that
if you attempt to build on an ARM host, it should just work by entering
"make" alone, i.e., just like any of the other architectures. In other
words, the --host and --target values should default to the actual host.
Although you haven't stated it specifically, it sounds like you are trying
to build an ARM binary on an x86 or x86_64 host? The problem with that is
that there is currently no capability of changing the host compiler that is
used to build the top-level crash source files. The crash sources themselves
are always compiled using the host's default compiler.
Passing --host and --target args to the gdb build would only address the embedded
gdb module. You could try modifying GDB_TARGET_ARM_ON_X86 or GDB_TARGET_ARM_ON_X86_64
(whichever is appropriate) in configure.c with whatever you want. As they are now,
both #define's presume that the host is either x86 or x86_64, and therefore --host
is not passed:
#define GDB_TARGET_ARM_ON_X86 "GDB_CONF_FLAGS=--target=arm-elf-linux"
#define GDB_TARGET_ARM_ON_X86_64 "GDB_CONF_FLAGS=--target=arm-elf-linux
CFLAGS=-m32"
For the crash sources you would have to set things up such that "cc" points to
your cross-compiler. You could try changing the Makefile to assign CC= to your
cross-compiler, and then change all of the "cc" commands to ${CC}.
The ARM developers on this mailing list may have some input on this -- I've added
a few of them to the cc list.
Dave
From: Dave Anderson <anderson(a)redhat.com>
To: paawan oza <paawan1982(a)yahoo.com>; "Discussion list for crash
utility usage, maintenance and development"
<crash-utility(a)redhat.com>
Sent: Monday, 6 August 2012 8:58 PM
Subject: Re: [Crash-utility] using crash for ARM
----- Original Message -----
>
>
>
> Hi,
>
>
> I would like to use crash utility on ARM.
> what I understand is there might be two ways to go about it.
>
> 1) cross compile whole crash for arm itself, which doesnt seem to
> be
> good option because on arm target we will need lots of depedent
> packages.
>
> 2) run crash on x86 and have gdbserver/remoter server compiled on
> target. and have serial connection and so on..
>
> please suggest instructions or any pointers regarding the same.
>
> Regards,
> Oza.
If you are talking about running crash on a live ARM system, then
option #1 is the only possibility. Option #2 does not exist for
the crash utility; live system access requires either /dev/mem,
/proc/kcore, or the /dev/crash misc driver.
Dave