OSDN Git Service

Merge remote-tracking branch 'x86/nougat-x86' into oreo-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 := true
23 WITH_DEXPREOPT_PIC := true
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 SF_START_GRAPHICS_ALLOCATOR_SERVICE := true
66
67 USE_CAMERA_STUB ?= false
68
69 SUPERUSER_EMBEDDED := true
70 SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
71
72 # This enables the wpa wireless driver
73 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
74 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
75
76 BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi virgl vmwgfx
77 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
78 TARGET_HARDWARE_3D := true
79 endif
80
81 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive$(if $(filter x86_64,$(TARGET_ARCH) $(TARGET_KERNEL_ARCH)),, vmalloc=192M)
82 TARGET_KERNEL_DIFFCONFIG := device/generic/common/selinux_diffconfig
83
84 COMPATIBILITY_ENHANCEMENT_PACKAGE := true
85 PRC_COMPATIBILITY_PACKAGE := true
86 ZIP_OPTIMIZATION_NO_INTEGRITY := true
87
88 DEVICE_MANIFEST_FILE := device/generic/common/manifest.xml
89
90 BOARD_SEPOLICY_DIRS += device/generic/common/sepolicy \
91                        system/bt/vendor_libs/linux/sepolicy \