3 # this file should be defined in system, or not exist.
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.
34 # defination below are the toolchain info has been supported.
36 MACHINE=( "" "i386" "i686-pc" "x86_64" "aarch64" "arm" )
37 OS=( "" "linux" "win32" )
38 VENDOR=( "" "gnueabi" )
39 MACHTYPE=( "" "${MACHINE}-${OS}-${VENDOR}" )
40 TOOLCHAIN=( "gcc" "gcc" "vc" "mdk" "iar" )
43 #############################################################################
45 #############################################################################
48 # XXX: this part will be auto generated by 'cmpl platform' or 'cmpl config'.
51 # <blank>/DEFAULT: native build for native running
52 # HOST: build as a host utility program.
53 # TARGET: cross build for target platform.
57 # TBD: setting in init func.
61 TARGET="${MACHINE[0]}"
64 # default for native building.
65 DEFAULT_MACHINE="${MACHINE[0]}"
67 DEFAULT_VENDOR="${VENDOR[0]}"
68 DEFAULT_MACHTYPE="${MACHTYPE[0]}"
69 DEFAULT_TOOLCHAIN="${TOOLCHAIN[0]}"
71 #export TARGET_MACHINE="${MACHINE[5]}"
72 #export TARGET_OS="${OS[1]}"
73 #export TARGET_VENDOR="${VENDOR[1]}"
74 #export TARGET_MACHTYPE="${MACHTYPE[1]}"
75 #export TARGET_TOOLCHAIN="${TOOLCHAIN[1]}"
77 # export BUILD_MACHINE="${MACHINE[0]}"
78 # export BUILD_OS="${OS[0]}"
79 # export BUILD_VENDOR="${VENDOR[0]}"
80 # export BUILD_MACHTYPE="${MACHTYPE[0]}"
81 # export BUILD_TOOLCHAIN="${TOOLCHAIN[2]}"
83 # HOST_MACHINE="${MACHINE[0]}"
85 # HOST_VENDOR="${VENDOR[0]}"
86 # HOST_MACHTYPE="${MACHTYPE[0]}"
87 # HOST_TOOLCHAIN="${TOOLCHAIN[0]}"
90 #############################################################################
92 #############################################################################