Messages in this thread | | | Date | Mon, 7 Nov 2005 17:53:24 +0300 | From | Alexey Dobriyan <> | Subject | Re: [PATCH] slightly enhance cross builds |
| |
On Mon, Nov 07, 2005 at 01:58:46PM +0100, Jan Beulich wrote: > This adds functionality to default CROSS_COMPILE to a sensible value > when cross-building (so one doesn't always have to specify this on the > make command line)
Put something like this into your ~/bin and forget. Or use Al's kmk script: ftp://ftp.linux.org.uk/pub/people/viro/
$ cat ~/bin/cross-compile #!/bin/sh
case "$#" in 0) echo "usage: cross-compile ARCH ..." >&2 exit 1 ;; esac
ARCH="$1" shift case $ARCH in alpha|arm|m68k|s390|sh|sh64|sparc|sparc64|x86_64) CROSS_COMPILE=$ARCH-unknown-linux-gnu- ;; parisc) CROSS_COMPILE=hppa-unknown-linux-gnu- ;; ppc) CROSS_COMPILE=powerpc-unknown-linux-gnu- ;; ppc64) CROSS_COMPILE=powerpc64-unknown-linux-gnu- ;; *) echo "cross-compile: -ENOCROSSCOMPILER for $ARCH" >&2 exit 1 ;; esac make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE "$@"
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |