Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20403
  • 博文数量: 15
  • 博客积分: 730
  • 博客等级: 军士长
  • 技术积分: 155
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-04 14:41
文章分类

全部博文(15)

文章存档

2010年(15)

我的朋友
最近访客

分类: 嵌入式

2010-01-12 00:17:16

1.Obtain the generic MIPS Android sources

Installing repo

$ curl  >~/bin/repo
$ chmod a+x ~/bin/repo

Alternatively under the root user, repo can be installed in /usr/bin or /bin to be available system-wide.

Obtaining manifest.xml

$ mkdir mipsandroid
$ cd mipsandroid

As of now, there are two separate repositories. The public repository is hosted on a fast server with higher bandwidth, and is intended for anonymous access. The SSH secured repository will continue to exist for hosting proprietary components and as a staging area for work in progress.

To access the public repository, use:

$ repo init -u git://public.mipsandroid.com/mips/platform/manifest.git -b mips-cupcake

The above command creates a .repo directory in the mipsandroid directory and populates it with the manifest.xml from the mipsandroid.com site.

Retrieving MIPS Android Sources

$ repo sync

The above command will retrieve the generic MIPS Android sources. Sources specific to a given platform will also be needed in order to successfully build Android for that platform.

2.Obtain the platform-specific Android sources

To obtain and build Android for the RMI HMP10 platform, you will first need to pull down the core Android sources using the following instructions.

Change to the .repo directory of your local MIPS Android source and create the local_manifest.xml file with the following contents:


   
   

Run repo to update your sources, as followed:

$ cd 
$ repo sync

3.A GNU compiler that can generate MIPS R1 instructions is required to build the Android sources for the HMP10.

4.Build Android for your specific platform

MIPS Android is platform-specific. To build Android for a given MIPS platform, you will need a fairly recent installation of Fedora or Ubuntu (other Linux distributions will probably work, but have not yet been tested).

Android requires specific version of JDK (5.0) to build, as neither openJDK (6.0) nor the default JDK from older Linux distributions works. It's recommended that you install and use J2SE 5.0

Run the following from your top-level MIPS Android source tree:

$ cd 
$ export TARGET_PRODUCT=
$ export TARGET_ARCH_VERSION=mips32
$ export TARGET_ARCH=mips
$ make

Supported target products are:

      Vendor Platform                   
      ---------------                   ----------------  
         RMI HMP10                           hmp10
 
阅读(487) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~