Skip to content

Commit 15f2093

Browse files
Add TCFtools to distribution
Add a binary TCFtool to toolchain installations. TCFtools is a simple tool that extracts particular tool files from TCF XML file, thus actual tool doesn't need to support TCF. TCFtool is included as a binary in this repository, than right binary is copied into the toolchain installation directory. Only Linux and Windows x86 targets are supporter - there are no TCFtool binaries for macOS or ARC hosts. Signed-off-by: Anton Kolesov <[email protected]>
1 parent baffcf3 commit 15f2093

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ New Features and Enhancements
2626
* Removed obsolete unsupported scripts.
2727
* macOS support.
2828
* Import documentation from wiki. Build it with Sphinx.
29+
* Added tcftool binary to toolchain for Windows and x86 Linux hosts.
2930

3031
* GCC
3132
* Update to version 6.3.0.

build-all.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,4 +1124,33 @@ if [ -d "${INSTALLDIR}/" ]; then
11241124
cp "${ARC_GNU}/toolchain/Synopsys_FOSS_Notices.pdf" "${INSTALLDIR}/"
11251125
fi
11261126

1127+
# Copy TCFtool.
1128+
if [ -d "$INSTALLDIR/bin" ]; then
1129+
# Use config.{guess,sub} from GCC sources.
1130+
if [ "$TOOLCHAIN_HOST" ]; then
1131+
triplet=$($ARC_GNU/gcc/config.sub $TOOLCHAIN_HOST)
1132+
else
1133+
triplet=$($ARC_GNU/gcc/config.guess)
1134+
fi
1135+
1136+
# Convert triplet to tcftool filename components.
1137+
case $triplet in
1138+
i?86-*|x86_64-*)
1139+
fname_arch=x86 ;;
1140+
esac
1141+
1142+
case $triplet in
1143+
*-linux-gnu)
1144+
fname_os=linux ;;
1145+
*-mingw32)
1146+
fname_os=windows
1147+
fname_ext=.exe ;;
1148+
esac
1149+
1150+
if [ -n "$fname_arch" -a -n "$fname_os" ]; then
1151+
cp -a "$ARC_GNU/toolchain/extras/tcftool/tcftool_${fname_arch}_${fname_os}${fname_ext}" \
1152+
$INSTALLDIR/bin/tcftool${fname_ext}
1153+
fi
1154+
fi
1155+
11271156
# vim: noexpandtab sts=4 ts=8:

extras/tcftool/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This is a MetaWare TCFtool which can be used to extract information from TCFs.
2+
Only binaries are provided, and they are copied into toolchain bin/ folder. As
3+
a result this tool is available only for Windows and macOS - no macOS and no
4+
non-x86 hosts.

extras/tcftool/tcftool_x86_linux

116 KB
Binary file not shown.
109 KB
Binary file not shown.

0 commit comments

Comments
 (0)