improve of cmpl.
[bush.git] / tools / cmpl / platform / host_info.imi
blobba11c8fdac1243f4ed27403649a8b93dd45169de
3 # HOST toolchain info.
6 MACHINE="${HOST_ARCH:-${HOST_MACHINE}}"
7 OS="${HOST_SYS:-${HOST_OS}}"
8 INFO="${HOST_VENDOR:-${HOST_INFO}}"
9 VER="${HOST_VERSION:-${HOST_VER}}"
10 TOOLCHAIN="${HOST_TOOLCHAIN:-"gcc"}"
11 MACHTYPE="${HOST_MACHTYPE}"
14 #   'TOOLCHAIN' should be defined before source.
15 #   it add DIR_PFX & CROSS pfx for toolchain cmd in toolchain/${TOOLCHAIN}.imi
16 # or ${MACHINE}-${OS}-${INFO}.imi.
17
18 inc platform.imi
22 # after this defination, invoke 'without_pfx HOST_' to set them without pfx.
23 # host cross is used for cpu arch optimize.
25 HOST_DIR_PFX="${DIR_PFX}"
26 HOST_CROSS="${HOST_CROSS:-${DIR_PFX}${MACHTYPE:+${MACHTYPE}-}}"
28 HOST_ASM="${HOST_CROSS}${ASM}"
29 HOST_CC="${HOST_CROSS}${CC}"
30 HOST_CPP="${HOST_CROSS}${CPP}"
31 HOST_LINK="${HOST_CROSS}${LINK}"
32 HOST_SLIB="${HOST_CROSS}${SLIB}"
33 HOST_DLIB="${HOST_CROSS}${DLIB}"
34 HOST_RANLIB="${HOST_CROSS}${RANLIB}"
36 HOST_STRIP="${HOST_CROSS}${STRIP}"
37 HOST_OBJDUMP="${HOST_CROSS}${OBJDUMP}"
38 HOST_OBJCOPY="${HOST_CROSS}${OBJCOPY}"
39 HOST_READELF="${HOST_CROSS}${READELF}"
40 HOST_NM="${HOST_CROSS}${NM}"
41 HOST_SIZE="${HOST_CROSS}${SIZE}"
42 HOST_GCOV="${HOST_CROSS}${GCOV}"
43 HOST_GDB="${HOST_CROSS}${GDB}"
44 HOST_GPROF="${HOST_CROSS}${GPROF}"
45 HOST_ADDR2LINE="${HOST_CROSS}${ADDR2LINE}"