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 17TARGET_CPU_ABI := armeabi-v7a 18TARGET_CPU_ABI2 := armeabi 19TARGET_ARCH := arm 20TARGET_ARCH_VARIANT := armv7-a-neon 21TARGET_CPU_VARIANT := krait 22 23ENABLE_CPUSETS := true 24 25TARGET_NO_BOOTLOADER := true 26 27BOARD_KERNEL_BASE := 0x00000000 28BOARD_KERNEL_PAGESIZE := 2048 29BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 30BOARD_RAMDISK_OFFSET := 0x02000000 31 32BOARD_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 34BOARD_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. 39MAX_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. 44MAX_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 48MAX_VIRTUAL_DISPLAY_DIMENSION := 2048 49 50BOARD_EGL_CFG := device/moto/shamu/egl.cfg 51 52BOARD_USES_ALSA_AUDIO := true 53 54# Wifi related defines 55WPA_SUPPLICANT_VERSION := VER_0_8_X 56BOARD_WLAN_DEVICE := bcmdhd 57BOARD_WPA_SUPPLICANT_DRIVER := NL80211 58BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 59BOARD_HOSTAPD_DRIVER := NL80211 60BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 61WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 62WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 63WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 64WIFI_BUS := PCIE 65#BOARD_USES_SECURE_SERVICES := true 66 67#Bluetooth defines 68BOARD_HAVE_BLUETOOTH_BCM := true 69ifeq ($(TARGET_PRODUCT),bt_shamu) 70BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth_extra 71else 72BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth 73endif 74 75TARGET_NO_RADIOIMAGE := true 76TARGET_BOARD_PLATFORM := msm8084 77TARGET_BOOTLOADER_BOARD_NAME := shamu 78TARGET_NO_RPC := true 79 80TARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt 81 82USE_OPENGL_RENDERER := true 83TARGET_USES_ION := true 84TARGET_HW_DISK_ENCRYPTION := false 85TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw 86 87TARGET_TOUCHBOOST_FREQUENCY := 1500 88TARGET_USERIMAGES_USE_EXT4 := true 89BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 90BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600 91BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 92BOARD_OEMIMAGE_PARTITION_SIZE := 67108864 93BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312 94BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 95BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 96BOARD_FLASH_BLOCK_SIZE := 131072 97 98BOARD_CHARGER_ENABLE_SUSPEND := true 99 100TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu 101 102TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu 103 104# Support Native Layer RF cutback 105BOARD_USES_CUTBACK_IN_RILD := true 106 107BOARD_SEPOLICY_DIRS += device/moto/shamu/sepolicy 108 109HAVE_ADRENO_SOURCE:= false 110 111OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so 112TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true 113 114BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) 115BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true 116 117BOARD_HAS_AUDIO_DSP := true 118 119USE_DEVICE_SPECIFIC_CAMERA:= true 120 121BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu 122 123USE_CLANG_PLATFORM_BUILD := true 124 125# Disable dex-preopt of prebuilts to save space. 126DONT_DEXPREOPT_PREBUILTS := true 127 128-include vendor/moto/shamu/BoardConfigVendor.mk 129