Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 1 | # config.mk |
| 2 | # |
| 3 | # Product-specific compile-time definitions. |
| 4 | # |
| 5 | |
| 6 | # The generic product target doesn't have any hardware-specific pieces. |
| 7 | TARGET_NO_BOOTLOADER := true |
| 8 | TARGET_NO_KERNEL := true |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 9 | TARGET_CPU_ABI := x86 |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 10 | TARGET_ARCH := x86 |
Andrew Hsieh | b968c85 | 2012-05-21 14:27:59 +0800 | [diff] [blame] | 11 | TARGET_ARCH_VARIANT := x86 |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 12 | TARGET_PRELINK_MODULE := false |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 13 | |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 14 | # The IA emulator (qemu) uses the Goldfish devices |
| 15 | HAVE_HTC_AUDIO_DRIVER := true |
| 16 | BOARD_USES_GENERIC_AUDIO := true |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 17 | |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 18 | # no hardware camera |
| 19 | USE_CAMERA_STUB := true |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 20 | |
Jack Ren | 6f28d97 | 2012-03-17 17:16:48 +0800 | [diff] [blame] | 21 | # customize the malloced address to be 16-byte aligned |
| 22 | BOARD_MALLOC_ALIGNMENT := 16 |
| 23 | |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 24 | # Enable dex-preoptimization to speed up the first boot sequence |
| 25 | # of an SDK AVD. Note that this operation only works on Linux for now |
| 26 | ifeq ($(HOST_OS),linux) |
Ying Wang | c6848b3 | 2014-03-20 12:57:19 -0700 | [diff] [blame] | 27 | WITH_DEXPREOPT ?= true |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 28 | endif |
| 29 | |
David 'Digit' Turner | 43dd89d | 2011-08-23 22:25:13 +0200 | [diff] [blame] | 30 | # Build OpenGLES emulation host and guest libraries |
| 31 | BUILD_EMULATOR_OPENGL := true |
Xavier Ducrohet | 295cb9b | 2012-02-16 16:35:42 -0800 | [diff] [blame] | 32 | |
| 33 | # Build and enable the OpenGL ES View renderer. When running on the emulator, |
| 34 | # the GLES renderer disables itself if host GL acceleration isn't available. |
| 35 | USE_OPENGL_RENDERER := true |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 36 | |
| 37 | TARGET_USERIMAGES_USE_EXT4 := true |
Elliott Hughes | 368600b | 2014-05-27 16:47:44 -0700 | [diff] [blame] | 38 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 786432000 |
Tsu Chiang Chuang | 27a026c | 2014-05-06 17:27:20 -0700 | [diff] [blame] | 39 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 40 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
| 41 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 42 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 43 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
Stephen Smalley | 737f9a1 | 2013-12-20 13:26:11 -0500 | [diff] [blame] | 44 | |
| 45 | BOARD_SEPOLICY_DIRS += build/target/board/generic_x86/sepolicy |
| 46 | BOARD_SEPOLICY_UNION += \ |
Ji-Hwan Lee | 93e4507 | 2014-05-19 20:43:23 +0900 | [diff] [blame] | 47 | app.te \ |
Stephen Smalley | 768ff51 | 2014-02-25 13:37:06 -0500 | [diff] [blame] | 48 | adbd.te \ |
Ji-Hwan Lee | 93e4507 | 2014-05-19 20:43:23 +0900 | [diff] [blame] | 49 | bootanim.te \ |
Stephen Smalley | 768ff51 | 2014-02-25 13:37:06 -0500 | [diff] [blame] | 50 | device.te \ |
Stephen Smalley | 737f9a1 | 2013-12-20 13:26:11 -0500 | [diff] [blame] | 51 | domain.te \ |
Stephen Smalley | 768ff51 | 2014-02-25 13:37:06 -0500 | [diff] [blame] | 52 | file.te \ |
| 53 | file_contexts \ |
Stephen Smalley | 737f9a1 | 2013-12-20 13:26:11 -0500 | [diff] [blame] | 54 | healthd.te \ |
| 55 | installd.te \ |
Stephen Smalley | 768ff51 | 2014-02-25 13:37:06 -0500 | [diff] [blame] | 56 | mediaserver.te \ |
| 57 | qemud.te \ |
| 58 | rild.te \ |
Nick Kralevich | b20966f | 2014-03-18 15:17:35 -0700 | [diff] [blame] | 59 | shell.te \ |
Ji-Hwan Lee | 93e4507 | 2014-05-19 20:43:23 +0900 | [diff] [blame] | 60 | surfaceflinger.te \ |
Stephen Smalley | 737f9a1 | 2013-12-20 13:26:11 -0500 | [diff] [blame] | 61 | system_server.te \ |
| 62 | zygote.te |