Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 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 |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 19 | TARGET_ARCH := arm |
| 20 | TARGET_ARCH_VARIANT := armv7-a-neon |
| 21 | TARGET_CPU_VARIANT := krait |
| 22 | |
| 23 | TARGET_NO_BOOTLOADER := true |
| 24 | |
| 25 | BOARD_KERNEL_BASE := 0x00000000 |
| 26 | BOARD_KERNEL_PAGESIZE := 2048 |
| 27 | BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 |
| 28 | BOARD_RAMDISK_OFFSET := 0x02000000 |
| 29 | |
dcashman | 0dbe29e | 2014-07-31 09:36:52 -0700 | [diff] [blame] | 30 | 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 |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 31 | |
| 32 | BOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET |
| 33 | |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 34 | # 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. |
| 37 | MAX_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. |
| 42 | MAX_EGL_CACHE_SIZE := 2048*1024 |
| 43 | |
Dan Stoza | 9a221ac | 2014-10-15 16:38:46 -0700 | [diff] [blame] | 44 | # Maximum dimension (width or height) of a virtual display that will be |
| 45 | # handled by the hardware composer |
| 46 | MAX_VIRTUAL_DISPLAY_DIMENSION := 2048 |
| 47 | |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 48 | BOARD_EGL_CFG := device/moto/shamu/egl.cfg |
| 49 | |
Vineeta Srivastava | d8a5cab | 2014-05-12 09:49:24 -0700 | [diff] [blame] | 50 | BOARD_USES_ALSA_AUDIO := true |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 51 | |
| 52 | # Wifi related defines |
Santhosh Gillella | 9d6dc7a | 2014-06-09 11:10:46 -0500 | [diff] [blame] | 53 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 54 | BOARD_WLAN_DEVICE := bcmdhd |
| 55 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 56 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 57 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 58 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 59 | WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" |
| 60 | WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" |
| 61 | WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" |
| 62 | WIFI_BUS := PCIE |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 63 | #BOARD_USES_SECURE_SERVICES := true |
| 64 | |
Rick Zhang | 02aa4e5 | 2014-06-06 08:55:30 -0700 | [diff] [blame] | 65 | #Bluetooth defines |
| 66 | BOARD_HAVE_BLUETOOTH_BCM := true |
Liejun Tao | 4de72f5 | 2014-08-06 16:18:10 -0500 | [diff] [blame] | 67 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 68 | |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 69 | TARGET_NO_RADIOIMAGE := true |
| 70 | TARGET_BOARD_PLATFORM := msm8084 |
| 71 | TARGET_BOOTLOADER_BOARD_NAME := shamu |
| 72 | TARGET_NO_RPC := true |
| 73 | |
Bill Yi | 40616bb | 2014-07-31 10:09:12 -0700 | [diff] [blame] | 74 | TARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt |
Iliyan Malchev | 1a45702 | 2014-05-12 13:16:33 -0700 | [diff] [blame] | 75 | |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 76 | USE_OPENGL_RENDERER := true |
| 77 | VSYNC_EVENT_PHASE_OFFSET_NS := 7500000 |
| 78 | SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000 |
| 79 | TARGET_USES_ION := true |
Iliyan Malchev | 56b02c3 | 2014-12-04 18:12:36 +0000 | [diff] [blame] | 80 | TARGET_HW_DISK_ENCRYPTION := false |
Ajay Dudani | bf4d341 | 2014-09-17 21:19:25 -0700 | [diff] [blame] | 81 | TARGET_CRYPTFS_HW_PATH := device/moto/shamu/cryptfs_hw |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 82 | |
Alex Light | d853d5a | 2014-08-11 10:46:12 -0700 | [diff] [blame] | 83 | # Enable dex-preoptimization to speed up first boot sequence |
| 84 | ifeq ($(HOST_OS),linux) |
| 85 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 86 | ifeq ($(WITH_DEXPREOPT),) |
| 87 | WITH_DEXPREOPT := true |
| 88 | endif |
| 89 | endif |
| 90 | endif |
| 91 | |
Omprakash Dhyade | 7f6348d | 2014-08-20 10:19:18 -0700 | [diff] [blame] | 92 | TARGET_TOUCHBOOST_FREQUENCY := 1500 |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 93 | TARGET_USERIMAGES_USE_EXT4 := true |
Chris Fries | f67a857 | 2014-05-21 23:43:07 -0500 | [diff] [blame] | 94 | BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 |
| 95 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600 |
Chris Fries | 341b03b | 2014-08-19 17:59:23 -0500 | [diff] [blame] | 96 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 |
Vineeta Srivastava | 393ee02 | 2014-09-16 08:45:24 -0700 | [diff] [blame] | 97 | BOARD_OEMIMAGE_PARTITION_SIZE := 67108864 |
Chris Fries | 341b03b | 2014-08-19 17:59:23 -0500 | [diff] [blame] | 98 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 25253773312 |
Chris Fries | f67a857 | 2014-05-21 23:43:07 -0500 | [diff] [blame] | 99 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 100 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 101 | BOARD_FLASH_BLOCK_SIZE := 131072 |
| 102 | |
| 103 | BOARD_CHARGER_ENABLE_SUSPEND := true |
| 104 | |
| 105 | TARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu |
| 106 | |
Ed Tam | abb4375 | 2014-06-10 15:09:35 -0700 | [diff] [blame] | 107 | TARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu |
| 108 | |
Mayank Agarwal | b81df3f | 2014-08-06 19:54:46 -0700 | [diff] [blame] | 109 | # Support Native Layer RF cutback |
| 110 | BOARD_USES_CUTBACK_IN_RILD := true |
| 111 | |
Stephen Smalley | 3b58138 | 2015-04-01 10:30:09 -0400 | [diff] [blame] | 112 | BOARD_SEPOLICY_DIRS += device/moto/shamu/sepolicy |
dcashman | 09b614e | 2014-07-16 16:19:43 -0700 | [diff] [blame] | 113 | |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 114 | HAVE_ADRENO_SOURCE:= false |
| 115 | |
Vineeta Srivastava | 4248fd4 | 2014-05-02 16:20:41 -0700 | [diff] [blame] | 116 | OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so |
| 117 | TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 118 | |
Mekala Natarajan | 51f7126 | 2014-05-29 14:30:47 -0700 | [diff] [blame] | 119 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) |
Vineeta Srivastava | 3647fdf | 2014-04-30 10:40:02 -0700 | [diff] [blame] | 120 | |
Chris Fries | cce7977 | 2014-06-17 12:19:52 -0500 | [diff] [blame] | 121 | BOARD_HAS_AUDIO_DSP := true |
| 122 | |
Shuzhen Wang | b1dba14 | 2014-06-26 13:51:43 -0700 | [diff] [blame] | 123 | USE_DEVICE_SPECIFIC_CAMERA:= true |
| 124 | |
Chris Fries | 6f5b6f9 | 2014-07-18 09:57:45 -0500 | [diff] [blame] | 125 | BOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu |
| 126 | |
Raph Levien | 1b6ef56 | 2014-08-07 14:26:40 -0700 | [diff] [blame] | 127 | # Include an expanded selection of fonts |
| 128 | EXTENDED_FONT_FOOTPRINT := true |
| 129 | |
Vineeta Srivastava | 446d80e | 2014-06-03 15:11:21 -0700 | [diff] [blame] | 130 | -include vendor/moto/shamu/BoardConfigVendor.mk |