BoardConfig.mk revision b1439ac379bf4f5fdcd3d1a7f7fef6f6460e31a7
13647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#
23647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# Copyright (C) 2014 The Android Open-Source Project
33647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#
43647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# Licensed under the Apache License, Version 2.0 (the "License");
53647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# you may not use this file except in compliance with the License.
63647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# You may obtain a copy of the License at
73647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#
83647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#      http://www.apache.org/licenses/LICENSE-2.0
93647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#
103647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# Unless required by applicable law or agreed to in writing, software
113647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# distributed under the License is distributed on an "AS IS" BASIS,
123647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# See the License for the specific language governing permissions and
143647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava# limitations under the License.
153647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava#
163647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
173647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_CPU_ABI := armeabi-v7a
183647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_CPU_ABI2 := armeabi
193647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_CPU_SMP := true
203647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_ARCH := arm
213647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_ARCH_VARIANT := armv7-a-neon
223647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_CPU_VARIANT := krait
233647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
243647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_NO_BOOTLOADER := true
253647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
263647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_KERNEL_BASE := 0x00000000
273647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_KERNEL_PAGESIZE :=  2048
283647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_KERNEL_TAGS_OFFSET := 0x01E00000
293647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_RAMDISK_OFFSET     := 0x02000000
303647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
310dbe29e13084abc991740c415ea996f88dab7044dcashmanBOARD_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
323647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
333647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET
343647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
354248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Shader cache config options
364248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Maximum size of the  GLES Shaders that can be cached for reuse.
374248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Increase the size if shaders of size greater than 12KB are used.
384248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaMAX_EGL_CACHE_KEY_SIZE := 12*1024
394248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
404248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Maximum GLES shader cache size for each app to store the compiled shader
414248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# binaries. Decrease the size if RAM or Flash Storage size is a limitation
424248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# of the device.
434248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaMAX_EGL_CACHE_SIZE := 2048*1024
444248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
454248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaBOARD_EGL_CFG := device/moto/shamu/egl.cfg
464248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
47d8a5cab454b6f6cbd474320bcf55eb721856345bVineeta SrivastavaBOARD_USES_ALSA_AUDIO := true
484248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
494248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Wifi related defines
509d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaWPA_SUPPLICANT_VERSION      := VER_0_8_X
519d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaBOARD_WLAN_DEVICE           := bcmdhd
529d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaBOARD_WPA_SUPPLICANT_DRIVER := NL80211
539d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaBOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
549d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaBOARD_HOSTAPD_DRIVER        := NL80211
559d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaBOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
569d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaWIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
579d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaWIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
589d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaWIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
599d6dc7aaf6c1601e9ace3bbef5fe3ffd85d5c4f1Santhosh GillellaWIFI_BUS := PCIE
604248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_USES_SECURE_SERVICES := true
614248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
6202aa4e537e654f91a86a7ff6cabc83f733f9ff8aRick Zhang#Bluetooth defines
6302aa4e537e654f91a86a7ff6cabc83f733f9ff8aRick ZhangBOARD_HAVE_BLUETOOTH_BCM := true
644de72f560de69d6c459391abf3008b0be2c89a5eLiejun TaoBOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/moto/shamu/bluetooth
654248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
663647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_NO_RADIOIMAGE := true
673647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_BOARD_PLATFORM := msm8084
683647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_BOOTLOADER_BOARD_NAME := shamu
693647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_NO_RPC := true
703647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
7140616bbe33d2ca8c0745a9e6450d8e889261c8daBill YiTARGET_BOARD_INFO_FILE := device/moto/shamu/board-info.txt
721a45702e006d77fb3c973bac484df0b62975de10Iliyan Malchev
734248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaUSE_OPENGL_RENDERER := true
744248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaVSYNC_EVENT_PHASE_OFFSET_NS := 7500000
754248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaSF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
764248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaTARGET_USES_ION := true
774248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
783647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_USERIMAGES_USE_EXT4 := true
79f67a857b209bce2f966e4ca3d21d2802d7715407Chris FriesBOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
80f67a857b209bce2f966e4ca3d21d2802d7715407Chris FriesBOARD_RECOVERYIMAGE_PARTITION_SIZE := 16793600
81f67a857b209bce2f966e4ca3d21d2802d7715407Chris FriesBOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736
82620684f8bafd27b05a58af86e3a0ae318f06e611JP AbgrallBOARD_USERDATAIMAGE_PARTITION_SIZE := 25891291136
83f67a857b209bce2f966e4ca3d21d2802d7715407Chris FriesBOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
843647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
853647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_FLASH_BLOCK_SIZE := 131072
863647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
873647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_CHARGER_ENABLE_SUSPEND := true
883647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
893647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
903647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
91abb4375af1fd11b768968816128772f66dd6cd64Ed TamTARGET_RELEASETOOLS_EXTENSIONS := device/moto/shamu
92abb4375af1fd11b768968816128772f66dd6cd64Ed Tam
9309b614e3232236ae9e3d9b2e15261494b162e67adcashmanBOARD_SEPOLICY_DIRS += \
9409b614e3232236ae9e3d9b2e15261494b162e67adcashman       device/moto/shamu/sepolicy
9509b614e3232236ae9e3d9b2e15261494b162e67adcashman
9609b614e3232236ae9e3d9b2e15261494b162e67adcashmanBOARD_SEPOLICY_UNION += \
9709b614e3232236ae9e3d9b2e15261494b162e67adcashman        adspd.te \
980ac59d1bd0258ced16800b38684e15cf0448ac6bdcashman        bluetooth.te \
990dbe29e13084abc991740c415ea996f88dab7044dcashman        bootanim.te \
10009b614e3232236ae9e3d9b2e15261494b162e67adcashman        bridge.te \
10109b614e3232236ae9e3d9b2e15261494b162e67adcashman        camera.te \
10209b614e3232236ae9e3d9b2e15261494b162e67adcashman        device.te \
10309b614e3232236ae9e3d9b2e15261494b162e67adcashman        domain.te \
10409b614e3232236ae9e3d9b2e15261494b162e67adcashman        file.te \
10509b614e3232236ae9e3d9b2e15261494b162e67adcashman        mdm_helper.te \
1066ec967adf61f1c00c6138a977ae3f70c95705ce0dcashman        mediaserver.te \
10709b614e3232236ae9e3d9b2e15261494b162e67adcashman        netmgrd.te \
10809b614e3232236ae9e3d9b2e15261494b162e67adcashman        qmux.te \
10913a07fe564a1bffcc71ca42520d1096757b22eb4dcashman        rild.te \
11009b614e3232236ae9e3d9b2e15261494b162e67adcashman        sensors.te \
1110dbe29e13084abc991740c415ea996f88dab7044dcashman        surfaceflinger.te \
1126ec967adf61f1c00c6138a977ae3f70c95705ce0dcashman        system_server.te \
1136ec967adf61f1c00c6138a977ae3f70c95705ce0dcashman        tee.te \
1146ec967adf61f1c00c6138a977ae3f70c95705ce0dcashman        te_macros \
11509b614e3232236ae9e3d9b2e15261494b162e67adcashman        thermald.te \
11609b614e3232236ae9e3d9b2e15261494b162e67adcashman        time.te \
11785a3749faff7745d36312adf80eeab04391444acEtan Cohen        ueventd.te \
1180dbe29e13084abc991740c415ea996f88dab7044dcashman        zygote.te \
11985a3749faff7745d36312adf80eeab04391444acEtan Cohen        file_contexts \
120b1439ac379bf4f5fdcd3d1a7f7fef6f6460e31a7dcashman        genfs_contexts \
12185a3749faff7745d36312adf80eeab04391444acEtan Cohen        service_contexts
12209b614e3232236ae9e3d9b2e15261494b162e67adcashman
1233647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaHAVE_ADRENO_SOURCE:= false
1243647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
1254248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaOVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
1264248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaTARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
1273647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
12851f71261c7b9bab918c9bf63d783f030d5025e9dMekala NatarajanBOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
1293647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
130cce797716130cc65223e9747b845acda503392eaChris FriesBOARD_HAS_AUDIO_DSP := true
131cce797716130cc65223e9747b845acda503392eaChris Fries
132b1dba14ca58fd90c52a57251f2e4c3366f545892Shuzhen WangUSE_DEVICE_SPECIFIC_CAMERA:= true
133b1dba14ca58fd90c52a57251f2e4c3366f545892Shuzhen Wang
1346f5b6f9acaa2f03cc6ef346aa93f5de57a9d7aebChris FriesBOARD_HAL_STATIC_LIBRARIES := libdumpstate.shamu
1356f5b6f9acaa2f03cc6ef346aa93f5de57a9d7aebChris Fries
136446d80e92cd2dcfb09cd40ea5fc38843b594ac9cVineeta Srivastava-include vendor/moto/shamu/BoardConfigVendor.mk
137