Home | History | Annotate | Download | only in fugu
      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 
     24 TARGET_RECOVERY_FSTAB := device/asus/fugu/recovery.fstab
     25 TARGET_RELEASETOOLS_EXTENSIONS := device/asus/fugu
     26 TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_fugu
     27 TARGET_RECOVERY_UI_LIB := librecovery_ui_fugu
     28 
     29 TARGET_BOARD_PLATFORM := moorefield
     30 TARGET_BOOTLOADER_BOARD_NAME := fugu
     31 TARGET_USERIMAGES_USE_EXT4 := true
     32 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
     33 BOARD_FLASH_BLOCK_SIZE := 2048
     34 
     35 BOARD_CACHEIMAGE_PARTITION_SIZE := 260014080
     36 
     37 TARGET_DROIDBOOT_LIBS := libintel_droidboot
     38 TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
     39 
     40 # Use dlmalloc
     41 MALLOC_IMPL := dlmalloc
     42 
     43 # Kernel cmdline
     44 BOARD_KERNEL_CMDLINE := pci=noearly vmalloc=256M ptrace.ptrace_can_access=1
     45 BOARD_KERNEL_CMDLINE += earlyprintk=nologger loglevel=8
     46 BOARD_KERNEL_CMDLINE += androidboot.hardware=fugu androidboot.serialno=01234567890123456789
     47 BOARD_KERNEL_CMDLINE += snd_pcm.maximum_substreams=8
     48 BOARD_KERNEL_CMDLINE += intel_soc_pmu.enable_s3=0
     49 
     50 # Custom dumpstate library to add board specific stuff to bugreport
     51 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.fugu
     52 
     53 # Binder API version
     54 TARGET_USES_64_BIT_BINDER := true
     55 
     56 # Enable dex-preoptimization to speed up first boot sequence
     57 ifeq ($(HOST_OS),linux)
     58   ifeq ($(TARGET_BUILD_VARIANT),user)
     59     ifeq ($(WITH_DEXPREOPT),)
     60       WITH_DEXPREOPT := true
     61     endif
     62   endif
     63 endif
     64 DONT_DEXPREOPT_PREBUILTS := true
     65 
     66 # Security
     67 BUILD_WITH_SECURITY_FRAMEWORK := chaabi_token
     68 BUILD_WITH_CHAABI_SUPPORT := true
     69 
     70 # Wifi
     71 BOARD_WLAN_DEVICE := bcmdhd
     72 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
     73 BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
     74 WPA_SUPPLICANT_VERSION := VER_0_8_X
     75 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
     76 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
     77 WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
     78 WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
     79 
     80 # Bluetooth
     81 BOARD_HAVE_BLUETOOTH := true
     82 BOARD_HAVE_BLUETOOTH_BCM := true
     83 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/asus/fugu/bluetooth
     84 
     85 # IMG graphics
     86 BOARD_GFX_REV := RGX6400
     87 ENABLE_IMG_GRAPHICS := true
     88 ENABLE_MRFL_GRAPHICS := true
     89 INTEL_HWC_MOOREFIELD_HDMI := true
     90 HWUI_IMG_FBO_CACHE_OPTIM := true
     91 TARGET_SUPPORT_HDMI_PRIMARY := true
     92 BOARD_USES_LIBDRM := true
     93 
     94 # Audio
     95 BOARD_USES_ALSA_AUDIO := true
     96 BOARD_USES_TINY_ALSA_AUDIO := true
     97 
     98 # System's VSYNC phase offsets in nanoseconds
     99 VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
    100 SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
    101 
    102 BOARD_EGL_CFG := device/asus/fugu/egl.cfg
    103 
    104 ADDITIONAL_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 
    117 MAX_EGL_CACHE_ENTRY_SIZE := 65536
    118 MAX_EGL_CACHE_SIZE := 1048576
    119 
    120 INTEL_VA := true
    121 BUILD_WITH_FULL_STAGEFRIGHT := true
    122 BOARD_USES_VIDEO := true
    123 BOARD_USES_WRS_OMXIL_CORE := true
    124 BOARD_USES_MRST_OMX := true
    125 USE_HW_VP8 := true
    126 
    127 # DRM Protected Video
    128 BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
    129 USE_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
    134 USE_MEDIASDK := true
    135 MFX_IPP := p8
    136 
    137 # Video Post Processing
    138 TARGET_HAS_ISV := true
    139 ADDITIONAL_DEFAULT_PROPERTIES += \
    140     persist.intel.isv.vpp = 1 \
    141     persist.intel.isv.frc = 1
    142 
    143 COMMON_GLOBAL_CFLAGS += -DGFX_BUF_EXT
    144 
    145 OVERRIDE_RS_DRIVER := libPVRRS.so
    146 
    147 # enable ARM codegen for x86 with Houdini
    148 BUILD_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.
    151 USE_OPENGL_RENDERER := true
    152 # DPST
    153 INTEL_DPST := true
    154 
    155 # bootstub as 2nd bootloader
    156 TARGET_BOOTLOADER_IS_2ND := true
    157 
    158 BOARD_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