2 # Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 # Copyright (c) 2002-2008 Atheros Communications, Inc.
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 # Compilation configuration for building little-endian XScale/arm-elf.
23 # NB: built with AH_REGOPS_FUNC to so that register accesses
24 # can be done using the Linux readl/writel functions on
25 # systems that need it.
27 # Reported to work on:
28 # Compulab's ARMBASE using ARMCORE GX
29 # (http://www.compulab.co.il/armbase.htm)
33 # Built with GNU cross-devel tools:
36 # BINUTILS=binutils-2.14
40 # ${BINUTILS}/configure --target=$target --prefix=${PREFIX}
41 # ${GCC}/configure --target=$target --prefix=${PREFIX} \
42 # --enable-languages=c --with-gnu-as --with-gnu-ld \
43 # --with-newlib --with-gxx-include-dir=${PREFIX}/$target/include
46 TOOLPREFIX= /pub/gnu/bin/arm-elf-
51 STRIP= ${TOOLPREFIX}strip
52 OBJCOPY=${TOOLPREFIX}objcopy
56 # Force register read/write operations to go through a function.
61 COPTS+= -DAH_BYTE_ORDER=AH_LITTLE_ENDIAN
62 COPTS+= -march=armv4 -mlittle-endian -fno-strict-aliasing -fno-common \
63 -mapcs-32 -mtune=xscale -mshort-load-bytes