blob: da058781b5f12dbf53a71ed289712e86fdd88a40 [file] [log] [blame]
Flyhalf20594560412013-03-30 11:08:47 -05001# Copyright (C) 2013 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#
16# This file sets variables that control the way modules are built
17# thorughout the system. It should not be used to conditionally
18# disable makefiles (the proper mechanism to control what gets
19# included in a build is to use PRODUCT_PACKAGES in a product
20# definition file).
21#
22
23# WARNING: This line must come *before* including the proprietary
24# variant, so that it gets overwritten by the parent (which goes
25# against the traditional rules of inheritance).
26
27BOARD_VENDOR := htc
David Hays2ba37a02013-02-23 13:33:50 -060028
29# inherit from the proprietary version
30-include vendor/htc/m7/BoardConfigVendor.mk
31
Flyhalf20594560412013-03-30 11:08:47 -050032# Flags
33TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
34TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
35COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
36
37# QCOM hardware
38BOARD_USES_QCOM_HARDWARE := true
39
David Hays2c1595e2013-03-20 23:42:47 -050040# Platform
David Hays745187f2013-02-24 14:11:31 -060041TARGET_BOARD_PLATFORM := msm8960
David Hays2c1595e2013-03-20 23:42:47 -050042TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
43
44# Architecture
David Hays8a7d06d2013-03-10 14:28:55 -050045TARGET_ARCH := arm
46TARGET_ARCH_VARIANT := armv7-a-neon
47TARGET_ARCH_VARIANT_CPU := cortex-a9
David Hays2c1595e2013-03-20 23:42:47 -050048TARGET_CPU_ABI := armeabi-v7a
49TARGET_CPU_ABI2 := armeabi
50TARGET_CPU_SMP := true
David Hays2ba37a02013-02-23 13:33:50 -060051
Flyhalf20594560412013-03-30 11:08:47 -050052# Bootloader
53TARGET_NO_BOOTLOADER := true
54TARGET_BOOTLOADER_BOARD_NAME := m7
55
56# Kernel
David Hays2ba37a02013-02-23 13:33:50 -060057BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=m7 user_debug=31
David Hays1fe10ad2013-03-08 22:55:44 -060058BOARD_KERNEL_BASE := 0x80600000
David Hays2ba37a02013-02-23 13:33:50 -060059BOARD_KERNEL_PAGESIZE := 2048
David Haysa4d253d2013-03-11 09:39:54 -050060BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01400000
Flyhalf20594560412013-03-30 11:08:47 -050061TARGET_KERNEL_VERSION := 3.4
62TARGET_KERNEL_CONFIG := m7_defconfig
63TARGET_KERNEL_SOURCE := kernel/htc/m7-$(TARGET_KERNEL_VERSION)
David Hays2ba37a02013-02-23 13:33:50 -060064
Flyhalf20594560412013-03-30 11:08:47 -050065# Audio
66BOARD_USES_ALSA_AUDIO:= true
67BOARD_USES_FLUENCE_INCALL := true
68BOARD_USES_SEPERATED_AUDIO_INPUT := true
69BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/m7/bluetooth
70
71# Bluetooth
72BOARD_HAVE_BLUETOOTH := true
73BOARD_HAVE_BLUETOOTH_QCOM := true
74BLUETOOTH_HCI_USE_MCT := true
75
76# Camera
77TARGET_PROVIDES_CAMERA_HAL := true
78
79# Ril
80BOARD_RIL_CLASS := "../../../device/htc/msm8960-common/libril/"
81BOARD_PROVIDES_LIBRIL := true
82
83# HTClog
84COMMON_GLOBAL_CFLAGS += -DHTCLOG
85
86# Graphics
87USE_OPENGL_RENDERER := true
88TARGET_USES_C2D_COMPOSITION := true
89TARGET_USES_ION := true
90TARGET_QCOM_DISPLAY_VARIANT := caf
91BOARD_HAVE_OLD_ION_API := true
92BOARD_EGL_CFG := device/htc/msm8960-common/configs/egl.cfg
93
94# Lights
95TARGET_PROVIDES_LIBLIGHTS := true
96
97# Power
98TARGET_PROVIDES_POWERHAL := true
99
100# USB
101TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
102
103# Wifi
104WIFI_BAND := 802_11_ABG
105WPA_SUPPLICANT_VERSION := VER_0_8_X
106BOARD_WPA_SUPPLICANT_DRIVER := NL80211
107BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
108BOARD_HOSTAPD_DRIVER := NL80211
109BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
110BOARD_WLAN_DEVICE := bcmdhd
111
112WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
113WIFI_DRIVER_MODULE_NAME := "bcmdhd"
114WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/firmware/fw_bcm4334.bin nvram_path=/system/etc/calibration"
115WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/firmware/fw_bcm4334_apsta.bin nvram_path=/system/etc/calibration"
116WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcm4334.bin"
117WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcm4334_apsta.bin"
118WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcm4334_p2p.bin"
119
120# GPS
121BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
122TARGET_NO_RPC := true
123
124# Filesystem
David Hays2ba37a02013-02-23 13:33:50 -0600125BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
David Hays58844472013-03-04 10:53:26 -0600126BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776704
David Hays2ba37a02013-02-23 13:33:50 -0600127BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946156032
David Haysc6b475e2013-03-04 11:17:57 -0600128BOARD_USERDATAIMAGE_PARTITION_SIZE := 27917287424
David Hays2ba37a02013-02-23 13:33:50 -0600129BOARD_FLASH_BLOCK_SIZE := 131072
130
Flyhalf20594560412013-03-30 11:08:47 -0500131# Custom Recovery
David Hays2ba37a02013-02-23 13:33:50 -0600132TARGET_PREBUILT_KERNEL := device/htc/m7/kernel
David Hays2ba37a02013-02-23 13:33:50 -0600133BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
134TARGET_RECOVERY_INITRC := device/htc/m7/recovery/init.rc
135BOARD_HAS_NO_SELECT_BUTTON := true
136BOARD_HAS_LARGE_FILESYSTEM := true
David Haysc6b475e2013-03-04 11:17:57 -0600137
Flyhalf20594560412013-03-30 11:08:47 -0500138# Webkit
139ENABLE_WEBGL := true
140TARGET_FORCE_CPU_UPLOAD := true