############################################################################## # File...: /armedslack/source/armslack-utils/arm-baseenvs.sh # Purpose: Set environment variables to assist with cross compiling # & building packages for ARMedSlack (Slackware Linux on ARM) # Author : Stuart Winter # Date...: 26-Apr-2003 ############################################################################## # Note: [1] You should *always* source this as you'll need them in order to # work out where to store the built files and so on. # [2] You should source this BEFORE the other two scripts as the others # rely on some paths exported from this script. ############################################################################## # Sourcing this script is SAFE to do. It won't break any ./configure scripts # unless they're using the same environment variables as I am ! ############################################################################## # # I want all the source to be unarchived into here. export TMP=/tmp/ARM-crosscompile/ mkdir -p ${TMP} 2>/dev/null # This is the dir which will house the resulting ARM .tgz packages # This dir is NFS mounted on turrican to prisere. Under this dir # will be a, xap, k, n dirs and so on. This is the BINARY # .tgz package directory that makes up the distributable bits. export BUILDSTORE=/armedslack/armedslack/ export ARMBUILDLOG=/armedslack/buildlogs/ # where we store our compile/build logs export ARMSLACKBASE=/armedslack/ #**************************************************************** # *** THESE WILL NEED TO BE CHANGED EVERY TIME YOU UPDATE # *** YOUR ARMLINUX TOOL CHAIN !! #**************************************************************** # Remember that you need gcc3 for glibc2.3.1 ! # We should NEVER build with gcc-2.95.3 now cos glibc is built with gcc3 ! #CROSSPATH=/usr/local/arm/2.95.3/bin/ #export ARMCROSSINCLUDE=/usr/local/arm/2.95.3/include/ #export ARMCROSSINCLUDE2=/usr/local/arm/2.95.3/arm-linux/include/ CROSSPATH=/opt/arm/bin/ export ARMCROSSINCLUDE=/opt/arm/include/ export ARMCROSSLIBS=/opt/arm/lib/ ################################################################# # The following probably won't need changing. export ARCH=arm CROSSPREFIX=$ARCH-linux- # So we can find arm-linux-* #export PATH="$PATH:$CROSSPATH/../arm-linux/bin/:$CROSSPATH" export PATH="$PATH:$CROSSPATH" # The following is the dir where the binary ARM packages are # 'installed' so we can link against them whilst building on x86 # This allows us to do stuff like: # # make -e "LIBS= -ltermcap -lresolv -L/${ARMSLACKBINHOME}/usr/lib/" # export ARMSLACKBINHOME=/armedslack/ARM-binary-home/ # ARMedSlack's Kernel compiles into /armedslack/kernelbuild # Since all build scripts reference (in some fashion) this file, # we can change the path here and not have to worry about having to # change the build scripts. # At the moment I always leave my Kernel in /armedslack/kernelbuild # and cross compile glibc against it (see source/l/glibc/glibc.build) # but at some stage I'll no doubt put the Kernel headers tgz packages # into /armedslack/ARM-binary-home/ export ARMKERNELPATH=/armedslack/kernelbuild/linux/ # ARM strip binary export ARMSTRIPPROG=${CROSSPREFIX}strip # ARM typical ./configure line export ARMCONFIGURE='./configure --build=i386-slackware-linux --host=arm-linux --target=arm-linux ' export ARMCFLAGS="-O2 -march=armv3m -mtune=strongarm" #EOF