Jean-Baptiste Queru | f71ec4b | 2012-06-05 15:25:30 -0700 | [diff] [blame] | 1 | # |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 2 | # Copyright (C) 2011 The Android Open-Source Project |
Jean-Baptiste Queru | f71ec4b | 2012-06-05 15:25:30 -0700 | [diff] [blame] | 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 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 17 | TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 18 | TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 19 | TARGET_CPU_ABI := armeabi-v7a |
| 20 | TARGET_CPU_ABI2 := armeabi |
| 21 | TARGET_CPU_SMP := true |
Jean-Baptiste Queru | 595ae24 | 2012-08-10 13:00:55 -0700 | [diff] [blame] | 22 | TARGET_ARCH := arm |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 23 | TARGET_ARCH_VARIANT := armv7-a-neon |
Christopher Ferris | 5197d28 | 2013-02-05 15:49:35 -0800 | [diff] [blame] | 24 | TARGET_CPU_VARIANT := krait |
Jean-Baptiste Queru | f71ec4b | 2012-06-05 15:25:30 -0700 | [diff] [blame] | 25 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 26 | TARGET_NO_BOOTLOADER := true |
| 27 | |
| 28 | BOARD_KERNEL_BASE := 0x80200000 |
| 29 | BOARD_KERNEL_PAGESIZE := 2048 |
Iliyan Malchev | 1c59be2 | 2013-10-03 14:11:26 -0700 | [diff] [blame] | 30 | BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 user_debug=31 |
Devin Kim | 46deaee | 2012-09-11 11:11:29 -0700 | [diff] [blame] | 31 | BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01600000 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 32 | |
| 33 | BOARD_USES_ALSA_AUDIO:= true |
Iliyan Malchev | 1eee589 | 2013-02-08 18:50:17 -0800 | [diff] [blame] | 34 | BOARD_USES_LEGACY_ALSA_AUDIO:= false |
ty.lee | dcb0fdc | 2012-08-01 23:02:06 +0900 | [diff] [blame] | 35 | BOARD_USES_FLUENCE_INCALL := true |
ty.lee | 25bb106 | 2012-08-02 00:38:01 +0900 | [diff] [blame] | 36 | BOARD_USES_SEPERATED_AUDIO_INPUT := true |
Jeonghoon lim | 0a3bd80 | 2012-08-14 18:08:24 -0700 | [diff] [blame] | 37 | |
Ajay Dudani | 5d4f9f8 | 2012-06-20 15:44:25 -0700 | [diff] [blame] | 38 | BOARD_HAVE_BLUETOOTH := true |
Jeonghoon lim | 0a3bd80 | 2012-08-14 18:08:24 -0700 | [diff] [blame] | 39 | BOARD_HAVE_BLUETOOTH_QCOM := true |
| 40 | BLUETOOTH_HCI_USE_MCT := true |
Ajay Dudani | 5d4f9f8 | 2012-06-20 15:44:25 -0700 | [diff] [blame] | 41 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 42 | TARGET_NO_RADIOIMAGE := true |
| 43 | TARGET_BOARD_PLATFORM := msm8960 |
| 44 | TARGET_BOOTLOADER_BOARD_NAME := MAKO |
| 45 | TARGET_BOOTLOADER_NAME=mako |
Devin Kim | ae8ab6f | 2012-07-10 15:38:49 -0700 | [diff] [blame] | 46 | TARGET_BOARD_INFO_FILE := device/lge/mako/board-info.txt |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 47 | |
Wink Saville | 9cb9ff3 | 2012-08-20 16:27:09 -0700 | [diff] [blame] | 48 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/mako/bluetooth |
| 49 | |
| 50 | # FIXME: HOSTAPD-derived wifi driver |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 51 | BOARD_HAS_QCOM_WLAN := true |
Jeff Johnson | 4d299b0 | 2012-08-14 07:39:39 -0700 | [diff] [blame] | 52 | BOARD_WLAN_DEVICE := qcwcn |
| 53 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 54 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
Jeff Johnson | 4d299b0 | 2012-08-14 07:39:39 -0700 | [diff] [blame] | 55 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 56 | BOARD_HOSTAPD_DRIVER := NL80211 |
Jeff Johnson | 4d299b0 | 2012-08-14 07:39:39 -0700 | [diff] [blame] | 57 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 58 | WIFI_DRIVER_FW_PATH_STA := "sta" |
Sungmin Choi | 26a5730 | 2012-07-27 23:55:15 -0700 | [diff] [blame] | 59 | WIFI_DRIVER_FW_PATH_AP := "ap" |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 60 | |
| 61 | BOARD_EGL_CFG := device/lge/mako/egl.cfg |
| 62 | |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 63 | #BOARD_USES_HGL := true |
| 64 | #BOARD_USES_OVERLAY := true |
| 65 | USE_OPENGL_RENDERER := true |
| 66 | TARGET_USES_ION := true |
| 67 | TARGET_USES_OVERLAY := true |
| 68 | TARGET_USES_SF_BYPASS := true |
| 69 | TARGET_USES_C2D_COMPOSITON := true |
| 70 | |
Alex Light | e2e2214 | 2014-08-11 10:46:02 -0700 | [diff] [blame] | 71 | # Enable dex-preoptimization to speed up first boot sequence |
| 72 | ifeq ($(HOST_OS),linux) |
| 73 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 74 | ifeq ($(WITH_DEXPREOPT),) |
| 75 | WITH_DEXPREOPT := true |
| 76 | endif |
| 77 | endif |
| 78 | endif |
Alex Light | 69c4f82 | 2014-08-11 13:15:02 -0700 | [diff] [blame] | 79 | WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true |
| 80 | |
Ken Sumrall | 7edbad5 | 2013-02-19 17:32:54 -0800 | [diff] [blame] | 81 | TARGET_RECOVERY_FSTAB = device/lge/mako/fstab.mako |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 82 | TARGET_USERIMAGES_USE_EXT4 := true |
Jongrak Kwon | e64faf4 | 2012-08-21 10:40:39 -0700 | [diff] [blame] | 83 | BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M |
| 84 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M |
| 85 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M |
Jongrak Kwon | e64faf4 | 2012-08-21 10:40:39 -0700 | [diff] [blame] | 86 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 6189744128 # 5.9G |
Devin Kim | 4561d88 | 2014-06-06 11:03:13 -0700 | [diff] [blame] | 87 | BOARD_CACHEIMAGE_PARTITION_SIZE := 738197504 # 704 MByte |
| 88 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
Iliyan Malchev | fefe23c | 2012-06-08 10:36:25 -0700 | [diff] [blame] | 89 | BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64) |
| 90 | |
| 91 | BOARD_USES_SECURE_SERVICES := true |
Jean-Baptiste Queru | da90dca | 2012-06-05 16:03:03 -0700 | [diff] [blame] | 92 | |
Sungmin Choi | f1f28ec | 2012-08-16 00:40:32 -0700 | [diff] [blame] | 93 | BOARD_USES_EXTRA_THERMAL_SENSOR := true |
insup.choi | 658692e | 2013-03-21 23:35:26 -0700 | [diff] [blame] | 94 | BOARD_USES_CAMERA_FAST_AUTOFOCUS := true |
Sungmin Choi | f1f28ec | 2012-08-16 00:40:32 -0700 | [diff] [blame] | 95 | |
Todd Poynor | 5c7f472 | 2013-08-13 17:11:01 -0700 | [diff] [blame] | 96 | BOARD_HAL_STATIC_LIBRARIES := libdumpstate.mako |
Iliyan Malchev | 2531dc2 | 2012-10-22 16:08:11 -0700 | [diff] [blame] | 97 | |
Ajay Dudani | e114409 | 2012-06-15 21:07:31 -0700 | [diff] [blame] | 98 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM) |
| 99 | TARGET_NO_RPC := true |
jeonghoon.lim | 6a2ca5a | 2012-07-13 13:00:37 -0700 | [diff] [blame] | 100 | |
Doug Zongker | 021796c | 2012-08-14 13:36:09 -0700 | [diff] [blame] | 101 | TARGET_RELEASETOOLS_EXTENSIONS := device/lge/mako |
| 102 | |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 103 | BOARD_SEPOLICY_DIRS += \ |
Geremy Condra | bb3ca8d | 2013-04-02 20:02:28 -0700 | [diff] [blame] | 104 | device/lge/mako/sepolicy |
| 105 | |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 106 | BOARD_SEPOLICY_UNION += \ |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 107 | bluetooth_loader.te \ |
| 108 | bridge.te \ |
| 109 | camera.te \ |
| 110 | conn_init.te \ |
Alex Klyubin | 1fc9172 | 2013-04-25 15:20:27 -0700 | [diff] [blame] | 111 | device.te \ |
Robert Craig | 39c769d | 2014-02-20 20:06:45 -0500 | [diff] [blame] | 112 | domain.te \ |
repo sync | 10076f7 | 2013-05-01 15:43:11 -0700 | [diff] [blame] | 113 | file.te \ |
Alex Klyubin | 1fc9172 | 2013-04-25 15:20:27 -0700 | [diff] [blame] | 114 | file_contexts \ |
Robert Craig | 7d74efb | 2014-03-06 09:57:39 -0500 | [diff] [blame] | 115 | hostapd.te \ |
repo sync | 591967c | 2013-05-03 13:09:46 -0700 | [diff] [blame] | 116 | kickstart.te \ |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 117 | mediaserver.te \ |
| 118 | mpdecision.te \ |
| 119 | netmgrd.te \ |
Robert Craig | e65b1ed | 2014-06-20 10:44:30 -0400 | [diff] [blame] | 120 | property.te \ |
| 121 | property_contexts \ |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 122 | qmux.te \ |
repo sync | e65bf8d | 2013-05-01 14:05:34 -0700 | [diff] [blame] | 123 | rild.te \ |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 124 | rmt.te \ |
| 125 | sensors.te \ |
Alex Klyubin | 1fc9172 | 2013-04-25 15:20:27 -0700 | [diff] [blame] | 126 | surfaceflinger.te \ |
Alex Klyubin | 63eea9a | 2013-09-13 16:08:27 -0700 | [diff] [blame] | 127 | system_server.te \ |
Robert Craig | 381b2e0 | 2013-11-22 08:43:52 -0500 | [diff] [blame] | 128 | tee.te \ |
Robert Craig | 5d98167 | 2013-10-08 07:38:07 -0400 | [diff] [blame] | 129 | te_macros \ |
Robert Craig | 3370c79 | 2013-09-26 06:36:55 -0400 | [diff] [blame] | 130 | thermald.te \ |
Robert Craig | e10afca | 2013-11-12 10:28:41 -0500 | [diff] [blame] | 131 | ueventd.te |
Geremy Condra | bb3ca8d | 2013-04-02 20:02:28 -0700 | [diff] [blame] | 132 | |
| 133 | |
choongryeol.lee | d1749a1 | 2012-11-29 16:21:41 -0800 | [diff] [blame] | 134 | BOARD_CHARGER_ENABLE_SUSPEND := true |
| 135 | |
Iliyan Malchev | e1f32ae | 2013-05-10 21:06:23 -0700 | [diff] [blame] | 136 | USE_DEVICE_SPECIFIC_CAMERA:= true |
| 137 | USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true |
Iliyan Malchev | 6d01645 | 2013-03-27 16:27:56 -0700 | [diff] [blame] | 138 | |
Iliyan Malchev | e3c12c4 | 2013-09-07 16:10:04 -0700 | [diff] [blame] | 139 | OVERRIDE_RS_DRIVER := libRSDriver_adreno.so |
| 140 | |
Iliyan Malchev | 4015ba2 | 2013-09-03 16:38:06 -0700 | [diff] [blame] | 141 | HAVE_ADRENO_SOURCE:= false |
Jean-Baptiste Queru | f71ec4b | 2012-06-05 15:25:30 -0700 | [diff] [blame] | 142 | |
Raph Levien | 5dbc242 | 2014-07-09 16:01:14 -0700 | [diff] [blame] | 143 | # Include an expanded selection of fonts |
| 144 | EXTENDED_FONT_FOOTPRINT := true |
| 145 | |
Christopher Ferris | f3b8694 | 2014-07-10 14:55:45 -0700 | [diff] [blame] | 146 | MALLOC_IMPL := dlmalloc |
| 147 | |
Jean-Baptiste Queru | f71ec4b | 2012-06-05 15:25:30 -0700 | [diff] [blame] | 148 | -include vendor/lge/mako/BoardConfigVendor.mk |