Home | History | Annotate | Download | only in shamu
      1 #
      2 # Copyright (C) 2014 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 TARGET_CPU_ABI := armeabi-v7a
     18 TARGET_CPU_ABI2 := armeabi
     19 TARGET_ARCH := arm
     20 TARGET_ARCH_VARIANT := armv7-a-neon
     21 TARGET_CPU_VARIANT := krait
     22 
     23 ENABLE_CPUSETS := true
     24 
     25 TARGET_NO_BOOTLOADER := true
     26 
     27 BOARD_KERNEL_BASE := 0x00000000
     28 BOARD_KERNEL_PAGESIZE :=  2048
     29 BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
     30 BOARD_RAMDISK_OFFSET     := 0x02000000
     31 
     32 BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=shamu msm_rtb.filter=0x37 ehci-hcd.park=3 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags utags.backup=/dev/block/platform/msm_sdcc.1/by-name/utagsBackup coherent_pool=8M vmalloc=300M
     33 
     34 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
     35 
     36 # Shader cache config options
     37 # Maximum size of the  GLES Shaders that can be cached for reuse.
     38 # Increase the size if shaders of size greater than 12KB are used.
     39 MAX_EGL_CACHE_KEY_SIZE := 12*1024
     40 
     41 # Maximum GLES shader cache size for each app to store the compiled shader
     42 # binaries. Decrease the size if RAM or Flash Storage size is a limitation
     43 # of the device.
     44 MAX_EGL_CACHE_SIZE := 2048*1024
     45 
     46 # Maximum dimension (width or height) of a virtual display that will be
     47 # handled by the hardware composer
     48 MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
     49 
     50 BOARD_EGL_CFG := device/moto/shamu/egl.cfg
     51 
     52 BOARD_USES_ALSA_AUDIO := true
     53 
     54 # Wifi related defines
     55 WPA_SUPPLICANT_VERSION      := VER_0_8_X
     56 BOARD_WLAN_DEVICE           := bcmdhd
     57 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
     58 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     59 BOARD_HOSTAPD_DRIVER        := NL80211
     60 BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     61 WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
     62 WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
     63 WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
     64 WIFI_BUS := PCIE
     65 #BOARD_USES_SECURE_SERVICES := true
     66 
     67 #Bluetooth defines
     68 BOARD_HAVE_BLUETOOTH_BCM := true
     69 ifeq ($(TARGET_PRODUCT),bt_shamu)
     70 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth_extra
     71 else
     72 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth
     73 endif
     74 
     75 TARGET_NO_RADIOIMAGE := true
     76 TARGET_BOARD_PLATFORM := msm8084
     77 TARGET_BOOTLOADER_BOARD_NAME := shamu
     78 TARGET_NO_RPC := true
     79 
     80 TARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt
     81 
     82 USE_OPENGL_RENDERER := true
     83 TARGET_USES_ION := true
     84 TARGET_HW_DISK_ENCRYPTION := false
     85 TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw
     86 
     87 TARGET_TOUCHBOOST_FREQUENCY := 1500
     88 TARGET_USERIMAGES_USE_EXT4 := true
     89 BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
     90 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600
     91 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
     92 BOARD_OEMIMAGE_PARTITION_SIZE := 67108864
     93 BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312
     94 BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
     95 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
     96 BOARD_FLASH_BLOCK_SIZE := 131072
     97 
     98 BOARD_CHARGER_ENABLE_SUSPEND := true
     99 
    100 TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
    101 
    102 TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu
    103 
    104 # Support Native Layer RF cutback
    105 BOARD_USES_CUTBACK_IN_RILD := true
    106 
    107 BOARD_SEPOLICY_DIRS += device/moto/shamu/sepolicy
    108 
    109 HAVE_ADRENO_SOURCE:= false
    110 
    111 OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
    112 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
    113 
    114 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
    115 BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
    116 
    117 BOARD_HAS_AUDIO_DSP := true
    118 
    119 USE_DEVICE_SPECIFIC_CAMERA:= true
    120 
    121 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu
    122 
    123 USE_CLANG_PLATFORM_BUILD := true
    124 
    125 # Disable dex-preopt of prebuilts to save space.
    126 DONT_DEXPREOPT_PREBUILTS := true
    127 
    128 -include vendor/moto/shamu/BoardConfigVendor.mk
    129