Changeset 260

Show
Ignore:
Timestamp:
07/23/08 19:22:16 (6 months ago)
Author:
conrad
Message:

update scripts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • home/bin/bsp

    r219 r260  
    11bsp () { 
     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 
    210  if [ -e /dev/ttyUSB0 ] ; then 
    311    TTY=/dev/ttyUSB0 
     
    614  fi 
    715  echo Connecting to $TTY ... 
    8   sudo screen $TTY 115200 
     16  sudo screen -xRR -S BSP $TTY $BAUD 
    917} 
     18 
     19alias bsp-migor="bsp 115200" 
     20alias bsp-mobiler2="bsp 38400" 
     21 
     22migor-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 
     29mobiler2-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  
    112112 
    113113  case $arch in 
    114     sh | sh3* | sh4*
     114    sh | sh3*
    115115      BUILD_KERNEL_ARCH=sh 
    116116 
     
    123123 
    124124      # 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" 
    126127      build_set_paths $CROSS_DIR 
     128      export LDFLAGS="-L$HOME/usr-sh3/lib $LDFLAGS" 
    127129 
    128130      #BUILD_TARGET_ARCH="sh3-linux" 
     
    138140      #export PKG_CONFIG_PATH="$HOME/usr-MigoR-cross/lib/pkgconfig:$PKG_CONFIG_PATH" 
    139141      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" 
    140162      ;; 
    141163    *86* | amd64* | *) 
     
    457479    build_uninstall $* 
    458480    ;; 
     481  dist) 
     482    build_make dist $* 
     483    ;; 
    459484  distcheck) 
    460485    build_make distcheck $* 
  • home/bin/functions

    r234 r260  
    77source ~/bin/irc 
    88source ~/bin/sourceforge 
    9 #source ~/bin/freedesktop 
     9source ~/bin/freedesktop 
    1010source ~/bin/hmap 
    1111 
    1212source ~/bin/bsp 
    13  
  • home/bin/sourceforge

    r255 r260  
    2626  tree=$1 
    2727  project=$(echo $tree | awk -F/ '{ print $1 }') 
    28   git svn clone https://$project.svn.sourceforge.net/svnroot/$tree 
     28  git svn clone -t tags -b branches -T trunk https://$project.svn.sourceforge.net/svnroot/$tree 
    2929}