[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] toolchain build instructions



John Williams wrote:

> WARNING: This e-mail has been altered by ITEE at UQ's anti-virus
> filter MIMEDefang.  Following this paragraph are indications of 
> the actual changes made.  For more information about ITEE at UQ's
> anti-virus policy, please contact postmaster@itee.uq.edu.au. 
> 
> Bad filename 'buildit.sh'

Oops - Here it is inline - watch out for line wrap.

====cut here====
#!/bin/sh

# turn on debugging
set -x

# set up directories
# where is the source
export EDKSRC=`pwd`
# release (target) directory
export RELDIR=`pwd`/reldir
# where can we copy existing header files from?
export INSTALLDIR=/usr/local/tools/microblaze-elf-gcc

# make release directory
mkdir -f ${RELDIR}

# first build binutils:
cd ${EDKSRC}/binutils/microblaze
./configure --target=microblaze --prefix=${RELDIR}
make all CFLAGS="-O2 -g -DMICROBLAZE -DEDK" CXXFLAGS="-O2 -g 
-DMICROBLAZE -DEDK"
make install

# add newly created binutils to the path
export PATH=${PATH}:${RELDIR}/bin

# copy header files from install directory into new release directory
cp -R ${INSTALLDIR}/microblaze/include ${RELDIR}/microblaze/include
cp -R ${INSTALLDIR}/include ${RELDIR}/include

# Now build gcc
cd ${EDKSRC}/gcc
touch gcc/configure
./configure --target=microblaze --prefix=${RELDIR}
make all CFLAGS="-O2 -g -DMICROBLAZE -DEDK" CXXFLAGS="-O2 -g 
-DMICROBLAZE -DEDK"
make install



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/