SV: RTEMS 4.6.4 fails on Cygwin

Ole Hansen Ole at danelec.dk
Mon Mar 13 10:22:22 UTC 2006


Hello Ralf

I have 2 scripts:

obh at olenb2 /cygdrive/c/CVSROOT/development/ioboards/rtems
$ cat rtems-env.sh
#!/bin/sh

echo Choose your target environment
echo 1: RTEMS ARM  - danelec
echo 2: RTEMS ARM  - csb337
echo 3: RTEMS I386 - pc386

read target

case $target in
    1)
        LOCAL_BSP=danelec
        LOCAL_ARCH=arm-rtems
        ;;
    2)
        LOCAL_BSP=csb337
        LOCAL_ARCH=arm-rtems
        ;;
    3)
        LOCAL_BSP=pc386
        LOCAL_ARCH=i386-rtems
        ;;
    *)
        echo Invalid target
        exit 0
        ;;
esac

BSP_PATH=/opt/rtems/$LOCAL_ARCH/$LOCAL_ARCH/$LOCAL_BSP
GCC_PATH=/opt/rtems/$LOCAL_ARCH-gcc/bin

if [ -z $RTEMS_MAKEFILE_PATH ]
then
  export PATH=$PATH:$GCC_PATH
  export RTEMS_MAKEFILE_PATH=$BSP_PATH
  echo "Ready for RTEMS - $LOCAL_BSP."
else
  echo "Environment for RTEMS/$LOCAL_BSP is already set."
fi

obh at olenb2 /cygdrive/c/CVSROOT/development/ioboards/rtems
$ cat rtems-build.sh
#!/bin/sh
#
########################################################################
#
#       $Id: rtems-build.sh,v 1.7 2005/09/18 14:05:24 lmc Exp $
#
########################################################################
#
#       Module Description:
#        Script to build rtems
#
########################################################################
#
#       $Revision: 1.7 $
#       $Author: lmc $
#       $Date: 2005/09/18 14:05:24 $
#
# Log:
#
# 18/08-2004 lmc Initial version
# 02/11-2004 lmc Enable posix
# 10/11-2004 lmc Added support for new env file
# 23/12-2004 lmc Use full path for configure
# 20/09-2005 lmc Create rtems-src link if it does not exists
#
########################################################################
#
# Copyright danelec electronics a/s
#
########################################################################

# Load rtems envoronment
source ./rtems-env.sh

# Prefix
PREFIX=/opt/rtems/$LOCAL_ARCH

# Build dir
BUILDDIR=build-$LOCAL_BSP-$LOCAL_ARCH

########################################################################

if [ ! -f rtems-src ]; then
        ln -s rtems-src-new rtems-src
fi

# Bootstrap source
if [ ! -f rtems-src/configure ]; then
        cd rtems-src
        chmod +x ./bootstrap
        ./bootstrap
        cd ..
fi

# Get the full path
cd rtems-src
SOURCEDIR=`pwd`
LIB=
cd ..

# Delete previous builds
if [ -d $BUILDDIR ]; then
        rm -rf $BUILDDIR
fi

# Build rtems
mkdir $BUILDDIR
cd $BUILDDIR
$SOURCEDIR/configure --target=$LOCAL_ARCH --enable-rtemsbsp=$LOCAL_BSP --prefix=$PREFIX \
        --disable-cxx --disable-itron --enable-posix --disable-tests && make all && make install
cd ..


obh at olenb2 /cygdrive/c/CVSROOT/development/ioboards/rtems
$

rtems-build.sh calls rtems-env.sh to set build-options for i386 or arm

best regards

  ole at danelec.dk
 
 * Software Manager
  * danelec electronics a/s
  * Blokken 44
  * DK-3460 Birkeroed
  * DENMARK
   * Phone: +45 45821879
    * Fax:  +45 45821979
     * Email: ole at danelec.dk
      * http://www.danelec.dk
       * ftp://ftp.danelec.dk
        * Radio call sign: oz1jru
         
 *************************************************************
 *                                                           *
 *    If you seek luck, luck will strike you ..... 8o)       *
 *                                                           *
 *************************************************************



> -----Original Message-----
> From: Ralf Corsepius [mailto:ralf.corsepius at rtems.org]
> Sent: 13. marts 2006 10:22
> To: Ole Hansen
> Cc: RTEMS Users
> Subject: RE: SV: RTEMS 4.6.4 fails on Cygwin
> 
> 
> On Mon, 2006-03-13 at 09:36 +0100, Ole Hansen wrote:
> > Hello Ralf
> > 
> > unsetting LIB does not change anything
> 
> More details ....
> 
> * What exactly did you do (Exact list of commands to reproduce your
> problem)?
> * What happens?
> 
> Ralf
> 
> 
> 



More information about the users mailing list