blob: 8b754b1ec194a09a17e2936ff5b4b578f86bf34b [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
Shane Passmore8ebc4d22013-04-22 18:06:00 -050027# inherit from common apq8064
mrbirdman5b133c02013-04-25 05:08:37 -070028 -include device/htc/msm8960-common/BoardConfigCommon.mk
Shane Passmore8ebc4d22013-04-22 18:06:00 -050029BOARD_VENDOR := htc
David Hays2ba37a02013-02-23 13:33:50 -060030
Shane Passmore8ebc4d22013-04-22 18:06:00 -050031# Include path
32TARGET_SPECIFIC_HEADER_PATH := device/htc/m7/include
33
Shane Passmore8ebc4d22013-04-22 18:06:00 -050034# Flags
35TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
36TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
37COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DNEW_ION_API
38
39# QCOM hardware
40BOARD_USES_QCOM_HARDWARE := true
41
42# Platform
43TARGET_BOARD_PLATFORM := msm8960
44TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
45
46# Architecture
47TARGET_ARCH := arm
48TARGET_ARCH_VARIANT := armv7-a-neon
49TARGET_ARCH_VARIANT_CPU := cortex-a9
50TARGET_CPU_ABI := armeabi-v7a
51TARGET_CPU_ABI2 := armeabi
52TARGET_CPU_SMP := true
53TARGET_USE_KRAIT_BIONIC_OPTIMIZATION := true
54
55# Bootloaderi
56TARGET_NO_BOOTLOADER := true
h8rift240ecb82013-04-21 09:23:43 -050057TARGET_BOOTLOADER_BOARD_NAME := m7
Flyhalf20594560412013-03-30 11:08:47 -050058
59# Kernel
Shane Passmore33ab2db2013-04-22 05:54:49 -050060BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=m7 user_debug=31
61BOARD_KERNEL_BASE := 0x80600000
62BOARD_KERNEL_PAGESIZE := 2048
63BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01400000
Shane Passmore8ebc4d22013-04-22 18:06:00 -050064TARGET_KERNEL_VERSION := 3.4
h8rift240ecb82013-04-21 09:23:43 -050065TARGET_KERNEL_CONFIG := m7_defconfig
Shane Passmore8ebc4d22013-04-22 18:06:00 -050066TARGET_KERNEL_SOURCE := kernel/htc/msm8960
67
Daniel Hillenbrandcd5b7472013-04-26 20:16:59 +020068# RIL
69BOARD_PROVIDES_LIBRIL := true
mrbirdman76208532013-04-25 04:05:03 -070070
Flyhalf20594560412013-03-30 11:08:47 -050071# Bluetooth
h8rift240ecb82013-04-21 09:23:43 -050072BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/m7/bluetooth
Shane Passmore8ebc4d22013-04-22 18:06:00 -050073BOARD_BLUEDROID_VENDOR_CONF := device/htc/m7/configs/libbt_vndcfg.txt
74
Flyhalf20594560412013-03-30 11:08:47 -050075# HTClog
76COMMON_GLOBAL_CFLAGS += -DHTCLOG
77
Shane Passmore8ebc4d22013-04-22 18:06:00 -050078# Graphics
79USE_OPENGL_RENDERER := true
80TARGET_USES_C2D_COMPOSITION := true
81TARGET_USES_ION := true
82TARGET_QCOM_DISPLAY_VARIANT := caf
83BOARD_EGL_CFG := device/htc/m7/configs/egl.cfg
84
Flyhalf20594560412013-03-30 11:08:47 -050085# USB
86TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
87
Shane Passmore8ebc4d22013-04-22 18:06:00 -050088# Wifi
89WIFI_BAND := 802_11_ABG
90WPA_SUPPLICANT_VERSION := VER_0_8_X
91BOARD_WPA_SUPPLICANT_DRIVER := NL80211
92BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
93BOARD_HOSTAPD_DRIVER := NL80211
94BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
95BOARD_WLAN_DEVICE := bcmdhd
96
97WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcmdhd.ko"
98WIFI_DRIVER_MODULE_NAME := "bcmdhd"
99WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/firmware/fw_bcm4335.bin nvram_path=/system/etc/calibration"
100WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/firmware/fw_bcm4335_apsta.bin nvram_path=/system/etc/calibration"
101WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcm4335.bin"
102WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcm4335_apsta.bin"
103WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcm4335_p2p.bin"
104
Flyhalf20594560412013-03-30 11:08:47 -0500105# Filesystem
David Hays2ba37a02013-02-23 13:33:50 -0600106BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
David Hays58844472013-03-04 10:53:26 -0600107BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776704
David Hays2ba37a02013-02-23 13:33:50 -0600108BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946156032
David Haysc6b475e2013-03-04 11:17:57 -0600109BOARD_USERDATAIMAGE_PARTITION_SIZE := 27917287424
David Hays2ba37a02013-02-23 13:33:50 -0600110BOARD_FLASH_BLOCK_SIZE := 131072
111
Shane Passmore8ebc4d22013-04-22 18:06:00 -0500112# Custom Recovery
113TARGET_PREBUILT_KERNEL := device/htc/m7/prebuilt/kernel
114BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
115TARGET_RECOVERY_INITRC := device/htc/m7/recovery/init.rc
116BOARD_HAS_NO_SELECT_BUTTON := true
117BOARD_HAS_LARGE_FILESYSTEM := true
118TARGET_USERIMAGES_USE_EXT4 := true
119
Jared Caliendo3e31c512013-04-20 16:50:53 -0700120# cat /proc/emmc:
Shane Passmorea79bc682013-04-22 06:04:49 -0500121# dev: size erasesize name
Jared Caliendo3e31c512013-04-20 16:50:53 -0700122# mmcblk0p19: 000ffa00 00000200 "misc"
Shane Passmorea79bc682013-04-22 06:04:49 -0500123# mmcblk0p34: 00fffe00 00000200 "recovery"
124# mmcblk0p33: 01000000 00000200 "boot"
125# mmcblk0p35: 73fffc00 00000200 "system"
Jared Caliendo3e31c512013-04-20 16:50:53 -0700126# mmcblk0p26: 00140200 00000200 "local"
Shane Passmorea79bc682013-04-22 06:04:49 -0500127# mmcblk0p36: 27fffe00 00000200 "cache"
128# mmcblk0p37: 680000000 00000200 "userdata"
Jared Caliendo3e31c512013-04-20 16:50:53 -0700129# mmcblk0p22: 01400000 00000200 "devlog"
130# mmcblk0p24: 00040000 00000200 "pdata"
131# mmcblk0p27: 00010000 00000200 "extra"
Shane Passmorea79bc682013-04-22 06:04:49 -0500132# mmcblk0p31: 04b00200 00000200 "radio"
Jared Caliendo3e31c512013-04-20 16:50:53 -0700133# mmcblk0p16: 03c00400 00000200 "adsp"
134# mmcblk0p15: 00100000 00000200 "dsps"
135# mmcblk0p17: 007ffa00 00000200 "radio_config"
136# mmcblk0p20: 00400000 00000200 "modem_st1"
137# mmcblk0p21: 00400000 00000200 "modem_st2"
Jared Caliendo3e31c512013-04-20 16:50:53 -0700138# mmcblk0p28: 00100000 00000200 "cdma_record"
139# mmcblk0p18: 02000000 00000200 "reserve_1"
Shane Passmorea79bc682013-04-22 06:04:49 -0500140# mmcblk0p30: 034ffa00 00000200 "reserve_2"
141# mmcblk0p32: 05fffc00 00000200 "reserve_3"
142# mmcblk0p29: 06069e00 00000200 "reserve"
Daniel Hillenbrand6953cc52013-04-26 20:18:04 +0200143
144# inherit from the proprietary version
145-include vendor/htc/m7/BoardConfigVendor.mk