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