-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathBoardConfig.mk
140 lines (117 loc) · 3.27 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
include device/intel/common/BoardConfig.mk
TARGET_ARCH_VARIANT := silvermont
TARGET_USE_PRIVATE_LIBM := true
ifeq ($(FORCE_FLASHFILE_NO_OTA),true)
FLASHFILE_NO_OTA := true
else
FLASHFILE_NO_OTA := false
endif
BOARD_HAS_CAPSULE ?= true
# For Baytrail appends the path to EGL libraries.
PRODUCT_LIBRARY_PATH := $(PRODUCT_LIBRARY_PATH):/system/lib/egl
# Disable recovery for now
ifeq ($(TARGET_USE_USERFASTBOOT),true)
TARGET_MAKE_NO_DEFAULT_RECOVERY := false
else
TARGET_MAKE_NO_DEFAULT_RECOVERY := true
endif
TARGET_NO_RECOVERY := false
ENABLE_GEN_GRAPHICS := true
# Force HWC1.3, as HWC1.4 has regression in CR.
INTEL_HWC_ALWAYS_BUILD=hwc13
ifneq ($(TARGET_USE_USERFASTBOOT),true)
ifneq ($(TARGET_NO_RECOVERY),true)
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
TARGET_RECOVERY_UPDATER_LIBS += libintel_updater
endif
endif
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
ifeq ($(TARGET_USE_DROIDBOOT),true)
TARGET_DROIDBOOT_LIBS := libintel_droidboot
TARGET_DROIDBOOT_USB_MODE_FASTBOOT := true
TARGET_RELEASETOOLS_EXTENSIONS := $(PLATFORM_PATH)
TARGET_RECOVERY_FSTAB := $(PLATFORM_PATH)/recovery.fstab
DROIDBOOT_USE_INSTALLER := true
endif
ifeq ($(TARGET_DROIDBOOT_USB_MODE_FASTBOOT),true)
BOARD_KERNEL_DROIDBOOT_EXTRA_CMDLINE += droidboot.minbatt=1
endif
ifneq ($(DROIDBOOT_SCRATCH_SIZE),)
BOARD_KERNEL_DROIDBOOT_EXTRA_CMDLINE += droidboot.scratch=$(DROIDBOOT_SCRATCH_SIZE)
endif
# Software MPEG4 encoder
SW_MPEG4_ENCODER := true
cmdline_extra += oops=panic panic=40
# Dalvik
DEFAULT_JIT_CODE_GENERATOR := PCG
# Security
BUILD_WITH_SECURITY_FRAMEWORK := txei
# enable WebRTC
ENABLE_WEBRTC := false
INTEL_FEATURE_ARKHAM := false
ifeq ($(INTEL_FEATURE_ARKHAM),true)
PRODUCT_BOOT_JARS := $(PRODUCT_BOOT_JARS):com.intel.arkham.services
endif
ifeq ($(strip $(INTEL_FEATURE_ARKHAM)),true)
ADDITIONAL_BUILD_PROPERTIES += \
ro.intel.arkham.enabled=true \
ro.intel.arkham.maxcontainers=1
endif
# Force default camera pixel format to HAL_PIXEL_FORMAT_YCbCr_422_I to properly
# display YUYV format for camera preview when using HAL3
TARGET_CAMERA_PIXEL_FORMAT := HAL_PIXEL_FORMAT_YCbCr_422_I
BOARD_SEPOLICY_DIRS :=\
device/intel/baytrail/sepolicy
BOARD_SEPOLICY_REPLACE := \
domain.te
BOARD_SEPOLICY_UNION :=\
adbd.te \
apk_logfs.te \
bcu_cpufreqrel.te \
bluetooth.te \
coreu.te \
crashlogd.te \
device.te \
dhcp.te \
dumpstate.te \
ecryptfs.te \
fg_conf.te \
file_contexts \
file.te \
fs_use \
genfs_contexts \
gpsd.te \
hdcpd.te \
healthd.te \
init_shell.te \
init.te \
intel_fw_props.te \
isolated_app.te \
kernel.te \
keystore.te \
mediaserver.te \
mmgr.te \
netd.te \
nvm_server.te \
platform_app.te \
radio.te \
rild.te \
seapp_contexts \
sensorhubd.te \
service.te \
service_contexts \
servicemanager.te \
shell.te \
surfaceflinger.te \
system_app.te \
system_server.te \
ueventd.te \
untrusted_app.te \
vdc.te \
vold.te \
watchdogd.te \
wlan_prov.te \
wpa.te \
zygote.te
# DRM Protected Video
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1