OSDN Git Service

Sync with android-x86-4.4-r2 release
[android-x86/device-generic-common.git] / BoardConfig.mk
1 #
2 # BoardConfig.mk for x86 platform
3 #
4
5 TARGET_BOARD_PLATFORM := android-x86
6
7 # Some framework code requires this to enable BT
8 BOARD_HAVE_BLUETOOTH := true
9 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/common/bluetooth
10 BLUETOOTH_HCI_USE_USB := true
11 BOARD_HAVE_BLUETOOTH_BCM := true
12
13 BOARD_USE_LEGACY_UI := true
14
15 BOARD_SYSTEMIMAGE_PARTITION_SIZE = $(if $(MKSQUASHFS),0,1073741824)
16
17 # customize the malloced address to be 16-byte aligned
18 BOARD_MALLOC_ALIGNMENT := 16
19
20 # Enable dex-preoptimization to speed up the first boot sequence
21 # of an SDK AVD. Note that this operation only works on Linux for now
22 ifeq ($(HOST_OS),linux)
23 WITH_DEXPREOPT := true
24 TARGET_GCC_VERSION_EXP := 4.9
25 endif
26
27 # the following variables could be overridden
28 TARGET_PRELINK_MODULE := false
29 TARGET_NO_KERNEL ?= false
30 TARGET_NO_RECOVERY ?= true
31 TARGET_EXTRA_KERNEL_MODULES := tp_smapi
32 ifneq ($(filter efi_img,$(MAKECMDGOALS)),)
33 TARGET_KERNEL_ARCH ?= x86_64
34 endif
35
36 BOARD_USES_GENERIC_AUDIO ?= false
37 BOARD_USES_ALSA_AUDIO ?= true
38 BUILD_WITH_ALSA_UTILS ?= true
39 BOARD_HAS_GPS_HARDWARE ?= true
40
41 # Don't build emulator
42 BUILD_EMULATOR ?= false
43 BUILD_STANDALONE_EMULATOR ?= false
44 BUILD_EMULATOR_QEMUD ?= false
45 BUILD_EMULATOR_OPENGL ?= false
46 BUILD_EMULATOR_OPENGL_DRIVER ?= false
47 BUILD_EMULATOR_QEMU_PROPS ?= false
48 BUILD_EMULATOR_CAMERA_HAL ?= false
49 BUILD_EMULATOR_GPS_MODULE ?= false
50 BUILD_EMULATOR_LIGHTS_MODULE ?= false
51 BUILD_EMULATOR_SENSORS_MODULE ?= false
52
53 BOARD_USE_LIBVA_INTEL_DRIVER := true
54 BOARD_USE_LIBVA := true
55 BOARD_USE_LIBMIX := true
56 BOARD_USES_WRS_OMXIL_CORE := true
57 USE_INTEL_OMX_COMPONENTS := true
58
59 USE_OPENGL_RENDERER := true
60 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
61
62 USE_CAMERA_STUB ?= false
63
64 SUPERUSER_EMBEDDED := true
65 SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
66
67 # This enables the wpa wireless driver
68 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
69 BOARD_WPA_SUPPLICANT_PRIVATE_LIB ?= private_lib_driver_cmd
70 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
71 WIFI_DRIVER_MODULE_PATH ?= auto
72
73 #BOARD_GPU_DRIVERS ?= i915 i965 ilo r300g r600g nouveau vmwgfx
74 BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g
75 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
76 TARGET_HARDWARE_3D := true
77 BOARD_EGL_CFG ?= device/generic/common/gpu/egl_mesa.cfg
78 endif
79
80 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.hardware=$(TARGET_PRODUCT)