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

Re: [microblaze-uclinux] toolchain build instructions



Ok, good job. Small mod, though. See below:

...
# 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
 
+# link microblaze-as to mb-as
+ln ${RELDIR}/bin/microblaze-as ${RELDIR}/bin/mb-as
 
# add newly created binutils to the path
export PATH=${PATH}:${RELDIR}/bin
...
 
This is needed because mb-as is hardcoded into the gcc specs as the name
of the assembler. There's probably another way to do it within the
binutils configure script, but this was quick and easy... :)

I've hit a problem during the build process, though. While make install
is running in gcc, I get this:

...
make[2]: Entering directory
`/home/bab/mb-gcc-src/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory
`/home/bab/mb-gcc-src/gcc/libiberty/testsuite'
make[1]: Leaving directory `/home/bab/mb-gcc-src/gcc/libiberty'
make[1]: Entering directory `/home/bab/mb-gcc-src/gcc/microblaze/libio'
#rm -rf _G_config.h
cp ./_G_config.h .
cp: cannot stat `./_G_config.h': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/bab/mb-gcc-src/gcc/microblaze/libio'
make: *** [install-target-libio] Error 2

After looking at the makefile and makefile.in, it appears that the
srcdir variable is incorrectly set, but this smells more like another
configure error and as such I don't think just changing the sources is
how I need to fix it. Anyone else seen this?

Brett



On Tue, 2003-07-08 at 16:48, John Williams wrote:
> 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/
-- 
Brett Boren <borenb@eng.uah.edu>

___________________________
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/