lkml.org 
[lkml]   [2005]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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/

    \
     
     \ /
      Last update: 2005-11-07 15:42    [W:0.021 / U:65.644 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site