Changeset 260
- Timestamp:
- 07/23/08 19:22:16 (6 months ago)
- Files:
-
- home/bin/bsp (modified) (2 diffs)
- home/bin/build (modified) (4 diffs)
- home/bin/functions (modified) (1 diff)
- home/bin/sourceforge (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
home/bin/bsp
r219 r260 1 1 bsp () { 2 BAUD=$1 3 4 if [ "x$BAUD" == "xmigor" ] ; then 5 BAUD=115200 6 elif [ "x$BAUD" == "xmobiler2" ] ; then 7 BAUD=38400 8 fi 9 2 10 if [ -e /dev/ttyUSB0 ] ; then 3 11 TTY=/dev/ttyUSB0 … … 6 14 fi 7 15 echo Connecting to $TTY ... 8 sudo screen $TTY 11520016 sudo screen -xRR -S BSP $TTY $BAUD 9 17 } 18 19 alias bsp-migor="bsp 115200" 20 alias bsp-mobiler2="bsp 38400" 21 22 migor-install () { 23 sudo cp -a $HOME/usr-sh3/lib/* /export/MigoR-BSP-current/rootfs/usr/local/lib 24 sudo cp -a $HOME/usr-sh3/include/* /export/MigoR-BSP-current/rootfs/usr/local/include 25 sudo cp -a $HOME/usr-sh3/bin/* /export/MigoR-BSP-current/rootfs/usr/local/bin 26 sudo ldconfig -v -r /export/MigoR-BSP-current/rootfs 27 } 28 29 mobiler2-install () { 30 sudo cp -a $HOME/usr-sh4/lib/* /export/MobileR2-BSP-current/rootfs_gentoo/usr/local/lib 31 sudo cp -a $HOME/usr-sh4/include/* /export/MobileR2-BSP-current/rootfs_gentoo/usr/local/include 32 sudo cp -a $HOME/usr-sh4/bin/* /export/MobileR2-BSP-current/rootfs_gentoo/usr/local/bin 33 sudo ldconfig -v -r /export/MobileR2-BSP-current/rootfs_gentoo 34 } home/bin/build
r259 r260 112 112 113 113 case $arch in 114 sh | sh3* | sh4*)114 sh | sh3*) 115 115 BUILD_KERNEL_ARCH=sh 116 116 … … 123 123 124 124 # Build on deka 125 CROSS_DIR="$HOME/cross/toolchain-sh3" 125 #CROSS_DIR="$HOME/cross/toolchain-sh3" 126 CROSS_DIR="$HOME/usr/share/gnush4-nofpu_linux_v0701-1" 126 127 build_set_paths $CROSS_DIR 128 export LDFLAGS="-L$HOME/usr-sh3/lib $LDFLAGS" 127 129 128 130 #BUILD_TARGET_ARCH="sh3-linux" … … 138 140 #export PKG_CONFIG_PATH="$HOME/usr-MigoR-cross/lib/pkgconfig:$PKG_CONFIG_PATH" 139 141 export PKG_CONFIG_PATH="$HOME/usr-sh3/lib/pkgconfig:$PKG_CONFIG_PATH" 142 ;; 143 sh4*) 144 BUILD_KERNEL_ARCH=sh 145 146 # Build on deka 147 #CROSS_DIR="$HOME/cross/cross-sh4-unknown-linux-gnu" 148 #build_set_paths $CROSS_DIR 149 #export PATH="$CROSS_DIR/usr/i486-pc-linux-gnu/sh4-unknown-linux-gnu/gcc-bin/4.1.2:$CROSS_DIR/usr/i486-pc-linux-gnu/sh4-unknown-linux-gnu/binutils-bin/2.18:$PATH" 150 #export LDFLAGS="-L$HOME/usr-sh4/lib -L$CROSS_DIR/usr/sh4-unknown-linux-gnu/lib/ $LDFLAGS" 151 export LDFLAGS="-L$HOME/usr-sh4/lib $LDFLAGS" 152 #export LD_LIBRARY_PATH="$CROSS_DIR/usr/lib/binutils/sh4-unknown-linux-gnu/2.18:$LD_LIBRARY_PATH" 153 export CFLAGS="-I/usr/sh4-unknown-linux-gnu/sys-include $CFLAGS" 154 155 ## Kernel Kbuild 156 export CROSS_COMPILE="sh4-unknown-linux-gnu-" 157 158 BUILD_TARGET_ARCH="sh4-unknown-linux-gnu" 159 #CONFIGURE_FLAGS="--host=sh4-linux --prefix=$HOME/usr-sh4/" 160 CONFIGURE_FLAGS="--host=$BUILD_TARGET_ARCH --prefix=$HOME/usr-sh4/" 161 export PKG_CONFIG_PATH="$HOME/usr-sh4/lib/pkgconfig:$PKG_CONFIG_PATH" 140 162 ;; 141 163 *86* | amd64* | *) … … 457 479 build_uninstall $* 458 480 ;; 481 dist) 482 build_make dist $* 483 ;; 459 484 distcheck) 460 485 build_make distcheck $* home/bin/functions
r234 r260 7 7 source ~/bin/irc 8 8 source ~/bin/sourceforge 9 #source ~/bin/freedesktop9 source ~/bin/freedesktop 10 10 source ~/bin/hmap 11 11 12 12 source ~/bin/bsp 13 home/bin/sourceforge
r255 r260 26 26 tree=$1 27 27 project=$(echo $tree | awk -F/ '{ print $1 }') 28 git svn clone https://$project.svn.sourceforge.net/svnroot/$tree28 git svn clone -t tags -b branches -T trunk https://$project.svn.sourceforge.net/svnroot/$tree 29 29 }
