• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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
83VSYNC_EVENT_PHASE_OFFSET_NS := 2500000
84SF_VSYNC_EVENT_PHASE_OFFSET_NS := 0000000
85TARGET_USES_ION := true
86TARGET_HW_DISK_ENCRYPTION := false
87TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw
88
89# Enable dex-preoptimization to speed up first boot sequence
90ifeq ($(HOST_OS),linux)
91  ifeq ($(TARGET_BUILD_VARIANT),user)
92    ifeq ($(WITH_DEXPREOPT),)
93      WITH_DEXPREOPT := true
94    endif
95  endif
96endif
97
98TARGET_TOUCHBOOST_FREQUENCY := 1500
99TARGET_USERIMAGES_USE_EXT4 := true
100BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
101BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600
102BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
103BOARD_OEMIMAGE_PARTITION_SIZE := 67108864
104BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312
105BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
106BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
107BOARD_FLASH_BLOCK_SIZE := 131072
108
109BOARD_CHARGER_ENABLE_SUSPEND := true
110
111TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
112
113TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu
114
115# Support Native Layer RF cutback
116BOARD_USES_CUTBACK_IN_RILD := true
117
118BOARD_SEPOLICY_DIRS += device/moto/shamu/sepolicy
119
120HAVE_ADRENO_SOURCE:= false
121
122OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
123TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
124
125BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
126BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
127
128BOARD_HAS_AUDIO_DSP := true
129
130USE_DEVICE_SPECIFIC_CAMERA:= true
131
132BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu
133
134# Include an expanded selection of fonts
135EXTENDED_FONT_FOOTPRINT := true
136
137-include vendor/moto/shamu/BoardConfigVendor.mk
138