Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1099665
  • 博文数量: 276
  • 博客积分: 8317
  • 博客等级: 少将
  • 技术积分: 2329
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-12 08:17
个人简介

http://ads.buzzcity.net/adpage.php?partnerid=40096

文章分类

全部博文(276)

文章存档

2013年(1)

2012年(38)

2011年(102)

2010年(85)

2009年(45)

2008年(5)

分类: LINUX

2009-09-27 16:20:58

移植bash-4.0到android上,主机环境,gentoo linux + x86,前提条件 codesourcery的arm toolchain和bash-4.0源代码。
可以从如下网站下载:
ARM Toolkit (The Cross Compiler):

The source code for Bash 4.0:

解压arm toolchain到/opt 并设置PATH
解压bash-4.0.tar.gz
./configure -host=arm-none-linux-gnueabi --enable-static-link --without-bash-malloc --disable-nls
make
adb bash /data/data
adb shell
cd /data/data
./bash
看看是不是可以在android上使用bash了。

附件是移植过来的bash源代码,放到android的源代码external目录下,然后mm就可以编译出来。

文件:bash-4.0.tar.bz2
大小:4061KB
下载:下载

阅读(1397) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-04-14 20:10:27

报错啊: ./system/core/include/arch/linux-arm/AndroidConfig.h:202:1: warning: this is the location of the previous definition external/bash-4.0/nojobs.c:411: error: return type defaults to 'int' external/bash-4.0/nojobs.c: In function 'wait_sigint_handler': external/bash-4.0/nojobs.c:683: warning: implicit declaration of function 'signal_is_trapped' external/bash-4.0/nojobs.c: In function 'wait_for': external/bash-4.0/nojobs.c:789: warning: implicit declaration of function 'maybe_call_trap_han