platform_build/target/board/generic_x86
2010-05-14 15:47:56 -07:00
..
AndroidBoard.mk Add support for x86 VirtualBox Emulation 2010-05-05 09:52:09 -07:00
BoardConfig.mk Use a different kernel boot line for the disk installer. 2010-05-07 11:51:30 -07:00
buildspec-generic_x86.mk Use a property to enable the eth0 LAN port on the emulator 2010-05-05 09:52:23 -07:00
disk_layout.conf Add support for x86 VirtualBox Emulation 2010-05-05 09:52:09 -07:00
init.rc Use a property to enable the eth0 LAN port on the emulator 2010-05-05 09:52:23 -07:00
README.txt Add support for x86 VirtualBox Emulation 2010-05-05 09:52:09 -07:00

The generic_x86 board target provides basic services on very basic
hardware (really for an emulation). To build with generic_x86, you will
need an appropriate kernel for your emulation (or device).

A1. Create a new top level directory and pull the AOSP repository
        mkdir $HOME/AOSP
        cd $HOME/AOSP
        repo init -u git://android.git.kernel.org/platform/manifest.git
        repo sync

A2. Copy in the buildspeck.mk
        cd $HOME/AOSP
        cp build/target/board/generic_x86/buildspec-generic_x86.mk buildspec.mk

A3. Copy in the kernel
        cd $HOME/AOSP
        cp ~/bzImage.your_device $HOME/AOSP/prebuilt/android-x86/kernel/kernel

A4. Build
        cd $HOME/AOSP
        source build/envsetup.sh
        lunch generic_x86-eng
        make -j8

The build will generate some image files whose format may or may not be correct for your
device. You can build an installer image disk for the VirtualBox emulator using the command:

A5. Build a VirtualBox installer image
	cd $HOME/AOSP
        source build/envsetup.sh
        lunch generic_x86-eng
        make -j8 installer_vdi