BRN:Software:Build and Distribution:click: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= 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 -O2" --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) = |
|||
Latest revision as of 15:36, 10 November 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 -O2" --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