Minor djgpp fixes.
This commit is contained in:
parent
acd2cfb91f
commit
b2f82b00d7
1 changed files with 30 additions and 13 deletions
|
@ -121,7 +121,7 @@ function build_pi_sysroot() {
|
||||||
local IMAGE=
|
local IMAGE=
|
||||||
local START=
|
local START=
|
||||||
local SYSROOT=../x-tools/sysroot-pi${BITS}
|
local SYSROOT=../x-tools/sysroot-pi${BITS}
|
||||||
|
|
||||||
mkdir -p work
|
mkdir -p work
|
||||||
pushd work
|
pushd work
|
||||||
if [[ ! -f sysroot-relativelinks.py ]]; then
|
if [[ ! -f sysroot-relativelinks.py ]]; then
|
||||||
|
@ -268,6 +268,23 @@ function use_toolchain() {
|
||||||
|
|
||||||
case "${PLAT}" in
|
case "${PLAT}" in
|
||||||
|
|
||||||
|
dos)
|
||||||
|
case "${ARCH}" in
|
||||||
|
x86)
|
||||||
|
TRIPLE="i586-pc-msdosdjgpp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo "source ${TC_G_SCRIPT_DIR}/x-tools/djgpp/setenv"
|
||||||
|
#echo "export PATH=\"${TC_G_SCRIPT_DIR}/x-tools/djgpp/i586-pc-msdosdjgpp/bin:${TC_G_SCRIPT_DIR}/x-tools/djgpp/bin:${TC_G_SCRIPT_DIR}/x-tools/djgpp/libexec/gcc/i586-pc-msdosdjgpp/12.2.0:${PATH}\""
|
||||||
|
#echo "export GCC_EXE_PREFIX=\"${TC_G_SCRIPT_DIR}/x-tools/djgpp/lib/gcc\""
|
||||||
|
#echo "export DJDIR=\"${TC_G_SCRIPT_DIR}/x-tools/djgpp/i586-pc-msdosdjgpp\""
|
||||||
|
CROSS_OS="dos"
|
||||||
|
CC="gcc"
|
||||||
|
CXX="g++"
|
||||||
|
RANLIB="ranlib"
|
||||||
|
SUFFIX=".exe"
|
||||||
|
;;
|
||||||
|
|
||||||
linux)
|
linux)
|
||||||
case "${ARCH}" in
|
case "${ARCH}" in
|
||||||
x86)
|
x86)
|
||||||
|
@ -388,7 +405,7 @@ if [[ "${MODE}" == "install" ]]; then
|
||||||
if [[ "${PLAT}" == "pi" ]]; then
|
if [[ "${PLAT}" == "pi" ]]; then
|
||||||
sudo apt-get -y install qemu-user-static
|
sudo apt-get -y install qemu-user-static
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install all toolchains.
|
# Install all toolchains.
|
||||||
if [[ "${ARCH}" == "all" && "${PLAT}" == "all" ]]; then
|
if [[ "${ARCH}" == "all" && "${PLAT}" == "all" ]]; then
|
||||||
HELP=0
|
HELP=0
|
||||||
|
@ -452,22 +469,22 @@ if [[ ${HELP} -eq 1 ]]; then
|
||||||
|
|
||||||
For "install" mode:
|
For "install" mode:
|
||||||
|
|
||||||
If [architecture] and [platform] are both "all",
|
If [architecture] and [platform] are both "all",
|
||||||
everything will be installed.
|
everything will be installed.
|
||||||
|
|
||||||
if [architecture] is "all", then all available
|
if [architecture] is "all", then all available
|
||||||
architectures for the specified [platform] will
|
architectures for the specified [platform] will
|
||||||
be installed.
|
be installed.
|
||||||
|
|
||||||
NOTE: You should always install x86_64 linux
|
NOTE: You should always install x86_64 linux
|
||||||
before attempting to install other
|
before attempting to install other
|
||||||
toolchains.
|
toolchains.
|
||||||
|
|
||||||
For "use" mode:
|
For "use" mode:
|
||||||
|
|
||||||
Souce the output of this script to set the environment
|
Souce the output of this script to set the environment
|
||||||
to use the appropriate toolchain for [architecture] and
|
to use the appropriate toolchain for [architecture] and
|
||||||
[platform].
|
[platform].
|
||||||
|
|
||||||
HELP
|
HELP
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue