Skyler Kaufman | 4443691 | 2011-04-07 15:11:52 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2010 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame] | 17 | # Building for an Android Dev Phone # |
| 18 | |
| 19 | *The information on this page is a bit out of date. We'll update this |
| 20 | page as soon as we can.* |
| 21 | |
| 22 | The basic manifest for 1.6 defines which projects are |
| 23 | needed to do a generic build for the emulator or for unlocked Dream devices |
| 24 | (e.g. the Android Dev Phone 1). You need to have an appropriate device running |
| 25 | a matching official image. |
| 26 | |
| 27 | To build donut for dream (your |
| 28 | device needs to be an ADP1 running an official 1.6 system): |
| 29 | |
| 30 | 1. Follow the [normal steps](downloading.html) to setup repo and check out the sources. |
| 31 | |
| 32 | 2. At the root of your source tree, run `. build/envsetup.sh` like you normally would for an emulator build. |
| 33 | |
| 34 | 3. Run `make adb` if you don't already have adb in your path. |
| 35 | |
| 36 | 4. run `adb root`. |
| 37 | |
| 38 | 5. in `vendor/htc/dream-open/` there is a script called "extract-files.sh" that must be run (from that directory) to extract some proprietary binaries from your device (*). You only need to do this once. |
| 39 | |
| 40 | 6. run `lunch aosp_dream_us-eng` to specifically configure the build system for dream (the default is the equivalent of "lunch generic-eng", which doesn't contain dream-specific files). |
| 41 | |
| 42 | 7. run make from the top of the source tree. |
| 43 | |
| 44 | 8. from this point, the fastboot tool (which is put automatically in your path) can be used to flash a device: boot the device into the bootloader by holding the back key while pressing the power key, and run `fastboot -w flashall`. |
| 45 | |
| 46 | Note: these instructions work for the sapphire (ADP2) build target, as |
| 47 | well. Simply replace "dream" with "sapphire" above. |
| 48 | |