Saturday, November 07, 2009

port guile to ben_nanoNOte

Copyleft(c)2009 HackerFellowship. All lefts reserved.
Shawn the R0ck

This documentation is about the process of port guile;you can
redistribute it and /or modify it under the terms of the GNU General
Public License as published by the Free Software Foundataion;either
version 2 of the License,or (at your option) any later version.

You should have read the GNU General Public License before start "RTFSC".

how to port guile from Intel cpu to mips(ported-version for b_nn).We need 2 things:
1.openWrt of ben_nanoNote
2.guile-1.4's source code

$tar zxvf guile-1.4.tar.gz
$cd ..
$mkdir build-guile
$cd build-guile
$../guile-1.4/configure --host=mipsel-openwrt-linux --with-cc=mipsel-openwrt-linux-gcc --with-linker=mipsel-openwrt-linux-ld --prefix=/hfg/guile-x
$grep -r CC= *

Now,you need to modify every files what you see from the list.from "CC= gcc" to "mipsel openwrt-linux-gcc".

$grep -r LD= *

Still do ur modifying from "LD= ld" to "mipsel-openwrt-linux-ld".Actually,you still need to modify very Makefile.

if you got a error something like this".....bin/ld:cant found -lreadline".before run the below cmd,please copy the and to your specify folder(-B your_folder_name):

$mipsel-openwrt-linux-gcc -fPIC -shared readline.lo -lreadline -B /hfg/nanonote/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc- -lncurses -lc -Wl,-soname -Wl, -o .libs/

You got your own scheme interpreter now.dont forget thank for free software movement.Use scp or whatever you like way to upload the /hfg/guile-x/* to "/usr/" of ben_nanoNOte.

finnally,add "export GUILE_LOAD_PATH=/usr/share/guile/1.4" to the /etc/profile on ben_nanoNOte

No comments: