Building x86emu

Before we start to build x86emu, let's have a quick look at the Android build system first. The major difference between the Android build system from other make-based build systems is that the Android build system doesn't rely on recursive Makefiles. Android Makefiles end in the extension .mk; the main Makefile for a particular source directory is named Android.mk. The build system imports all Android.mk from various folders to create one large Makefile to start the build, as we can see from the following code snippet:

$ make -j4 ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=7.1.1 TARGET_PRODUCT=x86emu TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= ... ...

Get Android System Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.