blob: a48702deecbb47b04e79ad0f59c883019a5c317c [file] [log] [blame]
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -07001#
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
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -070019TARGET_ARCH := arm
20TARGET_ARCH_VARIANT := armv7-a-neon
21TARGET_CPU_VARIANT := krait
22
23TARGET_NO_BOOTLOADER := true
24
25BOARD_KERNEL_BASE := 0x00000000
26BOARD_KERNEL_PAGESIZE := 2048
27BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
28BOARD_RAMDISK_OFFSET := 0x02000000
29
dcashman0dbe29e2014-07-31 09:36:52 -070030BOARD_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
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -070031
32BOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET
33
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070034# Shader cache config options
35# Maximum size of the GLES Shaders that can be cached for reuse.
36# Increase the size if shaders of size greater than 12KB are used.
37MAX_EGL_CACHE_KEY_SIZE := 12*1024
38
39# Maximum GLES shader cache size for each app to store the compiled shader
40# binaries. Decrease the size if RAM or Flash Storage size is a limitation
41# of the device.
42MAX_EGL_CACHE_SIZE := 2048*1024
43
Dan Stoza9a221ac2014-10-15 16:38:46 -070044# Maximum dimension (width or height) of a virtual display that will be
45# handled by the hardware composer
46MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
47
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070048BOARD_EGL_CFG := device/moto/shamu/egl.cfg
49
Vineeta Srivastavad8a5cab2014-05-12 09:49:24 -070050BOARD_USES_ALSA_AUDIO := true
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070051
52# Wifi related defines
Santhosh Gillella9d6dc7a2014-06-09 11:10:46 -050053WPA_SUPPLICANT_VERSION := VER_0_8_X
54BOARD_WLAN_DEVICE := bcmdhd
55BOARD_WPA_SUPPLICANT_DRIVER := NL80211
56BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
57BOARD_HOSTAPD_DRIVER := NL80211
58BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
59WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
60WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
61WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
62WIFI_BUS := PCIE
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070063#BOARD_USES_SECURE_SERVICES := true
64
Rick Zhang02aa4e52014-06-06 08:55:30 -070065#Bluetooth defines
66BOARD_HAVE_BLUETOOTH_BCM := true
Liejun Tao4de72f52014-08-06 16:18:10 -050067BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070068
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -070069TARGET_NO_RADIOIMAGE := true
70TARGET_BOARD_PLATFORM := msm8084
71TARGET_BOOTLOADER_BOARD_NAME := shamu
72TARGET_NO_RPC := true
73
Bill Yi40616bb2014-07-31 10:09:12 -070074TARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt
Iliyan Malchev1a457022014-05-12 13:16:33 -070075
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070076USE_OPENGL_RENDERER := true
77VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
78SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
79TARGET_USES_ION := true
Iliyan Malchev56b02c32014-12-04 18:12:36 +000080TARGET_HW_DISK_ENCRYPTION := false
Ajay Dudanibf4d3412014-09-17 21:19:25 -070081TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070082
Alex Lightd853d5a2014-08-11 10:46:12 -070083# Enable dex-preoptimization to speed up first boot sequence
84ifeq ($(HOST_OS),linux)
85 ifeq ($(TARGET_BUILD_VARIANT),user)
86 ifeq ($(WITH_DEXPREOPT),)
87 WITH_DEXPREOPT := true
88 endif
89 endif
90endif
91
Omprakash Dhyade7f6348d2014-08-20 10:19:18 -070092TARGET_TOUCHBOOST_FREQUENCY := 1500
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -070093TARGET_USERIMAGES_USE_EXT4 := true
Chris Friesf67a8572014-05-21 23:43:07 -050094BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
95BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600
Chris Fries341b03b2014-08-19 17:59:23 -050096BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
Vineeta Srivastava393ee022014-09-16 08:45:24 -070097BOARD_OEMIMAGE_PARTITION_SIZE := 67108864
Chris Fries341b03b2014-08-19 17:59:23 -050098BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312
Chris Friesf67a8572014-05-21 23:43:07 -050099BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -0700100BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
101BOARD_FLASH_BLOCK_SIZE := 131072
102
103BOARD_CHARGER_ENABLE_SUSPEND := true
104
105TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
106
Ed Tamabb43752014-06-10 15:09:35 -0700107TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu
108
Mayank Agarwalb81df3f2014-08-06 19:54:46 -0700109# Support Native Layer RF cutback
110BOARD_USES_CUTBACK_IN_RILD := true
111
Stephen Smalley3b581382015-04-01 10:30:09 -0400112BOARD_SEPOLICY_DIRS += device/moto/shamu/sepolicy
dcashman09b614e2014-07-16 16:19:43 -0700113
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -0700114HAVE_ADRENO_SOURCE:= false
115
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700116OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
117TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -0700118
Mekala Natarajan51f71262014-05-29 14:30:47 -0700119BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -0700120
Chris Friescce79772014-06-17 12:19:52 -0500121BOARD_HAS_AUDIO_DSP := true
122
Shuzhen Wangb1dba142014-06-26 13:51:43 -0700123USE_DEVICE_SPECIFIC_CAMERA:= true
124
Chris Fries6f5b6f92014-07-18 09:57:45 -0500125BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu
126
Raph Levien1b6ef562014-08-07 14:26:40 -0700127# Include an expanded selection of fonts
128EXTENDED_FONT_FOOTPRINT := true
129
Vineeta Srivastava446d80e2014-06-03 15:11:21 -0700130-include vendor/moto/shamu/BoardConfigVendor.mk