BoardConfig.mk revision d8a5cab454b6f6cbd474320bcf55eb721856345b
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
313647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_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
323647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
333647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_MKBOOTIMG_ARGS := --ramdisk_offset BOARD_RAMDISK_OFFSET --tags_offset BOARD_KERNEL_TAGS_OFFSET
343647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
353647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
364248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Shader cache config options
374248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Maximum size of the  GLES Shaders that can be cached for reuse.
384248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Increase the size if shaders of size greater than 12KB are used.
394248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaMAX_EGL_CACHE_KEY_SIZE := 12*1024
404248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
414248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Maximum GLES shader cache size for each app to store the compiled shader
424248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# binaries. Decrease the size if RAM or Flash Storage size is a limitation
434248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# of the device.
444248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaMAX_EGL_CACHE_SIZE := 2048*1024
454248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
464248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaBOARD_EGL_CFG := device/moto/shamu/egl.cfg
474248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
48d8a5cab454b6f6cbd474320bcf55eb721856345bVineeta SrivastavaBOARD_USES_ALSA_AUDIO := true
494248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
504248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava# Wifi related defines
514248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#WPA_SUPPLICANT_VERSION      := VER_0_8_X
524248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_WLAN_DEVICE           := bcmdhd
534248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_WPA_SUPPLICANT_DRIVER := NL80211
544248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
554248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_HOSTAPD_DRIVER        := NL80211
564248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
574248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
584248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
594248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
604248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
614248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava#BOARD_USES_SECURE_SERVICES := true
624248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
634248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
643647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_NO_RADIOIMAGE := true
653647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_BOARD_PLATFORM := msm8084
663647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_BOOTLOADER_BOARD_NAME := shamu
673647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_NO_RPC := true
683647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
694248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaUSE_OPENGL_RENDERER := true
704248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaVSYNC_EVENT_PHASE_OFFSET_NS := 7500000
714248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaSF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
724248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaTARGET_USES_ION := true
734248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta Srivastava
743647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_USERIMAGES_USE_EXT4 := true
753647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_BOOTIMAGE_PARTITION_SIZE := 23068672
763647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672
773647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
783647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312
793647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_CACHEIMAGE_PARTITION_SIZE := 734003200
803647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
813647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_FLASH_BLOCK_SIZE := 131072
823647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
833647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaBOARD_CHARGER_ENABLE_SUSPEND := true
843647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
853647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaTARGET_RECOVERY_FSTAB = device/moto/shamu/fstab.shamu
863647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
873647fdffd1a7f17c728024249bf73d584c681de2Vineeta SrivastavaHAVE_ADRENO_SOURCE:= false
883647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
894248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaOVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
904248fd4ba8203fa254bbc1ce7bfa6ed36936b555Vineeta SrivastavaTARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
913647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
923647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
933647fdffd1a7f17c728024249bf73d584c681de2Vineeta Srivastava
94