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 40# Use dlmalloc 41MALLOC_IMPL := dlmalloc 42 43# Kernel cmdline 44BOARD_KERNEL_CMDLINE := pci=noearly vmalloc=256M ptrace.ptrace_can_access=1 45BOARD_KERNEL_CMDLINE += earlyprintk=nologger loglevel=8 46BOARD_KERNEL_CMDLINE += androidboot.hardware=fugu androidboot.serialno=01234567890123456789 47BOARD_KERNEL_CMDLINE += snd_pcm.maximum_substreams=8 48BOARD_KERNEL_CMDLINE += intel_soc_pmu.enable_s3=0 49 50# Custom dumpstate library to add board specific stuff to bugreport 51BOARD_HAL_STATIC_LIBRARIES := libdumpstate.fugu 52 53# Binder API version 54TARGET_USES_64_BIT_BINDER := true 55 56# Enable dex-preoptimization to speed up first boot sequence 57ifeq ($(HOST_OS),linux) 58 ifeq ($(TARGET_BUILD_VARIANT),user) 59 ifeq ($(WITH_DEXPREOPT),) 60 WITH_DEXPREOPT := true 61 endif 62 endif 63endif 64DONT_DEXPREOPT_PREBUILTS := true 65 66# Security 67BUILD_WITH_SECURITY_FRAMEWORK := chaabi_token 68BUILD_WITH_CHAABI_SUPPORT := true 69 70# Wifi 71BOARD_WLAN_DEVICE := bcmdhd 72BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 73BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 74WPA_SUPPLICANT_VERSION := VER_0_8_X 75BOARD_WPA_SUPPLICANT_DRIVER := NL80211 76WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 77WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 78WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 79 80# Bluetooth 81BOARD_HAVE_BLUETOOTH := true 82BOARD_HAVE_BLUETOOTH_BCM := true 83BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/asus/fugu/bluetooth 84 85# IMG graphics 86BOARD_GFX_REV := RGX6400 87ENABLE_IMG_GRAPHICS := true 88ENABLE_MRFL_GRAPHICS := true 89INTEL_HWC_MOOREFIELD_HDMI := true 90HWUI_IMG_FBO_CACHE_OPTIM := true 91TARGET_SUPPORT_HDMI_PRIMARY := true 92BOARD_USES_LIBDRM := true 93 94# Audio 95BOARD_USES_ALSA_AUDIO := true 96BOARD_USES_TINY_ALSA_AUDIO := true 97 98# System's VSYNC phase offsets in nanoseconds 99VSYNC_EVENT_PHASE_OFFSET_NS := 7500000 100SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000 101 102BOARD_EGL_CFG := device/asus/fugu/egl.cfg 103 104ADDITIONAL_DEFAULT_PROPERTIES += \ 105 ro.opengles.version = 196609 \ 106 ro.hwui.drop_shadow_cache_size = 4.0 \ 107 ro.hwui.gradient_cache_size = 0.8 \ 108 ro.hwui.layer_cache_size = 32.0 \ 109 ro.hwui.path_cache_size = 24.0 \ 110 ro.hwui.text_large_cache_width = 2048 \ 111 ro.hwui.text_large_cache_height = 1024 \ 112 ro.hwui.text_small_cache_width = 1024 \ 113 ro.hwui.text_small_cache_height = 512 \ 114 ro.hwui.texture_cache_flushrate = 0.4 \ 115 ro.hwui.texture_cache_size = 48.0 \ 116 117MAX_EGL_CACHE_ENTRY_SIZE := 65536 118MAX_EGL_CACHE_SIZE := 1048576 119 120INTEL_VA := true 121BUILD_WITH_FULL_STAGEFRIGHT := true 122BOARD_USES_VIDEO := true 123BOARD_USES_WRS_OMXIL_CORE := true 124BOARD_USES_MRST_OMX := true 125USE_HW_VP8 := true 126 127# DRM Protected Video 128BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 129USE_INTEL_SECURE_AVC := true 130 131# Settings for the Media SDK library and plug-ins: 132# - USE_MEDIASDK: use Media SDK support or not 133# - MFX_IPP: sets IPP library optimization to use 134USE_MEDIASDK := true 135MFX_IPP := p8 136 137# Video Post Processing 138TARGET_HAS_ISV := true 139ADDITIONAL_DEFAULT_PROPERTIES += \ 140 persist.intel.isv.vpp = 1 \ 141 persist.intel.isv.frc = 1 142 143COMMON_GLOBAL_CFLAGS += -DGFX_BUF_EXT 144 145OVERRIDE_RS_DRIVER := libPVRRS.so 146 147# enable ARM codegen for x86 with Houdini 148BUILD_ARM_FOR_X86 := true 149 150# enabled to carry out all drawing operations performed on a View's canvas with GPU for 2D rendering pipeline. 151USE_OPENGL_RENDERER := true 152# DPST 153INTEL_DPST := true 154 155# bootstub as 2nd bootloader 156TARGET_BOOTLOADER_IS_2ND := true 157 158BOARD_SEPOLICY_DIRS += device/asus/fugu/sepolicy 159 160# Use the non-open-source parts, if they're present 161-include vendor/asus/fugu/BoardConfigVendor.mk 162 163# Recipes to generate prebuilts 164-include device/intel/common/external/external.mk 165