Hi Horms,

> Can we get rid of TARGET_CFLAGS? It doesn't seem to be used anywhere.

We need a way to specify cflags to build things in the target arch (ie,
purgatory). It looks like we're getting around this by specifying the
purgatory's cflags in purgatory/arch/$ARCH/Makefile, which I guess is
ok.

I'm able to build a powerpc64 kexec to run on a powerpc32 machine,
which is what I'm after here. I still get a bunch of warnings though:

kexec/arch/ppc64/kexec-zImage-ppc64.c: In function ‘zImage_ppc64_load’:
kexec/arch/ppc64/kexec-zImage-ppc64.c:164: warning: cast to pointer from 
integer of different size

kexec/arch/ppc64/kexec-elf-ppc64.c: In function ‘elf_ppc64_load’:
kexec/arch/ppc64/kexec-elf-ppc64.c:121: warning: integer constant is too large 
for ‘unsigned long’ type
kexec/arch/ppc64/kexec-elf-ppc64.c:237: warning: cast from pointer to integer 
of different size
kexec/arch/ppc64/kexec-elf-ppc64.c:276: warning: cast from pointer to integer 
of different size
kexec/arch/ppc64/kexec-elf-ppc64.c:283: warning: cast from pointer to integer 
of different size
kexec/arch/ppc64/kexec-elf-ppc64.c:287: warning: cast from pointer to integer 
of different size
kexec/arch/ppc64/kexec-elf-ppc64.c:352: warning: format ‘%ld’ expects type 
‘long int’, but argument 5 has type ‘size_t’

kexec/arch/ppc64/crashdump-ppc64.c:45: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:45: warning: large integer implicitly 
truncated to unsigned type
kexec/arch/ppc64/crashdump-ppc64.c:46: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:46: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:46: warning: large integer implicitly 
truncated to unsigned type
kexec/arch/ppc64/crashdump-ppc64.c:56: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:56: warning: large integer implicitly 
truncated to unsigned type
kexec/arch/ppc64/crashdump-ppc64.c:57: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:57: warning: integer constant is too large 
for ‘long’ type
kexec/arch/ppc64/crashdump-ppc64.c:57: warning: large integer implicitly 
truncated to unsigned type

Cheers,


Jeremy



_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to