https://arm.mini-box.com/index.php?title=Compiling_Android_from_sources&feed=atom&action=historyCompiling Android from sources - Revision history2024-03-28T13:20:32ZRevision history for this page on the wikiMediaWiki 1.35.9https://arm.mini-box.com/index.php?title=Compiling_Android_from_sources&diff=91&oldid=prevAdmin at 06:33, 20 October 20202020-10-20T06:33:14Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 06:33, 20 October 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l57" >Line 57:</td>
<td colspan="2" class="diff-lineno">Line 57:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Archive (warning might get outdated use git):'''<br></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Archive (warning might get outdated use git):'''<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> <font size="2"><del class="diffchange diffchange-inline">http</del>://arm.mini-box.com/releases/android-gingerbread-2.3.4-src.tgz with the md5sum: 057cc88e1a374f68e3b992ca64fe612f</font></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> <font size="2"><ins class="diffchange diffchange-inline">https</ins>://arm.mini-box.com/releases/android-gingerbread-2.3.4-src.tgz with the md5sum: 057cc88e1a374f68e3b992ca64fe612f</font></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''<font color="red">Warning:</font> the size of the archive it's 3,264Gb'''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''<font color="red">Warning:</font> the size of the archive it's 3,264Gb'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Adminhttps://arm.mini-box.com/index.php?title=Compiling_Android_from_sources&diff=90&oldid=prevAdmin: Created page with "=Getting Project Source Code= Our project is hosted at http://gitorious.org/picopc-android-eclair/<br> Follow below steps, it shows how to set up the building environment, how..."2020-10-20T06:32:07Z<p>Created page with "=Getting Project Source Code= Our project is hosted at http://gitorious.org/picopc-android-eclair/<br> Follow below steps, it shows how to set up the building environment, how..."</p>
<p><b>New page</b></p><div>=Getting Project Source Code=<br />
Our project is hosted at http://gitorious.org/picopc-android-eclair/<br><br />
Follow below steps, it shows how to set up the building environment, how to download android source code and how to build it from scratch.<br />
<br />
=Precondition: Sun JDK=<br />
You would need Sun JDK version 1.5 to build Eclair. However, Sun JDK version 1.5 is known to be EOL (End-Of-Line), and Ubuntu Linux 9.10 no longer ships with sun-java5-jdk.<br />
<br />
If you are using Ubuntu Linux 9.10, just add these two line in file /etc/apt/sources.list:<br />
<br />
deb <nowiki>http://us.archive.ubuntu.com/ubuntu/</nowiki> karmic-updates multiverse<br />
deb-src <nowiki>http://us.archive.ubuntu.com/ubuntu/</nowiki> karmic-updates multiverse<br />
<br />
If you are using Ubuntu 10.04 LTS (Lucid Lynx), add this line to file /etc/apt/sources.list:<br />
deb <nowiki>http://ir.archive.ubuntu.com/ubuntu</nowiki> hardy-updates main multiverse<br />
and install Sun JDK 1.5:<br />
<br />
$ sudo apt-get update<br />
$ sudo apt-get install sun-java5-jdk<br />
To set the system to use Java 5, you need to update your java alternatives by running<br />
<br />
$ sudo update-alternatives --config java<br />
Choose java-1.5.0-sun and it should be done.<br />
<br />
=Precondition: git and repo=<br />
Before you download the source, you will need git and repo tools.<br />
<br />
On an Ubuntu 9.04 host, you can do the following:<br />
<br />
Getting git:<br />
<br />
$ sudo apt-get install git-core<br />
Getting repo:<br />
<br />
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo<br />
$ chmod a+x ~/bin/repo<br />
For reference details about Repo, see Using Repo and Git.<br />
<br />
= Get picoPC-android source =<br />
==Android Gingerbread==<br />
<br />
Download the picopc android gingerbread source code (sources available [http://gitorious.org/picopc-android-gingerbread here]):<br />
<br />
$ mkdir picopc-android-gingerbread<br />
$ cd picopc-android-gingerbread<br />
$ repo init -u git://gitorious.org/picopc-android-gingerbread/manifest.git <br />
$ repo sync<br />
<br />
==Android Eclair==<br />
<br />
Download the picopc android eclair source code (sources available [http://gitorious.org/picopc-android-eclair here]):<br />
<br />
$ mkdir picopc-android-eclair<br />
$ cd picopc-android-eclair<br />
$ repo init -u git://gitorious.org/picopc-android-eclair/manifest.git <br />
$ repo sync<br />
<br />
<br />
'''Archive (warning might get outdated use git):'''<br><br />
<font size="2">http://arm.mini-box.com/releases/android-gingerbread-2.3.4-src.tgz with the md5sum: 057cc88e1a374f68e3b992ca64fe612f</font><br />
'''<font color="red">Warning:</font> the size of the archive it's 3,264Gb'''<br />
<br />
=Build picoPC-android from source=<br />
==Android Gingerbread==<br />
Setup picopc configurations:<br />
$ cd picopc-android-gingerbread<br />
$ . build/envsetup.sh<br />
<br />
Start the building process by executing android build system 'm' command<br />
<br />
$ make update-api (only on first compilation)<br />
$ TARGET_PRODUCT=picopc m<br />
<br />
==Android Eclair==<br />
Setup picopc configurations:<br />
$ cd picopc-android-eclair<br />
$ ln -sf build/buildspec.mk buildspec.mk<br />
$ . build/envsetup.sh<br />
<br />
Start the building process by executing android build system 'm' command<br />
<br />
$ m<br />
<br />
=Installing picoPC-android files=<br />
==Android Gingerbread==<br />
Once successfully built you can use the picopc-tools to extract the rootfs and system images by running the script in:<br><br />
$ picopc-tools/android-tools/rootfs-creator/android-2.3/rootfs-generator.sh<br />
<br />
The resulting files from the latest/ folder can be copied in the rootfs partition on microSD<br />
<br />
==Android Eclair==<br />
Once successfully built you can use the picopc-tools to extract the rootfs and system images by running the script in:<br><br />
$ picopc-tools/android-tools/rootfs-creator/android-2.1/rootfs-generator.sh</div>Admin