BRN:Software:Build and Distribution:click: Difference between revisions

From
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
export BASEDIR=/sde-wgt-toolchain/openwgt-dev/buildroot/build_mipsel/staging_dir
export BASEDIR=/sde-wgt-toolchain/openwgt-dev/buildroot/build_mipsel/staging_dir
export CC=$BASEDIR/bin/mipsel-linux-uclibc-gcc
export CC=\$BASEDIR/bin/mipsel-linux-uclibc-gcc
export CPP=$BASEDIR/bin/mipsel-linux-uclibc-cpp
export CPP=\$BASEDIR/bin/mipsel-linux-uclibc-cpp
export CXX=$BASEDIR/bin/mipsel-linux-uclibc-g++
export CXX=\$BASEDIR/bin/mipsel-linux-uclibc-g++
export RANLIB=$BASEDIR/bin/mipsel-linux-uclibc-ranlib
export RANLIB=\$BASEDIR/bin/mipsel-linux-uclibc-ranlib
export AR=$BASEDIR/bin/mipsel-linux-uclibc-ar
export AR=\$BASEDIR/bin/mipsel-linux-uclibc-ar
export STRIP=$BASEDIR/bin/mipsel-linux-uclibc-strip
export STRIP=\$BASEDIR/bin/mipsel-linux-uclibc-strip
export PATH=$PATH:$BASEDIR/bin
export PATH=\$PATH:\$BASEDIR/bin
EOF
EOF
$ . env.sh
$ . env.sh

Revision as of 09:24, 13 October 2006

Introduction

$ BRN_SVN_REPOS=svn://brn-svn.sar.informatik.hu-berlin.de
$ svn co $BRN_SVN_REPOS/BerlinRoofNet/trunk/click

User Space (userlevel)

$ cd click
$ cat > env.sh <<EOF
#!/bin/sh

echo "Setting up Click environment!"

export BASEDIR=/sde-wgt-toolchain/openwgt-dev/buildroot/build_mipsel/staging_dir
export CC=\$BASEDIR/bin/mipsel-linux-uclibc-gcc
export CPP=\$BASEDIR/bin/mipsel-linux-uclibc-cpp
export CXX=\$BASEDIR/bin/mipsel-linux-uclibc-g++
export RANLIB=\$BASEDIR/bin/mipsel-linux-uclibc-ranlib
export AR=\$BASEDIR/bin/mipsel-linux-uclibc-ar
export STRIP=\$BASEDIR/bin/mipsel-linux-uclibc-strip

export PATH=\$PATH:\$BASEDIR/bin
EOF
$ . env.sh
$ cd click-core
$ autoconf
$ ./configure --host=mipsel-linux --build=i686-pc-linux-gnu  --enable-tools=host CFLAGS="-mlong-calls -g"  --disable-linuxmodule
$ cd userlevel
$ make
$ $STRIP click
$ cd ../tools # we need click-align for loading the click configuration later
$ make
$ $STRIP click-align/click-align

Kernel Space (linuxmodule)


Prev | Contents | Next