summaryrefslogtreecommitdiff
path: root/morph-arch-config
blob: f4a22a63a2cc7bbe1d7a4ddb56c8037292231861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# morph-arch-config: ouput GCC-specific configuration for specific
# Morph architectures

# Morph's armv7* architecture is always armv7-a
case "$MORPH_ARCH" in
    armv7lhf) echo "--with-arch=armv7-a \
                    --with-cpu=cortex-a9 \
                    --with-tune=cortex-a9 \
                    --with-fpu=vfpv3-d16 \
                    --with-float=hard" ;;
    armv7*) echo "--with-arch=armv7-a" ;;

    mips64) echo "--with-arch=mips64r2 \
                  --with-abi=64 \
                  --enable-targets=all" ;;
esac