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_CPU_SMP := true
20TARGET_ARCH := arm
21TARGET_ARCH_VARIANT := armv7-a-neon
22TARGET_CPU_VARIANT := krait
23
24TARGET_NO_BOOTLOADER := true
25
26BOARD_KERNEL_BASE := 0x00000000
27BOARD_KERNEL_PAGESIZE :=  2048
28BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
29BOARD_RAMDISK_OFFSET     := 0x02000000
30
31BOARD_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
32
33BOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET
34
35# Shader cache config options
36# Maximum size of the  GLES Shaders that can be cached for reuse.
37# Increase the size if shaders of size greater than 12KB are used.
38MAX_EGL_CACHE_KEY_SIZE := 12*1024
39
40# Maximum GLES shader cache size for each app to store the compiled shader
41# binaries. Decrease the size if RAM or Flash Storage size is a limitation
42# of the device.
43MAX_EGL_CACHE_SIZE := 2048*1024
44
45# Maximum dimension (width or height) of a virtual display that will be
46# handled by the hardware composer
47MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
48
49BOARD_EGL_CFG := device/moto/shamu/egl.cfg
50
51BOARD_USES_ALSA_AUDIO := true
52
53# Wifi related defines
54WPA_SUPPLICANT_VERSION      := VER_0_8_X
55BOARD_WLAN_DEVICE           := bcmdhd
56BOARD_WPA_SUPPLICANT_DRIVER := NL80211
57BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
58BOARD_HOSTAPD_DRIVER        := NL80211
59BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
60WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
61WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
62WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
63WIFI_BUS := PCIE
64#BOARD_USES_SECURE_SERVICES := true
65
66#Bluetooth defines
67BOARD_HAVE_BLUETOOTH_BCM := true
68BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth
69
70TARGET_NO_RADIOIMAGE := true
71TARGET_BOARD_PLATFORM := msm8084
72TARGET_BOOTLOADER_BOARD_NAME := shamu
73TARGET_NO_RPC := true
74
75TARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt
76
77USE_OPENGL_RENDERER := true
78VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
79SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
80TARGET_USES_ION := true
81TARGET_HW_DISK_ENCRYPTION := false
82TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw
83
84# Enable dex-preoptimization to speed up first boot sequence
85ifeq ($(HOST_OS),linux)
86  ifeq ($(TARGET_BUILD_VARIANT),user)
87    ifeq ($(WITH_DEXPREOPT),)
88      WITH_DEXPREOPT := true
89    endif
90  endif
91endif
92
93TARGET_TOUCHBOOST_FREQUENCY := 1500
94TARGET_USERIMAGES_USE_EXT4 := true
95BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
96BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600
97BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
98BOARD_OEMIMAGE_PARTITION_SIZE := 67108864
99BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312
100BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
101BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
102BOARD_FLASH_BLOCK_SIZE := 131072
103
104BOARD_CHARGER_ENABLE_SUSPEND := true
105
106TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
107
108TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu
109
110# Support Native Layer RF cutback
111BOARD_USES_CUTBACK_IN_RILD := true
112
113BOARD_SEPOLICY_DIRS += \
114       device/moto/shamu/sepolicy
115
116BOARD_SEPOLICY_UNION += \
117        adspd.te \
118        atfwd.te \
119        bluetooth.te \
120        bluetooth_loader.te \
121        bootanim.te \
122        bridge.te \
123        camera.te \
124        device.te \
125        domain.te \
126        file.te \
127        gsiffd.te \
128        ims.te \
129        irsc_util.te \
130        mdm_helper.te \
131        mediaserver.te \
132        mpdecision.te \
133        netd.te \
134        netmgrd.te \
135        platform_app.te \
136        property.te \
137        property_contexts \
138        qmux.te \
139        radio.te \
140        rild.te \
141        sensors.te \
142        service.te \
143        ss_ramdump.te \
144        surfaceflinger.te \
145        system_app.te \
146        system_server.te \
147        tcmd.te \
148        tee.te \
149        te_macros \
150        thermald.te \
151        time.te \
152        ueventd.te \
153        untrusted_app.te \
154        zygote.te \
155        file_contexts \
156        genfs_contexts \
157        service_contexts
158
159HAVE_ADRENO_SOURCE:= false
160
161OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
162TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
163
164BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
165
166BOARD_HAS_AUDIO_DSP := true
167
168USE_DEVICE_SPECIFIC_CAMERA:= true
169
170BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu
171
172# Include an expanded selection of fonts
173EXTENDED_FONT_FOOTPRINT := true
174
175-include vendor/moto/shamu/BoardConfigVendor.mk
176