3 # before this file, toolchain-cfg.imi should be included, and it should define
5 # @ HOST_*/BUILD_*/TARGET_*/DEFAULT_*, with MACHINE/OS/VENDOR/MACHTYPE. it's
6 # used for cross compiler prefix.
7 # @ DEFTYPE, HOST or BUILD or TARGET.
8 # @ HOST/BUILD/TARGET, the arch of using environment.
9 # in src file, it can be used like so.
10 # inc ../toolchain-cfg.imi
11 # inc ../platform/toolchain_info.imi
13 # in normal, toolchain-cfg.imi should be generated by config program, such as
14 # 'cmpl config' or 'cmpl platform'. it also can be edit manually.
18 # toolchain (platform)
19 # put target_info.imi at the bottom, default compiler ${GCC} is defined as
21 # for cross building, ${HOST_GCC} defined as host compiler. use it directly,
22 # or use func set_cmplr() in toolchain.shlib, to set HOST/BUILD/TARGET to GCC.
29 DEFTYPE="${DEFTYPE:=DEFAULT}"
31 # it's used for actual executables
32 eval MACHINE="\${${DEFTYPE}_MACHINE}"
33 eval OS="\${${DEFTYPE}_OS}"
34 eval VENDOR="\${${DEFTYPE}_VENDOR}"
35 eval MACHTYPE="\${${DEFTYPE}_MACHTYPE}"