Home | History | Annotate | Download | only in hammerhead
      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 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/hammerhead/bluetooth
     47 
     48 # Wifi related defines
     49 WPA_SUPPLICANT_VERSION      := VER_0_8_X
     50 BOARD_WLAN_DEVICE           := bcmdhd
     51 BOARD_WPA_SUPPLICANT_DRIVER := NL80211
     52 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     53 BOARD_HOSTAPD_DRIVER        := NL80211
     54 BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
     55 WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
     56 WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
     57 WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
     58 
     59 BOARD_USES_SECURE_SERVICES := true
     60 
     61 TARGET_NO_RADIOIMAGE := true
     62 TARGET_BOARD_PLATFORM := msm8974
     63 TARGET_BOOTLOADER_BOARD_NAME := hammerhead
     64 TARGET_BOARD_INFO_FILE := device/lge/hammerhead/board-info.txt
     65 BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
     66 TARGET_NO_RPC := true
     67 
     68 BOARD_EGL_CFG := device/lge/hammerhead/egl.cfg
     69 
     70 USE_OPENGL_RENDERER := true
     71 VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
     72 SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
     73 TARGET_USES_ION := true
     74 
     75 TARGET_USERIMAGES_USE_EXT4 := true
     76 BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672
     77 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672
     78 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824
     79 BOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312
     80 BOARD_CACHEIMAGE_PARTITION_SIZE := 734003200
     81 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
     82 BOARD_FLASH_BLOCK_SIZE := 131072
     83 
     84 BOARD_CHARGER_DISABLE_INIT_BLANK := true
     85 BOARD_CHARGER_ENABLE_SUSPEND := true
     86 
     87 TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
     88 TARGET_RECOVERY_UI_LIB := librecovery_ui_hammerhead
     89 TARGET_RECOVERY_FSTAB = device/lge/hammerhead/fstab.hammerhead
     90 
     91 TARGET_RELEASETOOLS_EXTENSIONS := device/lge/hammerhead
     92 
     93 PDK_PLATFORM_ZIP_PRODUCT_BINARIES := device/lge/hammerhead-kernel/vmlinux.bz2
     94 
     95 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.hammerhead
     96 
     97 BOARD_SEPOLICY_DIRS := \
     98        device/lge/hammerhead/sepolicy
     99 
    100 # The list below is order dependent
    101 BOARD_SEPOLICY_UNION := \
    102        device.te \
    103        app.te \
    104        file_contexts
    105 
    106 HAVE_ADRENO_SOURCE:= false
    107 
    108 OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
    109 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
    110 
    111 TARGET_TOUCHBOOST_FREQUENCY:= 1200
    112 
    113 -include vendor/lge/hammerhead/BoardConfigVendor.mk
    114