OSDN Git Service

Merge remote-tracking branch 'x86/nougat-x86' into cm-14.1-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 BOARD_SYSTEMIMAGE_PARTITION_SIZE = $(if $(MKSQUASHFS),0,1610612736)
15
16 # customize the malloced address to be 16-byte aligned
17 BOARD_MALLOC_ALIGNMENT := 16
18
19 # Enable dex-preoptimization to speed up the first boot sequence
20 # of an SDK AVD. Note that this operation only works on Linux for now
21 ifeq ($(HOST_OS),linux)
22 WITH_DEXPREOPT := false
23 WITH_DEXPREOPT_PIC := false
24 endif
25
26 # the following variables could be overridden
27 TARGET_PRELINK_MODULE := false
28 TARGET_NO_KERNEL ?= false
29 TARGET_NO_RECOVERY ?= true
30 TARGET_EXTRA_KERNEL_MODULES := tp_smapi
31 ifneq ($(filter efi_img,$(MAKECMDGOALS)),)
32 TARGET_KERNEL_ARCH ?= x86_64
33 endif
34 TARGET_USES_64_BIT_BINDER := true
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 BUILD_ARM_FOR_X86 := $(WITH_NATIVE_BRIDGE)
54
55 BOARD_USE_LIBVA_INTEL_DRIVER := true
56 BOARD_USE_LIBVA := true
57 BOARD_USE_LIBMIX := true
58 BOARD_USES_WRS_OMXIL_CORE := true
59 USE_INTEL_OMX_COMPONENTS := true
60
61 USE_OPENGL_RENDERER := true
62 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
63 BOARD_USES_DRM_GRALLOC := true
64 BOARD_USES_DRM_HWCOMPOSER ?= true
65 BOARD_EGL_WORKAROUND_BUG_10194508 := true
66
67 USE_CAMERA_STUB ?= false
68
69 # This enables the wpa wireless driver
70 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
71 WPA_SUPPLICANT_VERSION := VER_2_1_DEVEL
72 WIFI_DRIVER_MODULE_NAME := brcmfmac
73
74 BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi virgl vmwgfx
75 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
76 TARGET_HARDWARE_3D := true
77 endif
78
79 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive $(if $(filter true,$(TARGET_USES_64_BIT_BINDER)),,vmalloc=192M)
80 TARGET_KERNEL_DIFFCONFIG := device/generic/common/selinux_diffconfig
81
82 COMPATIBILITY_ENHANCEMENT_PACKAGE := true
83 PRC_COMPATIBILITY_PACKAGE := true
84 ZIP_OPTIMIZATION_NO_INTEGRITY := true
85
86 # LineageOS specific
87 VER := 14.1-r5
88 RELEASE_OS_TITLE := LineageOS
89 BUILD_NAME_VARIANT := cm-x86
90 INSTALL_PREFIX := cm-x86-$(VER)