blob: 585a373fa1a2342481fec26f51bb0f4dbcdb76a9 [file] [log] [blame]
Bruce Bearef9f1a9d2010-04-30 12:48:32 -07001The generic_x86 board target provides basic services on very basic
2hardware (really for an emulation). To build with generic_x86, you will
3need an appropriate kernel for your emulation (or device).
Bruce Bearec25e5032010-04-28 14:12:52 -07004
5A1. 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 Bearecce6f922010-07-12 11:32:37 -070011A2. Copy in the kernel
Bruce Bearec25e5032010-04-28 14:12:52 -070012 cd $HOME/AOSP
13 cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel
14
Bruce Bearecce6f922010-07-12 11:32:37 -070015A3. Build
Bruce Bearec25e5032010-04-28 14:12:52 -070016 cd $HOME/AOSP
17 source build/envsetup.sh
18 lunch generic_x86-eng
19 make -j8
20
21The build will generate some image files whose format may or may not be correct for your
Bruce Bearef9f1a9d2010-04-30 12:48:32 -070022device. You can build an installer image disk for the VirtualBox emulator using the command:
23
Bruce Bearecce6f922010-07-12 11:32:37 -070024A4. Build a VirtualBox installer image
Bruce Bearef9f1a9d2010-04-30 12:48:32 -070025 cd $HOME/AOSP
26 source build/envsetup.sh
27 lunch generic_x86-eng
28 make -j8 installer_vdi
29