OSDN Git Service

Remove support for IA-HWC and gralloc.intel modules (r-x86)
[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 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/generic/common/bluetooth
11
12 BOARD_USE_LEGACY_UI := true
13
14 # customize the malloced address to be 16-byte aligned
15 BOARD_MALLOC_ALIGNMENT := 16
16
17 # Enable dex-preoptimization to speed up the first boot sequence
18 # of an SDK AVD. Note that this operation only works on Linux for now
19 ifeq ($(HOST_OS),linux)
20 WITH_DEXPREOPT := true
21 WITH_DEXPREOPT_PIC := true
22 endif
23
24 # the following variables could be overridden
25 TARGET_PRELINK_MODULE := false
26 TARGET_NO_KERNEL ?= false
27 TARGET_NO_RECOVERY ?= true
28 TARGET_EXTRA_KERNEL_MODULES := tp_smapi
29 ifneq ($(filter efi_img,$(MAKECMDGOALS)),)
30 TARGET_KERNEL_ARCH ?= x86_64
31 endif
32 TARGET_USES_64_BIT_BINDER := true
33
34 BOARD_USES_GENERIC_AUDIO ?= false
35 BOARD_USES_ALSA_AUDIO ?= true
36 BUILD_WITH_ALSA_UTILS ?= true
37 BOARD_HAS_GPS_HARDWARE ?= true
38
39 # Don't build emulator
40 BUILD_EMULATOR ?= false
41 BUILD_STANDALONE_EMULATOR ?= false
42 BUILD_EMULATOR_QEMUD ?= false
43 BUILD_EMULATOR_OPENGL ?= false
44 BUILD_EMULATOR_OPENGL_DRIVER ?= false
45 BUILD_EMULATOR_QEMU_PROPS ?= false
46 BUILD_EMULATOR_CAMERA_HAL ?= false
47 BUILD_EMULATOR_GPS_MODULE ?= false
48 BUILD_EMULATOR_LIGHTS_MODULE ?= false
49 BUILD_EMULATOR_SENSORS_MODULE ?= false
50
51 BUILD_ARM_FOR_X86 := $(WITH_NATIVE_BRIDGE)
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 BOARD_USES_DRM_GRALLOC := false
62 BOARD_USES_DRM_HWCOMPOSER ?= true
63
64 USE_CAMERA_STUB ?= false
65
66 SUPERUSER_EMBEDDED := true
67 SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
68
69 # This enables the wpa wireless driver
70 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
71 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
72
73 BOARD_GPU_DRIVERS ?= i915 i965 iris nouveau r300g r600g radeonsi virgl vmwgfx
74 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
75 TARGET_HARDWARE_3D := true
76 endif
77
78 BOARD_KERNEL_CMDLINE := root=/dev/ram0$(if $(filter x86_64,$(TARGET_ARCH) $(TARGET_KERNEL_ARCH)),, vmalloc=192M)
79 TARGET_KERNEL_DIFFCONFIG := device/generic/common/selinux_diffconfig
80
81 COMPATIBILITY_ENHANCEMENT_PACKAGE := true
82 PRC_COMPATIBILITY_PACKAGE := true
83 ZIP_OPTIMIZATION_NO_INTEGRITY := true
84
85 DEVICE_MANIFEST_FILE := device/generic/common/manifest.xml
86
87 BOARD_SEPOLICY_DIRS += device/generic/common/sepolicy/nonplat \
88                        system/bt/vendor_libs/linux/sepolicy \
89
90 BOARD_PLAT_PRIVATE_SEPOLICY_DIR := device/generic/common/sepolicy/plat_private
91
92 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
93 BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
94 BOARD_USES_OEMIMAGE := true
95 BUILD_BROKEN_USES_NETWORK := true
96 USE_XML_AUDIO_POLICY_CONF := 1
97
98 BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE := true
99 BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true
100
101 BOARD_USES_MINIGBM := true
102 TARGET_USES_HWC2 ?= true
103 #BOARD_USES_VULKAN := true