Creating a new x86vbox device

Once we have the HAL for VirtualBox, we can create a new device named x86vbox now. If we review how we created the x86emu device in Chapter 4, Customizing the Android Emulator, we know that we need to have a board/device configuration Makefile and a product definition Makefile for a new device. We can also create a new device by inheriting it from an existing device. If we look at the preceding table of x86 HAL, we can see that there is a common x86 device project, device/common, which can be found in Android-x86. We will create our new device x86vbox by inheriting from this common device for x86. The x86vbox that we create in this chapter is a 32-bit x86 device. You can follow the same instructions to create an x86_64 device by yourself.

As we did in Chapter 4, Customizing the Android Emulator, we create an AndroidProducts.mk Makefile to include the product definition Makefile for x86vbox as follows:

PRODUCT_MAKEFILES :=  
$(LOCAL_DIR)/x86vbox.mk
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.51.191