3 # XXX: this file will be auto updated when installing new toolchain.
7 # this file defines cross info for toolchain.
9 # @ HOST=BUILD=TARGET="": native host native build, for native running.
10 # @ HOST=BUILD="",TARGET=arm: native host native build, for cross target running.
11 # few of srcpkg uses those cfg:
12 # @ HOST="",BUILD=TARGET=arm: native host, for cross build, compile cross target.
13 # @ HOST="",BUILD-arm,TARGET=mips: native host, for cross build, compile other
17 # @ HOST: build platform.
18 # @ BUILD: the compiler running on.
19 # @ TARGET: executable type which compiler compile for.
21 # for normal program build (cross or not):
22 # @ HOST=BUILD: build platform.
23 # @ TARGET: executable type whchi programs running on.
25 # for some particular programs:
26 # @ HOST: build platform.
27 # @ BUILD=TARGET: executable type, .
29 # this configuration model is only for compiler build. in normal applications,
30 # only HOST & TARGET are effective.
33 MACHINE=( "" "i386" "i686-pc" "x86_64" "arm" "aarch64" )
34 OS=( "" "linux" "win32" )
35 VENDOR=( "" "gnueabi" )
36 MACHTYPE=( "" "${MACHINE}-${OS}-${VENDOR}" )
37 TOOLCHAIN=( "gcc" "vc" "mdk" "iar" )
40 #############################################################################
42 #############################################################################
44 # <blank>/DEFAULT: native build for native running
45 # HOST: build as a host utility program.
46 # TARGET: cross build for target platform.
51 TARGET="${MACHINE[0]}"
54 # default for native building.
55 DEFAULT_MACHINE="${MACHINE[0]}"
57 DEFAULT_VENDOR="${VENDOR[0]}"
58 DEFAULT_MACHTYPE="${MACHTYPE[0]}"
59 DEFAULT_TOOLCHAIN="${TOOLCHAIN[0]}"
61 TARGET_MACHINE="${MACHINE[0]}"
63 TARGET_VENDOR="${VENDOR[0]}"
64 TARGET_MACHTYPE="${MACHTYPE[0]}"
65 TARGET_TOOLCHAIN="${TOOLCHAIN[0]}"
67 BUILD_MACHINE="${MACHINE[0]}"
69 BUILD_VENDOR="${VENDOR[0]}"
70 BUILD_MACHTYPE="${MACHTYPE[0]}"
71 BUILD_TOOLCHAIN="${TOOLCHAIN[0]}"
73 HOST_MACHINE=( ${MACHINE[0]} )
75 HOST_VENDOR="${VENDOR[0]}"
76 HOST_MACHTYPE="${MACHTYPE[0]}"
77 HOST_TOOLCHAIN="${TOOLCHAIN[0]}"
80 #############################################################################
82 #############################################################################