OSDN Git Service

Enable native bridge
[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 TARGET_USES_64_BIT_BINDER := $(if $(filter x86_64,$(TARGET_ARCH) $(TARGET_KERNEL_ARCH)),true)
36
37 BOARD_USES_GENERIC_AUDIO ?= false
38 BOARD_USES_ALSA_AUDIO ?= true
39 BUILD_WITH_ALSA_UTILS ?= true
40 BOARD_HAS_GPS_HARDWARE ?= true
41
42 # Don't build emulator
43 BUILD_EMULATOR ?= false
44 BUILD_STANDALONE_EMULATOR ?= false
45 BUILD_EMULATOR_QEMUD ?= false
46 BUILD_EMULATOR_OPENGL ?= false
47 BUILD_EMULATOR_OPENGL_DRIVER ?= false
48 BUILD_EMULATOR_QEMU_PROPS ?= false
49 BUILD_EMULATOR_CAMERA_HAL ?= false
50 BUILD_EMULATOR_GPS_MODULE ?= false
51 BUILD_EMULATOR_LIGHTS_MODULE ?= false
52 BUILD_EMULATOR_SENSORS_MODULE ?= false
53
54 BUILD_ARM_FOR_X86 := $(WITH_NATIVE_BRIDGE)
55
56 BOARD_USE_LIBVA_INTEL_DRIVER := true
57 BOARD_USE_LIBVA := true
58 BOARD_USE_LIBMIX := true
59 BOARD_USES_WRS_OMXIL_CORE := true
60 USE_INTEL_OMX_COMPONENTS := true
61
62 USE_OPENGL_RENDERER := true
63 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
64
65 USE_CAMERA_STUB ?= false
66
67 SUPERUSER_EMBEDDED := true
68 SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
69
70 # This enables the wpa wireless driver
71 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
72 BOARD_WPA_SUPPLICANT_PRIVATE_LIB ?= private_lib_driver_cmd
73 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
74 WIFI_DRIVER_MODULE_PATH ?= auto
75
76 #BOARD_GPU_DRIVERS ?= i915 i965 ilo r300g r600g nouveau vmwgfx
77 BOARD_GPU_DRIVERS ?= i915 i965 swrast r300g r600g
78 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
79 TARGET_HARDWARE_3D := true
80 BOARD_EGL_CFG ?= device/generic/common/gpu/egl_mesa.cfg
81 endif
82
83 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.hardware=$(TARGET_PRODUCT)