Building the HTC Dream Platform

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
m (fhtagn)
Line 1: Line 1:
-
To build your own version of the Open Source HTC Dream platform to run in an emulator, or to [[how to flash recovery image|do other things]] with, you must first get the source.
+
fhtagn
-
 
+
-
[http://source.android.com/download Download the Android Source] and follow Google's instructions for your platform, with a few additional notes (some of the notes below appear on a [http://source.android.com/documentation/building-for-dream different page on the Android site]):
+
-
* If you are on Ubuntu, you should also:
+
-
<pre>
+
-
sudo apt-get install unzip
+
-
</pre>
+
-
which is missing from their list of packages needed to build ([http://code.google.com/p/android/issues/detail?id=2872 a bug report has been filed]).
+
-
 
+
-
* If you are on a Mac, you can use a case-sensitive disk image instead of reformatting a partition.
+
-
 
+
-
Once you have downloaded the entire git tree (it's huge. Go make Mario noises on your phone or something while you wait) - you will need to add the following to a local_manifest.xml file inside the 'mydroid/.repo/' directory:
+
-
 
+
-
<pre>
+
-
<?xml version="1.0" encoding="UTF-8"?>
+
-
<manifest>
+
-
<remove-project name="kernel/common"/>
+
-
<project path="kernel" name="kernel/msm" revision="refs/heads/android-msm-htc-2.6.25"/>
+
-
<project path="vendor/htc/dream" name="platform/vendor/htc/dream"/>
+
-
<project path="hardware/msm7k" name="platform/hardware/msm7k"/>
+
-
</manifest>
+
-
</pre>
+
-
 
+
-
Once you have put that file in place, you need to update your repo again:
+
-
 
+
-
repo sync
+
-
 
+
-
Once you have synced your repo, you should see a directory structure called 'vendor/htc/dream'
+
-
 
+
-
In order to build a working image, you will need some proprietary binaries from the HTC Dream for which HTC and Google do not provide source.  There is a script provided at vendor/htc/dream/extract-files.sh to do this, but it is missing some of the necessary binaries.  Add these lines to extract-files.sh:
+
-
 
+
-
<pre>
+
-
adb pull /system/lib/libaudio.so proprietary/libaudio.so
+
-
adb pull /system/lib/libcameraservice.so proprietary/libcameraservice.so
+
-
adb pull /system/lib/libcamera.so proprietary/libcamera.so
+
-
adb pull /system/lib/libOmxCore.so proprietary/libOmxCore.so
+
-
adb pull /system/lib/librpc.so proprietary/librpc.so
+
-
adb pull /system/lib/libgps.so proprietary/libgps.so
+
-
adb pull /system/lib/libhgl.so proprietary/libhgl.so
+
-
</pre>
+
-
 
+
-
After extracting the above files, place them in the vendor/htc/dream/proprietary/ directory of your source clone.
+
-
 
+
-
Once this is done, you can edit the file in the mydroid/buildspec.mk to tell it to have TARGET_PRODUCT=htc_dream  - or you can run make in this way:
+
-
 
+
-
make TARGET_PRODUCT=htc_dream
+
-
 
+
-
Once the build is complete, you will have an open-source build.
+
-
 
+
-
If the build fails at target »vendor/htc/dream/proprietary/akmd« or similar you are probably missing the proprietary binaries.
+
-
 
+
-
You have to get them from the device. ( See mydroid/vendor/htc/dream/README.txt )
+
-
 
+
-
Remark: You will have to add the tools directory of the android SDK to your path before you run the mydroid/vendor/htc/dream/extract-files.sh
+
-
+
-
 
+
-
'''Please update this page to include any additional information you need to build on your system'''
+

Revision as of 21:24, 1 August 2009

fhtagn

Personal tools