All of lore.kernel.org
 help / color / mirror / Atom feed
* Cross-compilation check broken
@ 2009-01-29  2:14 Pavel Roskin
  2009-01-29 13:07 ` Robert Millan
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Roskin @ 2009-01-29  2:14 UTC (permalink / raw)
  To: grub-devel, Robert Millan

Hello, Robert!

Your commit 1955 breaks my script for testing PowerPC.  That's the
script:

#!/bin/sh
set -e
CROSS_PATH=/home/proski/src/buildroot/build_powerpc/staging_dir/usr/bin
PATH=$CROSS_PATH:$PATH
./configure --with-platform=ieee1275 --target=powerpc-linux
make -j2
./grub-mkrescue --grub-mkimage=./grub-mkelfimage --pkglibdir=. grub.iso
qemu-system-ppc -nographic -cdrom grub.iso -boot d

I compile for target "powerpc-linux" and I have powerpc-linux-gcc in the
PATH.  However, I'm using native tools.  I'm not interested in running
tools in an emulator (actually, I have another script that does it).
Therefore, build and host are the same, so TARGET_CC is set to gcc.

The new check must be wrong.  TARGET_CC is used to build executables for
the target system.  It should be found using the specified target even
if the tools are compiled natively.

Actually, the original check wasn't particularly good.  Maybe we could
check if target_alias is defined?  Or maybe we could always check for
TARGET_CC?

-- 
Regards,
Pavel Roskin



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-07 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29  2:14 Cross-compilation check broken Pavel Roskin
2009-01-29 13:07 ` Robert Millan
2009-01-29 16:19   ` Pavel Roskin
2009-02-07 21:42     ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.