1 # 2 # Copyright (C) 2013 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 19 TARGET_CPU_SMP := true 20 TARGET_ARCH := arm 21 TARGET_ARCH_VARIANT := armv7-a-neon 22 TARGET_CPU_VARIANT := krait 23 24 TARGET_NO_BOOTLOADER := true 25 26 BOARD_KERNEL_BASE := 0x00000000 27 BOARD_KERNEL_PAGESIZE := 2048 28 29 BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1 30 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02900000 --tags_offset 0x02700000 31 32 # Shader cache config options 33 # Maximum size of the GLES Shaders that can be cached for reuse. 34 # Increase the size if shaders of size greater than 12KB are used. 35 MAX_EGL_CACHE_KEY_SIZE := 12*1024 36 37 # Maximum GLES shader cache size for each app to store the compiled shader 38 # binaries. Decrease the size if RAM or Flash Storage size is a limitation 39 # of the device. 40 MAX_EGL_CACHE_SIZE := 2048*1024 41 42 BOARD_USES_ALSA_AUDIO := true 43 44 BOARD_HAVE_BLUETOOTH := true 45 BOARD_HAVE_BLUETOOTH_BCM := true 46 47 ifeq ($(TARGET_PRODUCT),car_hammerhead) 48 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth_car 49 else 50 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth 51 endif 52 53 # Wifi related defines 54 WPA_SUPPLICANT_VERSION := VER_0_8_X 55 BOARD_WLAN_DEVICE := bcmdhd 56 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 57 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 58 BOARD_HOSTAPD_DRIVER := NL80211 59 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 60 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 61 WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 62 WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 63 64 BOARD_USES_SECURE_SERVICES := true 65 66 TARGET_NO_RADIOIMAGE := true 67 TARGET_BOARD_PLATFORM := msm8974 68 TARGET_BOOTLOADER_BOARD_NAME := hammerhead 69 TARGET_BOARD_INFO_FILE := device/lge/hammerhead/board-info.txt 70 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) 71 TARGET_NO_RPC := true 72 73 BOARD_EGL_CFG := device/lge/hammerhead/egl.cfg 74 75 USE_OPENGL_RENDERER := true 76 VSYNC_EVENT_PHASE_OFFSET_NS := 7500000 77 SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000 78 TARGET_USES_ION := true 79 80 # Enable dex-preoptimization to speed up first boot sequence 81 ifeq ($(HOST_OS),linux) 82 ifeq ($(TARGET_BUILD_VARIANT),user) 83 ifeq ($(WITH_DEXPREOPT),) 84 WITH_DEXPREOPT := true 85 endif 86 endif 87 endif 88 DONT_DEXPREOPT_PREBUILTS := true 89 90 TARGET_USERIMAGES_USE_EXT4 := true 91 BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 92 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 93 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 94 BOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312 95 BOARD_CACHEIMAGE_PARTITION_SIZE := 734003200 96 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 97 BOARD_FLASH_BLOCK_SIZE := 131072 98 99 BOARD_CHARGER_ENABLE_SUSPEND := true 100 101 TARGET_RECOVERY_FSTAB = device/lge/hammerhead/fstab.hammerhead 102 103 TARGET_RELEASETOOLS_EXTENSIONS := device/lge/hammerhead 104 105 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.hammerhead 106 107 BOARD_SEPOLICY_DIRS += \ 108 device/lge/hammerhead/sepolicy 109 110 # The list below is order dependent 111 BOARD_SEPOLICY_UNION += \ 112 app.te \ 113 bluetooth_loader.te \ 114 bridge.te \ 115 camera.te \ 116 device.te \ 117 domain.te \ 118 file.te \ 119 hostapd.te \ 120 irsc_util.te \ 121 mediaserver.te \ 122 mpdecision.te \ 123 netmgrd.te \ 124 platform_app.te \ 125 qmux.te \ 126 radio.te \ 127 rild.te \ 128 rmt.te \ 129 sensors.te \ 130 ssr.te \ 131 surfaceflinger.te \ 132 system_server.te \ 133 tee.te \ 134 thermald.te \ 135 time.te \ 136 ueventd.te \ 137 vss.te \ 138 wpa.te \ 139 file_contexts \ 140 genfs_contexts \ 141 te_macros 142 143 HAVE_ADRENO_SOURCE:= false 144 145 OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so 146 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true 147 148 TARGET_TOUCHBOOST_FREQUENCY:= 1200 149 150 USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true 151 USE_DEVICE_SPECIFIC_CAMERA:= true 152 153 -include vendor/lge/hammerhead/BoardConfigVendor.mk 154 155 # Enable Minikin text layout engine (will be the default soon) 156 USE_MINIKIN := true 157 158 # Include an expanded selection of fonts 159 EXTENDED_FONT_FOOTPRINT := true 160