OSDN Git Service

KERNEL_CMDLINE: enlarge vmalloc for 32-bit system
[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 = $(if $(MKSQUASHFS),0,1610612736)
14
15 # customize the malloced address to be 16-byte aligned
16 BOARD_MALLOC_ALIGNMENT := 16
17
18 # Enable dex-preoptimization to speed up the first boot sequence
19 # of an SDK AVD. Note that this operation only works on Linux for now
20 ifeq ($(HOST_OS),linux)
21 WITH_DEXPREOPT := true
22 WITH_DEXPREOPT_PIC := true
23 endif
24
25 # the following variables could be overridden
26 TARGET_PRELINK_MODULE := false
27 TARGET_NO_KERNEL ?= false
28 TARGET_NO_RECOVERY ?= true
29 TARGET_EXTRA_KERNEL_MODULES := tp_smapi
30 ifneq ($(filter efi_img,$(MAKECMDGOALS)),)
31 TARGET_KERNEL_ARCH ?= x86_64
32 endif
33 TARGET_USES_64_BIT_BINDER := $(if $(filter x86_64,$(TARGET_ARCH) $(TARGET_KERNEL_ARCH)),true)
34
35 BOARD_USES_GENERIC_AUDIO ?= false
36 BOARD_USES_ALSA_AUDIO ?= true
37 BUILD_WITH_ALSA_UTILS ?= true
38 BOARD_HAS_GPS_HARDWARE ?= true
39
40 # Don't build emulator
41 BUILD_EMULATOR ?= false
42 BUILD_STANDALONE_EMULATOR ?= false
43 BUILD_EMULATOR_QEMUD ?= false
44 BUILD_EMULATOR_OPENGL ?= false
45 BUILD_EMULATOR_OPENGL_DRIVER ?= false
46 BUILD_EMULATOR_QEMU_PROPS ?= false
47 BUILD_EMULATOR_CAMERA_HAL ?= false
48 BUILD_EMULATOR_GPS_MODULE ?= false
49 BUILD_EMULATOR_LIGHTS_MODULE ?= false
50 BUILD_EMULATOR_SENSORS_MODULE ?= false
51
52 BUILD_ARM_FOR_X86 := $(WITH_NATIVE_BRIDGE)
53
54 BOARD_USE_LIBVA_INTEL_DRIVER := true
55 BOARD_USE_LIBVA := true
56 BOARD_USE_LIBMIX := true
57 BOARD_USES_WRS_OMXIL_CORE := true
58 USE_INTEL_OMX_COMPONENTS := true
59
60 USE_OPENGL_RENDERER := true
61 NUM_FRAMEBUFFER_SURFACE_BUFFERS ?= 3
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 BOARD_WPA_SUPPLICANT_PRIVATE_LIB ?= private_lib_driver_cmd
72 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
73 WIFI_DRIVER_MODULE_PATH ?= auto
74
75 BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi swrast virgl vmwgfx
76 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
77 TARGET_HARDWARE_3D := true
78 BOARD_EGL_CFG ?= device/generic/common/gpu/egl_mesa.cfg
79 endif
80
81 BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot.selinux=permissive $(if $(filter true,$(TARGET_USES_64_BIT_BINDER)),,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