Several changes to GNU toolchain based XTchain:
* Fix binutils patch * Add make and wine tools * Do not hardcode MinGW library and NT version * Add licensing information * General synchronization with LLVM-based XTchain
This commit is contained in:
49
scripts/xtclib
Executable file
49
scripts/xtclib
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
# PROJECT: XTchain
|
||||
# LICENSE: See the COPYING.md in the top level directory
|
||||
# FILE: scripts/xtclib
|
||||
# DESCRIPTION: XTchain library
|
||||
# DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
|
||||
|
||||
# Sets the target architecture
|
||||
charch()
|
||||
{
|
||||
if [ "x${1}" == "x" ]; then
|
||||
echo "Syntax: charch [architecture]"
|
||||
return
|
||||
fi
|
||||
case ${1} in
|
||||
"i386"|"i486"|"i586"|"i686"|"x86")
|
||||
export TARGET="i386"
|
||||
;;
|
||||
"amd64"|"x64"|"x86_64")
|
||||
export TARGET="amd64"
|
||||
;;
|
||||
*)
|
||||
export TARGET="UNKNOWN"
|
||||
esac
|
||||
echo "Target Architecture: ${TARGET}"
|
||||
}
|
||||
export -f charch
|
||||
|
||||
# Displays version banner
|
||||
version()
|
||||
{
|
||||
echo "###############################################################################"
|
||||
echo "# FerretOS Build Environment v${XTCVER} for Linux #"
|
||||
echo "# by Rafal Kupiec <belliash@codingworkshop.eu.org> #"
|
||||
echo "###############################################################################"
|
||||
echo
|
||||
echo
|
||||
echo "Binutils Version: $(${XTCDIR}/bin/i686-w64-mingw32-ld -v | cut -d' ' -f5)"
|
||||
echo "GCC Version: $(${XTCDIR}/bin/i686-w64-mingw32-gcc -v 2>&1| grep 'gcc version' | cut -d' ' -f3)"
|
||||
echo "IDL Compiler Version: $(${XTCDIR}/bin/i686-w64-mingw32-widl -V | grep 'version' | cut -d' ' -f5)"
|
||||
echo "Wine Message Compiler Version: $(${XTCDIR}/bin/wmc -V | grep 'version' | cut -d' ' -f5)"
|
||||
echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)"
|
||||
echo
|
||||
charch ${TARGET}
|
||||
echo
|
||||
echo
|
||||
}
|
||||
export -f version
|
Reference in New Issue
Block a user