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:
2020-08-17 13:59:31 +02:00
parent a2c597b1bc
commit 8ed69629c0
9 changed files with 2574 additions and 40 deletions

View File

@@ -1,4 +1,10 @@
#!/usr/bin/env bash
# PROJECT: XTchain
# LICENSE: See the COPYING.md in the top level directory
# FILE: scripts/xtchain
# DESCRIPTION: XTchain Entry Script
# DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
# Check if script launched as root
if [ "$(whoami)" = "root" ]; then
@@ -6,18 +12,18 @@ if [ "$(whoami)" = "root" ]; then
exit 1
fi
# Get the absolute path to the FBE
export FBEDIR="$(realpath $(dirname ${0}))"
# Get the absolute path to the XTchain
export XTCDIR="$(realpath $(dirname ${0}))"
# Read the FBE version
export FBEVER="$(cat ${FBEDIR}/Version)"
# Read the XTchain version
export XTCVER="$(cat ${XTCDIR}/Version)"
# Load the library
source ${FBEDIR}/fbelib.sh
source ${XTCDIR}/lib/xtchain/xtclib
# Set the target architecture
: ${TARGET:=${1}}
: ${TARGET:=i386}
: ${TARGET:=amd64}
# Save the source directory
export SRCDIR="${2:-${PWD}}"
@@ -29,7 +35,7 @@ export CXXFLAGS=
export LDFLAGS=
# Update PATH
export PATH="${FBEDIR}/bin:${PATH}"
export PATH="${XTCDIR}/bin:${PATH}"
# Display banner
version
@@ -40,5 +46,5 @@ export PFMAT2="\[\033[0;34;104m\]"
export PFMAT3="\[\033[0;1;97;104m\]"
export PFMAT4="\[\033[0;94;49m\]"
export PFMAT5="\[\033[1;38;5;74m\]"
export PROMPT="\n${PFMAT1} FerretOS BE ${PFMAT2}${PFMAT3} \w ${PFMAT4}${PFMAT5} "
export PROMPT="\n${PFMAT1} XT Toolchain ${PFMAT2}${PFMAT3} \w ${PFMAT4}${PFMAT5} "
bash --rcfile <(echo 'source ~/.bashrc && export PS1="${PROMPT}" && cd ${SRCDIR}')

View File

@@ -1,4 +1,10 @@
#!/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()
@@ -25,14 +31,17 @@ export -f charch
version()
{
echo "###############################################################################"
echo "# FerretOS Build Environment v${FBEVER} for Linux #"
echo "# FerretOS Build Environment v${XTCVER} for Linux #"
echo "# by Rafal Kupiec <belliash@codingworkshop.eu.org> #"
echo "###############################################################################"
echo
echo
echo "Binutils Version: $(${FBEDIR}/bin/i686-w64-mingw32-ld -v | cut -d' ' -f5)"
echo "GCC Version: $(${FBEDIR}/bin/i686-w64-mingw32-gcc -v 2>&1| grep 'gcc version' | cut -d' ' -f3)"
echo "IDL Compiler Version: $(${FBEDIR}/bin/i686-w64-mingw32-widl -V | grep 'version' | cut -d' ' -f5)"
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