Commit e3501780 authored by Ben Avison's avatar Ben Avison
Browse files

Changes to facilitate platform independence.

Detail:
  Added shell-script equivalents of !Common and two Env files.
Admin:
  Tested by building the DDE tools on Linux.

Version 1.09. Tagged as 'Env-1_09'
parent 68f15566
# Common setup for build environment
# Include from an Env file, with "RiscOS" as the current directory
#
[ "$MACHINE" != "" ] || { echo "No build selected - Run an Env file"; exit 1; }
export BUILDDIR=`pwd`
export TOOLSDIR=$BUILDDIR/Library
export ROOL_BIN=/opt/rool/bin
[ "$GCCSDK_INSTALL_CROSSBIN" != "" ] || export GCCSDK_INSTALL_CROSSBIN=/opt/gccsdk/cross/bin
# Replace existing entries on PATH to prevent it growing indefinitely
export PATH=$TOOLSDIR/Build:$TOOLSDIR/Misc:$ROOL_BIN:$GCCSDK_INSTALL_CROSSBIN:`echo -n $PATH | awk 'BEGIN{P="('$TOOLSDIR'|'$ROOL_BIN'|'$GCCSDK_INSTALL_CROSSBIN')";RS=":";ORS=":"}$0!~P' | sed 's/:$//'`
export APPDIR=$BUILDDIR/Apps
export MAKEFILEDIR=$BUILDDIR/BuildSys/GNUmakefiles
export SRCDIR=$BUILDDIR/Sources
export INSTALLDIR=$BUILDDIR/Install
if [ "$APCS" == "APCS-R" ]; then
TOOLOPTIONS="-26bit"
ASASM_TOOLOPTIONS="-apcs26 -apcsfpv2"
CMUNGE_TOOLOPTIONS="-26bit -apcs 3/26bit/fpe2"
GCC_TOOLOPTIONS="-mapcs-26 -march=armv2 -mfpu=fpe2"
NCC_TOOLOPTIONS="-APCS 3/26bit/fpe2"
OBJASM_TOOLOPTIONS="-APCS 3/26bit"
elif [ "$APCS" == "APCS-32" ]; then
TOOLOPTIONS="-32bit"
ASASM_TOOLOPTIONS="-apcs32 -apcsfpv3"
CMUNGE_TOOLOPTIONS="-32bit -apcs 3/32bit/fpe3"
case "$MACHINE" in
'Archimedes')
GCC_TOOLOPTIONS="-march=armv2 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -memaccess -L22-S22+L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit"
;;
'Any32')
GCC_TOOLOPTIONS="-march=armv3 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -cpu 3 -memaccess -L22-S22-L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit -cpu 3"
;;
'32')
GCC_TOOLOPTIONS="-march=armv3 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -cpu 3 -memaccess -L22-S22+L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit -cpu 3"
;;
'Tungsten')
GCC_TOOLOPTIONS="-march=armv5te -mfpu=fpe3"
NCC_TOOLOPTIONS="-cpu 5TE -memaccess +L22+S22+L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit -cpu 5TE"
;;
'CortexA8')
GCC_TOOLOPTIONS="-march=armv6 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -cpu 6 -memaccess +L22+S22-L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit -cpu 5TEJ"
;;
'CortexA9')
GCC_TOOLOPTIONS="-march=armv6 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -cpu 6 -memaccess +L22+S22-L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit -cpu 5TEJ"
;;
*)
GCC_TOOLOPTIONS="-march=armv2 -mfpu=fpe3"
NCC_TOOLOPTIONS="-APCS 3/32bit/fpe3 -memaccess -L22-S22-L41"
OBJASM_TOOLOPTIONS="-APCS 3/32bit"
;;
esac
fi
export TOOLOPTIONS
export ASASM_TOOLOPTIONS
export CMUNGE_TOOLOPTIONS
export GCC_TOOLOPTIONS
export NCC_TOOLOPTIONS
export OBJASM_TOOLOPTIONS
export APCSEXPORTDIR=$BUILDDIR/Export/$APCS
export HDRDIR=$APCSEXPORTDIR/Hdr
export EXPORTDIR=$HDRDIR/Interface
export GLOBALHDRDIR=$HDRDIR/Global
export CEXPORTDIR=$APCSEXPORTDIR/C
export LIBDIR=$APCSEXPORTDIR/Lib
# This enables you to simply type "make all" from the command line
alias make="make -I$MAKEFILEDIR --no-print-directory"
#!/bin/bash
# Environment to build core parts of the build environment - executed by the host RISC OS system
#
# This can either be applied to the current shell using the "source" command,
# or executed directly. In the latter case, you will want to describe a
# a command to be executed by a subshell using the parameters to this script.
# In either case, the working directory must be set to "RiscOS" on entry.
export LOCALE=UK
export KEYBOARD=All
export MACHINE=All
export SYSTEM=Ursula
export USERIF=Iyonix
export DISPLAYTYPE=PAL
export IMAGESIZE=4096K
export BUILD=ROOL/CTools
export APCS=APCS-32
. Env/!Common.sh
[ -z "$@" ] || bash -c "$@"
#!/bin/bash
# Environment to build cross-compiling versions of the toolchain
#
# This can either be applied to the current shell using the "source" command,
# or executed directly. In the latter case, you will want to describe a
# a command to be executed by a subshell using the parameters to this script.
# In either case, the working directory must be set to "RiscOS" on entry.
export LOCALE=UK
export KEYBOARD=All
export MACHINE=All
export SYSTEM=Ursula
export USERIF=Iyonix
export DISPLAYTYPE=PAL
export IMAGESIZE=4096K
export BUILD=ROOL/CrossTools
export APCS=Host
export TOOLCHAIN=GNU
. Env/!Common.sh
[ -z "$@" ] || bash -c "$@"
/* (1.08)
/* (1.09)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.08
#define Module_MajorVersion_CMHG 1.09
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 26 Jun 2009
#define Module_Date_CMHG 19 May 2010
#define Module_MajorVersion "1.08"
#define Module_Version 108
#define Module_MajorVersion "1.09"
#define Module_Version 109
#define Module_MinorVersion ""
#define Module_Date "26 Jun 2009"
#define Module_Date "19 May 2010"
#define Module_ApplicationDate "26-Jun-09"
#define Module_ApplicationDate "19-May-10"
#define Module_ComponentName "Env"
#define Module_ComponentPath "castle/RiscOS/Env"
#define Module_FullVersion "1.08"
#define Module_HelpVersion "1.08 (26 Jun 2009)"
#define Module_LibraryVersionInfo "1:8"
#define Module_FullVersion "1.09"
#define Module_HelpVersion "1.09 (19 May 2010)"
#define Module_LibraryVersionInfo "1:9"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment