Bruce Beare | f9f1a9d | 2010-04-30 12:48:32 -0700 | [diff] [blame] | 1 | The generic_x86 board target provides basic services on very basic |
| 2 | hardware (really for an emulation). To build with generic_x86, you will |
| 3 | need an appropriate kernel for your emulation (or device). |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 4 | |
| 5 | A1. Create a new top level directory and pull the AOSP repository |
| 6 | mkdir $HOME/AOSP |
| 7 | cd $HOME/AOSP |
| 8 | repo init -u git://android.git.kernel.org/platform/manifest.git |
| 9 | repo sync |
| 10 | |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 11 | A2. Copy in the kernel |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 12 | cd $HOME/AOSP |
| 13 | cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel |
| 14 | |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 15 | A3. Build |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 16 | cd $HOME/AOSP |
| 17 | source build/envsetup.sh |
| 18 | lunch generic_x86-eng |
| 19 | make -j8 |
| 20 | |
| 21 | The build will generate some image files whose format may or may not be correct for your |
Bruce Beare | f9f1a9d | 2010-04-30 12:48:32 -0700 | [diff] [blame] | 22 | device. You can build an installer image disk for the VirtualBox emulator using the command: |
| 23 | |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 24 | A4. Build a VirtualBox installer image |
Bruce Beare | f9f1a9d | 2010-04-30 12:48:32 -0700 | [diff] [blame] | 25 | cd $HOME/AOSP |
| 26 | source build/envsetup.sh |
| 27 | lunch generic_x86-eng |
| 28 | make -j8 installer_vdi |
| 29 | |