1#
2# Copyright 2013 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Use the non-open-source parts, if they're present
18-include vendor/intel/fugu/BoardConfigVendor.mk
19
20TARGET_ARCH := x86
21TARGET_ARCH_VARIANT := silvermont
22TARGET_CPU_ABI := x86
23
24TARGET_RECOVERY_FSTAB := device/asus/fugu/recovery.fstab
25TARGET_RELEASETOOLS_EXTENSIONS := device/asus/fugu
26TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_fugu
27TARGET_RECOVERY_UI_LIB := librecovery_ui_fugu
28
29TARGET_BOARD_PLATFORM := moorefield
30TARGET_BOOTLOADER_BOARD_NAME := fugu
31TARGET_USERIMAGES_USE_EXT4 := true
32BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
33BOARD_FLASH_BLOCK_SIZE := 2048
34
35BOARD_CACHEIMAGE_PARTITION_SIZE := 260014080
36
37TARGET_DROIDBOOT_LIBS := libintel_droidboot
38TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
39
40MALLOC_SVELTE := true
41
42# Kernel cmdline
43BOARD_KERNEL_CMDLINE := pci=noearly vmalloc=256M ptrace.ptrace_can_access=1
44BOARD_KERNEL_CMDLINE += earlyprintk=nologger loglevel=8
45BOARD_KERNEL_CMDLINE += androidboot.hardware=fugu androidboot.serialno=01234567890123456789
46BOARD_KERNEL_CMDLINE += snd_pcm.maximum_substreams=8
47BOARD_KERNEL_CMDLINE += intel_soc_pmu.enable_s3=0
48
49# Custom dumpstate library to add board specific stuff to bugreport
50BOARD_HAL_STATIC_LIBRARIES := libdumpstate.fugu
51
52# Binder API version
53TARGET_USES_64_BIT_BINDER := true
54
55# Security
56BUILD_WITH_SECURITY_FRAMEWORK := chaabi_token
57BUILD_WITH_CHAABI_SUPPORT := true
58
59# Wifi
60BOARD_WLAN_DEVICE := bcmdhd
61BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
62BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
63WPA_SUPPLICANT_VERSION := VER_0_8_X
64BOARD_WPA_SUPPLICANT_DRIVER := NL80211
65WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
66WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
67WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
68
69# Bluetooth
70BOARD_HAVE_BLUETOOTH := true
71BOARD_HAVE_BLUETOOTH_BCM := true
72BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/asus/fugu/bluetooth
73
74# IMG graphics
75BOARD_GFX_REV := RGX6400
76ENABLE_IMG_GRAPHICS := true
77ENABLE_MRFL_GRAPHICS := true
78INTEL_HWC_MOOREFIELD_HDMI := true
79HWUI_IMG_FBO_CACHE_OPTIM := true
80TARGET_SUPPORT_HDMI_PRIMARY := true
81BOARD_USES_LIBDRM := true
82
83# Audio
84BOARD_USES_ALSA_AUDIO := true
85BOARD_USES_TINY_ALSA_AUDIO := true
86
87# System's VSYNC phase offsets in nanoseconds
88VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
89SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
90
91BOARD_EGL_CFG := device/asus/fugu/egl.cfg
92
93ADDITIONAL_DEFAULT_PROPERTIES += \
94    ro.opengles.version = 196609 \
95    ro.hwui.drop_shadow_cache_size = 4.0 \
96    ro.hwui.gradient_cache_size = 0.8 \
97    ro.hwui.layer_cache_size = 32.0 \
98    ro.hwui.path_cache_size = 24.0 \
99    ro.hwui.text_large_cache_width = 2048 \
100    ro.hwui.text_large_cache_height = 1024 \
101    ro.hwui.text_small_cache_width = 1024 \
102    ro.hwui.text_small_cache_height = 512 \
103    ro.hwui.texture_cache_flushrate = 0.4 \
104    ro.hwui.texture_cache_size = 48.0 \
105
106# Temporary to workaround b/28521732 & b/27903668
107ADDITIONAL_DEFAULT_PROPERTIES += \
108    debug.hwui.use_buffer_age = 0
109
110MAX_EGL_CACHE_ENTRY_SIZE := 65536
111MAX_EGL_CACHE_SIZE := 1048576
112
113INTEL_VA := true
114BUILD_WITH_FULL_STAGEFRIGHT := true
115BOARD_USES_VIDEO := true
116BOARD_USES_WRS_OMXIL_CORE := true
117BOARD_USES_MRST_OMX := true
118USE_HW_VP8 := true
119
120# DRM Protected Video
121BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
122USE_INTEL_SECURE_AVC := true
123
124# Settings for the Media SDK library and plug-ins:
125# - USE_MEDIASDK: use Media SDK support or not
126# - MFX_IPP: sets IPP library optimization to use
127USE_MEDIASDK := true
128MFX_IPP := p8
129
130# Video Post Processing
131TARGET_HAS_ISV := true
132ADDITIONAL_DEFAULT_PROPERTIES += \
133    persist.intel.isv.vpp = 1 \
134    persist.intel.isv.frc = 1
135
136OVERRIDE_RS_DRIVER := libPVRRS.so
137
138# enable ARM codegen for x86 with Houdini
139BUILD_ARM_FOR_X86 := true
140
141# enabled to carry out all drawing operations performed on a View's canvas with GPU for 2D rendering pipeline.
142USE_OPENGL_RENDERER := true
143# DPST
144INTEL_DPST := true
145
146# bootstub as 2nd bootloader
147TARGET_BOOTLOADER_IS_2ND := true
148
149BOARD_SEPOLICY_DIRS += device/asus/fugu/sepolicy
150
151USE_CLANG_PLATFORM_BUILD := true
152
153# Use the non-open-source parts, if they're present
154-include vendor/asus/fugu/BoardConfigVendor.mk
155
156# Recipes to generate prebuilts
157-include device/intel/common/external/external.mk
158
159# Don't dex preopt prebuilt apps that will be updated from Play Store
160DONT_DEXPREOPT_PREBUILTS := true
161
162