OSDN Git Service

Always use 64-bit binder
[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_HAVE_BLUETOOTH_LINUX := true
10
11 BOARD_USE_LEGACY_UI := true
12
13 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
14 BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
15 BOARD_SYSTEMIMAGE_SQUASHFS_COMPRESSOR := gzip
16 #TARGET_USERIMAGES_SPARSE_SQUASHFS_DISABLED := true
17
18 # customize the malloced address to be 16-byte aligned
19 BOARD_MALLOC_ALIGNMENT := 16
20
21 # Enable dex-preoptimization to speed up the first boot sequence
22 # of an SDK AVD. Note that this operation only works on Linux for now
23 ifeq ($(HOST_OS),linux)
24 WITH_DEXPREOPT := true
25 WITH_DEXPREOPT_PIC := true
26 endif
27
28 # the following variables could be overridden
29 TARGET_PRELINK_MODULE := false
30 TARGET_NO_KERNEL ?= false
31 TARGET_NO_RECOVERY ?= true
32 TARGET_EXTRA_KERNEL_MODULES := tp_smapi
33 ifneq ($(filter efi_img,$(MAKECMDGOALS)),)
34 TARGET_KERNEL_ARCH ?= x86_64
35 endif
36 TARGET_USES_64_BIT_BINDER := true
37
38 BOARD_USES_GENERIC_AUDIO ?= false
39 BOARD_USES_ALSA_AUDIO ?= true
40 BUILD_WITH_ALSA_UTILS ?= true
41 BOARD_HAS_GPS_HARDWARE ?= true
42
43 # Don't build emulator
44 BUILD_EMULATOR ?= false
45 BUILD_STANDALONE_EMULATOR ?= false
46 BUILD_EMULATOR_QEMUD ?= false
47 BUILD_EMULATOR_OPENGL ?= false
48 BUILD_EMULATOR_OPENGL_DRIVER ?= false
49 BUILD_EMULATOR_QEMU_PROPS ?= false
50 BUILD_EMULATOR_CAMERA_HAL ?= false
51 BUILD_EMULATOR_GPS_MODULE ?= false
52 BUILD_EMULATOR_LIGHTS_MODULE ?= false
53 BUILD_EMULATOR_SENSORS_MODULE ?= false
54
55 BUILD_ARM_FOR_X86 := $(WITH_NATIVE_BRIDGE)
56
57 BOARD_USE_LIBVA_INTEL_DRIVER := true
58 BOARD_USE_LIBVA := true
59 BOARD_USE_LIBMIX := true
60 BOARD_USES_WRS_OMXIL_CORE := true
61 USE_INTEL_OMX_COMPONENTS := true
62
63 USE_OPENGL_RENDERER := true
64 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
65 BOARD_USES_DRM_HWCOMPOSER ?= true
66 SF_START_GRAPHICS_ALLOCATOR_SERVICE := true
67
68 USE_CAMERA_STUB ?= false
69
70 SUPERUSER_EMBEDDED := true
71 SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
72
73 # This enables the wpa wireless driver
74 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
75 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
76
77 BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi virgl vmwgfx
78 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
79 TARGET_HARDWARE_3D := true
80 endif
81
82 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive $(if $(filter true,$(TARGET_USES_64_BIT_BINDER)),,vmalloc=192M)
83 TARGET_KERNEL_DIFFCONFIG := device/generic/common/selinux_diffconfig
84
85 COMPATIBILITY_ENHANCEMENT_PACKAGE := true
86 PRC_COMPATIBILITY_PACKAGE := true
87 ZIP_OPTIMIZATION_NO_INTEGRITY := true
88
89 DEVICE_MANIFEST_FILE := device/generic/common/manifest.xml