Building the first application

Jack Cawkwell J.Cawkwell at open.ac.uk
Mon May 10 21:34:53 UTC 2004


Hi Etienne,

Although the answer is probably in the manuals, I did
not find it particularly easy to get a build to work,
and wrote the following script last time I did it,
last year?

If it helps, this is a script for building on an i386
linux box, which might help if you update it for the
current version, you need to comment out parts so
you run the rpm as root and the build as a mortal,and
alter paths to suit.

Jack.

#
# remove existing rpms
rpm -q -a | grep rtems |
while read PACK
do
  rpm -e --nodeps $PACK
done
#

# install rpm's as root
cd /home/src/rtems-cd/ftp.oarcorp.com/pub/rtems/cd-working

# base
rpm -i
./tools/gcc3.2.1newlib1.11.0-2/linux_x86/RPMS/rtems-base-gcc-gcc3.2.1newlib1.11.0-2.i686.rpm
rpm -i
./tools/binutils-2.13.2.1-1/linux_x86/RPMS/rtems-base-binutils-2.13.2.1-2.i686.rpm
rpm -i
./tools/autoconf-2.57-1/linux_x86/RPMS/autoconf-rtems-2.57-1.noarch.rpm
rpm -i
./tools/automake-1.7.2-1/linux_x86/RPMS/automake-rtems-1.7.2-1.noarch.rpm
rpm -i
./tools/gcc3.2.1newlib1.11.0-2/linux_x86/RPMS/rtems-base-gnat-gcc3.2.1newlib1.11.0-2.i686.rpm

# i386 specific
rpm -i
./tools/binutils-2.13.2.1-1/linux_x86/RPMS/i386-rtems-binutils-2.13.2.1-2.i686.rpm
rpm -i
./tools/gcc3.2.1newlib1.11.0-2/linux_x86/RPMS/i386-rtems-gcc-gcc3.2.1newlib1.11.0-2.i686.rpm
rpm -i
./tools/gcc3.2.1newlib1.11.0-2/linux_x86/RPMS/i386-rtems-c++-gcc3.2.1newlib1.11.0-2.i686.rpm
rpm -i
./tools/gcc3.2.1newlib1.11.0-2/linux_x86/RPMS/i386-rtems-gnat-gcc3.2.1newlib1.11.0-2.i686.rpm

cd /home/src/rtems-cd ; mkdir build_i386 ; cd build_i386

PATH=$PATH:/opt/rtems/bin
export RTEMS_MAKEFILE_PATH=/usr/local/pc386
# export RTEMS_MAKEFILE_PATH=/opt/rtems/i386-rtems/pc686

../rtems-4.6.0pre1/configure \
  --enable-cxx \
  --enable-tests \
  --build=i386 \
  --enable-rtemsbps=pc686 \
  --prefix=/opt/rtems \
  --program-prefix=i386-rtems- \
  --target=i386-rtems

make RTEMS_BSP=pc686




Etienne Fortin <etienne.fortin at sensio.tv> writes:
>Hi everyone,
>I have a some difficulties building the samples applications, and I
>suspect a very stupid newbie kind of error. 




More information about the users mailing list