1f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#
2fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev# Copyright (C) 2011 The Android Open-Source Project
3f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#
4f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# Licensed under the Apache License, Version 2.0 (the "License");
5f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# you may not use this file except in compliance with the License.
6f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# You may obtain a copy of the License at
7f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#
8f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#      http://www.apache.org/licenses/LICENSE-2.0
9f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#
10f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# Unless required by applicable law or agreed to in writing, software
11f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# distributed under the License is distributed on an "AS IS" BASIS,
12f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# See the License for the specific language governing permissions and
14f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru# limitations under the License.
15f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru#
16f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru
17fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
18fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
19fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_CPU_ABI := armeabi-v7a
20fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_CPU_ABI2 := armeabi
21fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_CPU_SMP := true
22595ae2430e443b89ceb66085cc67e89554976603Jean-Baptiste QueruTARGET_ARCH := arm
23fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_ARCH_VARIANT := armv7-a-neon
245197d28bf2e26e861d68d2a9fd8da0a0b55a3f96Christopher FerrisTARGET_CPU_VARIANT := krait
25fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
26fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_NO_BOOTLOADER := true
27fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
28fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_KERNEL_BASE := 0x80200000
29fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_KERNEL_PAGESIZE := 2048
301c59be22ec10cd1f8549987a07db00c92f8152a6Iliyan MalchevBOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 user_debug=31
3146deaee8efc0939f91b9bbb1e8bbea75a35c4cfcDevin KimBOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01600000
32fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
33fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_USES_ALSA_AUDIO:= true
341eee589393ed63cbcb0760d2e4ac844bfd299b46Iliyan MalchevBOARD_USES_LEGACY_ALSA_AUDIO:= false
35dcb0fdc8191e94ee1742ee663ecbac1695102f8cty.leeBOARD_USES_FLUENCE_INCALL := true
3625bb1062647ca40208390d68eee8860256a8918bty.leeBOARD_USES_SEPERATED_AUDIO_INPUT := true
370a3bd80d3b327b67e14f507a9feb3b52280ac7f9Jeonghoon lim
385d4f9f819b8e8c1c77061b4ca42a7dac83c25b45Ajay DudaniBOARD_HAVE_BLUETOOTH := true
390a3bd80d3b327b67e14f507a9feb3b52280ac7f9Jeonghoon limBOARD_HAVE_BLUETOOTH_QCOM := true
400a3bd80d3b327b67e14f507a9feb3b52280ac7f9Jeonghoon limBLUETOOTH_HCI_USE_MCT := true
415d4f9f819b8e8c1c77061b4ca42a7dac83c25b45Ajay Dudani
42fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_NO_RADIOIMAGE := true
43fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_BOARD_PLATFORM := msm8960
44fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_BOOTLOADER_BOARD_NAME := MAKO
45fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_BOOTLOADER_NAME=mako
46ae8ab6facb6db72afd3bcf8240e75164c78a02c7Devin KimTARGET_BOARD_INFO_FILE := device/lge/mako/board-info.txt
47fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
489cb9ff305d8b8a4a9758b76887354b3d84393565Wink SavilleBOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/mako/bluetooth
499cb9ff305d8b8a4a9758b76887354b3d84393565Wink Saville
509cb9ff305d8b8a4a9758b76887354b3d84393565Wink Saville# FIXME: HOSTAPD-derived wifi driver
51fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_HAS_QCOM_WLAN := true
524d299b079b847177a07dc0ea5695b1c3449ec8bfJeff JohnsonBOARD_WLAN_DEVICE := qcwcn
534d299b079b847177a07dc0ea5695b1c3449ec8bfJeff JohnsonWPA_SUPPLICANT_VERSION := VER_0_8_X
54fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_WPA_SUPPLICANT_DRIVER := NL80211
554d299b079b847177a07dc0ea5695b1c3449ec8bfJeff JohnsonBOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
56fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_HOSTAPD_DRIVER := NL80211
574d299b079b847177a07dc0ea5695b1c3449ec8bfJeff JohnsonBOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
58fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevWIFI_DRIVER_FW_PATH_STA := "sta"
5926a573069073a5bd6c995cd8fa2e6c1f5ae00d97Sungmin ChoiWIFI_DRIVER_FW_PATH_AP  := "ap"
60fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
61fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_EGL_CFG := device/lge/mako/egl.cfg
62fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
63fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev#BOARD_USES_HGL := true
64fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev#BOARD_USES_OVERLAY := true
65fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevUSE_OPENGL_RENDERER := true
66fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_USES_ION := true
67fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_USES_OVERLAY := true
68fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_USES_SF_BYPASS := true
69fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_USES_C2D_COMPOSITON := true
70fefe23cb22e507810482bf685c7af343879274c6Iliyan Malchev
71e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light# Enable dex-preoptimization to speed up first boot sequence
72e2e2214be83b74efbebca6eba45adf3690900bf8Alex Lightifeq ($(HOST_OS),linux)
73e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light  ifeq ($(TARGET_BUILD_VARIANT),user)
74e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light    ifeq ($(WITH_DEXPREOPT),)
75e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light      WITH_DEXPREOPT := true
76e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light    endif
77e2e2214be83b74efbebca6eba45adf3690900bf8Alex Light  endif
78e2e2214be83b74efbebca6eba45adf3690900bf8Alex Lightendif
7969c4f825690f9885bc46b6628b03ab53b1cb28f8Alex LightWITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
8069c4f825690f9885bc46b6628b03ab53b1cb28f8Alex Light
817edbad54e46792e65b2f80b37ef0767e0744c6f8Ken SumrallTARGET_RECOVERY_FSTAB = device/lge/mako/fstab.mako
82fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevTARGET_USERIMAGES_USE_EXT4 := true
83e64faf474d8d6ad9c35be483341b829111aed49fJongrak KwonBOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M
84e64faf474d8d6ad9c35be483341b829111aed49fJongrak KwonBOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M
85e64faf474d8d6ad9c35be483341b829111aed49fJongrak KwonBOARD_SYSTEMIMAGE_PARTITION_SIZE := 880803840 # 840M
86e64faf474d8d6ad9c35be483341b829111aed49fJongrak KwonBOARD_USERDATAIMAGE_PARTITION_SIZE := 6189744128 # 5.9G
874561d883f1a205a31e79039eb8188706f256769bDevin KimBOARD_CACHEIMAGE_PARTITION_SIZE := 738197504 # 704 MByte
884561d883f1a205a31e79039eb8188706f256769bDevin KimBOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
89fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
90f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru
91fefe23cb22e507810482bf685c7af343879274c6Iliyan MalchevBOARD_USES_SECURE_SERVICES := true
92da90dca88922d45da17ca99bf872c5a799668160Jean-Baptiste Queru
93f1f28ec60d5155338bc1d9970f8a1208fd6a9daaSungmin ChoiBOARD_USES_EXTRA_THERMAL_SENSOR := true
94658692e1ba6ff38e3aa7a6f1c7b81a9870964eaeinsup.choiBOARD_USES_CAMERA_FAST_AUTOFOCUS := true
95f1f28ec60d5155338bc1d9970f8a1208fd6a9daaSungmin Choi
965c7f47291f64b72763a70ac1204de84dc1e9d5cbTodd PoynorBOARD_HAL_STATIC_LIBRARIES := libdumpstate.mako
972531dc2baa23b11514be7941805ab6b7382d8020Iliyan Malchev
98e11440916444c957794664c6d85852e83e4df823Ajay DudaniBOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
99e11440916444c957794664c6d85852e83e4df823Ajay DudaniTARGET_NO_RPC := true
1006a2ca5a2f570d4327c5909332ce584334feb73cfjeonghoon.lim
101021796cb174851f5155b50c805b3331b89a84de6Doug ZongkerTARGET_RELEASETOOLS_EXTENSIONS := device/lge/mako
102021796cb174851f5155b50c805b3331b89a84de6Doug Zongker
1033370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert CraigBOARD_SEPOLICY_DIRS += \
104bb3ca8d4cd0b53c7b27499d0e5ee826be0c521ceGeremy Condra       device/lge/mako/sepolicy
105bb3ca8d4cd0b53c7b27499d0e5ee826be0c521ceGeremy Condra
1063370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert CraigBOARD_SEPOLICY_UNION += \
1073370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       bluetooth_loader.te \
1083370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       bridge.te \
1093370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       camera.te \
1103370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       conn_init.te \
1111fc9172689ce05a99e28db15d068588bb437b4b7Alex Klyubin       device.te \
11239c769d8f589d7471a76a5b71faaf15878d5384aRobert Craig       domain.te \
11310076f7999899695f0f6cb97eada8311440f759frepo sync       file.te \
1141fc9172689ce05a99e28db15d068588bb437b4b7Alex Klyubin       file_contexts \
1157d74efb6558dd0d1eb60f93488f9ffb384a3a259Robert Craig       hostapd.te \
116591967cf1e699277ad362664e8d2fbbf366a3c26repo sync       kickstart.te \
1173370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       mediaserver.te \
1183370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       mpdecision.te \
1193370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       netmgrd.te \
120e65b1ede3b10c48af9ccd792ea332b4de1f32571Robert Craig       property.te \
121e65b1ede3b10c48af9ccd792ea332b4de1f32571Robert Craig       property_contexts \
1223370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       qmux.te \
123e65bf8d1da1b4a5177869082d0db01c4eaa44f13repo sync       rild.te \
1243370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       rmt.te \
1253370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       sensors.te \
1261fc9172689ce05a99e28db15d068588bb437b4b7Alex Klyubin       surfaceflinger.te \
12763eea9a7d31f67dffaec22a61d2cc5e0bfd4a0f9Alex Klyubin       system_server.te \
128381b2e0a0d6f33fb7c277f57efdc3a74bfb5c7ccRobert Craig       tee.te \
1295d98167a758eb5d410119d00ab0043d762c9db21Robert Craig       te_macros \
1303370c7953eb2d1559f5c66a2f6010573d7fe9b9aRobert Craig       thermald.te \
131e10afca46d00954fc36ad45f86a9b72df41b20dbRobert Craig       ueventd.te
132bb3ca8d4cd0b53c7b27499d0e5ee826be0c521ceGeremy Condra
133bb3ca8d4cd0b53c7b27499d0e5ee826be0c521ceGeremy Condra
134d1749a18467a7b85693a1d8d97a4f3ece82aff39choongryeol.leeBOARD_CHARGER_ENABLE_SUSPEND := true
135d1749a18467a7b85693a1d8d97a4f3ece82aff39choongryeol.lee
136e1f32aef38527675c54bd79c47a0d3751e6d969cIliyan MalchevUSE_DEVICE_SPECIFIC_CAMERA:= true
137e1f32aef38527675c54bd79c47a0d3751e6d969cIliyan MalchevUSE_DEVICE_SPECIFIC_QCOM_PROPRIETARY:= true
1386d01645739c75116d8940772b80d5b7aba5c39d6Iliyan Malchev
139e3c12c4a7af69abe7406c6ba087361f6423d1a84Iliyan MalchevOVERRIDE_RS_DRIVER := libRSDriver_adreno.so
140e3c12c4a7af69abe7406c6ba087361f6423d1a84Iliyan Malchev
1414015ba27d8c87e5a2d445a0d07088a43cbd87109Iliyan MalchevHAVE_ADRENO_SOURCE:= false
1426d01645739c75116d8940772b80d5b7aba5c39d6Iliyan Malchev
1435dbc242d60275be8276b4485771e5a6d762e5c61Raph Levien# Include an expanded selection of fonts
1445dbc242d60275be8276b4485771e5a6d762e5c61Raph LevienEXTENDED_FONT_FOOTPRINT := true
1455dbc242d60275be8276b4485771e5a6d762e5c61Raph Levien
146f3b869456e10857a0797b25bf34314f9333ec195Christopher FerrisMALLOC_IMPL := dlmalloc
147f3b869456e10857a0797b25bf34314f9333ec195Christopher Ferris
148f71ec4b9fb967741a53e3c914ba4e388064a2177Jean-Baptiste Queru-include vendor/lge/mako/BoardConfigVendor.mk
149