blob: 63d18dca0fbe2ea299d3949a70b31f1664040e1d [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
Jared Caliendo3e31c512013-04-20 16:50:53 -070027# inherit from common msm8960
28-include device/htc/msm8960-common/BoardConfigCommon.mk
David Hays2ba37a02013-02-23 13:33:50 -060029
Flyhalf20594560412013-03-30 11:08:47 -050030# Bootloader
h8rift240ecb82013-04-21 09:23:43 -050031TARGET_BOOTLOADER_BOARD_NAME := m7
Flyhalf20594560412013-03-30 11:08:47 -050032
33# Kernel
Shane Passmore33ab2db2013-04-22 05:54:49 -050034BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=m7 user_debug=31
35BOARD_KERNEL_BASE := 0x80600000
36BOARD_KERNEL_PAGESIZE := 2048
37BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01400000
h8rift240ecb82013-04-21 09:23:43 -050038TARGET_KERNEL_CONFIG := m7_defconfig
Shane Passmorea79bc682013-04-22 06:04:49 -050039
Flyhalf20594560412013-03-30 11:08:47 -050040# Bluetooth
h8rift240ecb82013-04-21 09:23:43 -050041BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/m7/bluetooth
Flyhalf20594560412013-03-30 11:08:47 -050042
Flyhalf20594560412013-03-30 11:08:47 -050043# HTClog
44COMMON_GLOBAL_CFLAGS += -DHTCLOG
45
Flyhalf20594560412013-03-30 11:08:47 -050046# USB
47TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
48
Shane Passmorea79bc682013-04-22 06:04:49 -050049TARGET_USERIMAGES_USE_EXT4 := true
50
Flyhalf20594560412013-03-30 11:08:47 -050051# Filesystem
David Hays2ba37a02013-02-23 13:33:50 -060052BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
David Hays58844472013-03-04 10:53:26 -060053BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776704
David Hays2ba37a02013-02-23 13:33:50 -060054BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946156032
David Haysc6b475e2013-03-04 11:17:57 -060055BOARD_USERDATAIMAGE_PARTITION_SIZE := 27917287424
David Hays2ba37a02013-02-23 13:33:50 -060056BOARD_FLASH_BLOCK_SIZE := 131072
57
Jared Caliendo3e31c512013-04-20 16:50:53 -070058# cat /proc/emmc:
Shane Passmorea79bc682013-04-22 06:04:49 -050059# dev: size erasesize name
Jared Caliendo3e31c512013-04-20 16:50:53 -070060# mmcblk0p19: 000ffa00 00000200 "misc"
Shane Passmorea79bc682013-04-22 06:04:49 -050061# mmcblk0p34: 00fffe00 00000200 "recovery"
62# mmcblk0p33: 01000000 00000200 "boot"
63# mmcblk0p35: 73fffc00 00000200 "system"
Jared Caliendo3e31c512013-04-20 16:50:53 -070064# mmcblk0p26: 00140200 00000200 "local"
Shane Passmorea79bc682013-04-22 06:04:49 -050065# mmcblk0p36: 27fffe00 00000200 "cache"
66# mmcblk0p37: 680000000 00000200 "userdata"
Jared Caliendo3e31c512013-04-20 16:50:53 -070067# mmcblk0p22: 01400000 00000200 "devlog"
68# mmcblk0p24: 00040000 00000200 "pdata"
69# mmcblk0p27: 00010000 00000200 "extra"
Shane Passmorea79bc682013-04-22 06:04:49 -050070# mmcblk0p31: 04b00200 00000200 "radio"
Jared Caliendo3e31c512013-04-20 16:50:53 -070071# mmcblk0p16: 03c00400 00000200 "adsp"
72# mmcblk0p15: 00100000 00000200 "dsps"
73# mmcblk0p17: 007ffa00 00000200 "radio_config"
74# mmcblk0p20: 00400000 00000200 "modem_st1"
75# mmcblk0p21: 00400000 00000200 "modem_st2"
Jared Caliendo3e31c512013-04-20 16:50:53 -070076# mmcblk0p28: 00100000 00000200 "cdma_record"
77# mmcblk0p18: 02000000 00000200 "reserve_1"
Shane Passmorea79bc682013-04-22 06:04:49 -050078# mmcblk0p30: 034ffa00 00000200 "reserve_2"
79# mmcblk0p32: 05fffc00 00000200 "reserve_3"
80# mmcblk0p29: 06069e00 00000200 "reserve"