• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1The 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).
4
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
11A2. Copy in the buildspeck.mk
12        cd $HOME/AOSP
13        cp build/target/board/generic_x86/buildspec-generic_x86.mk buildspec.mk
14
15A3. Copy in the kernel
16        cd $HOME/AOSP
17        cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel
18
19A4. Build
20        cd $HOME/AOSP
21        source build/envsetup.sh
22        lunch generic_x86-eng
23        make -j8
24
25The build will generate some image files whose format may or may not be correct for your
26device. You can build an installer image disk for the VirtualBox emulator using the command:
27
28A5. Build a VirtualBox installer image
29	cd $HOME/AOSP
30        source build/envsetup.sh
31        lunch generic_x86-eng
32        make -j8 installer_vdi
33
34