-
Notifications
You must be signed in to change notification settings - Fork 17
/
BoardConfig.mk
40 lines (35 loc) · 1.5 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include device/sony/tama/PlatformConfig.mk
TARGET_BOOTLOADER_BOARD_NAME := unknown
ifneq (,$(filter %h8416,$(TARGET_PRODUCT)))
TARGET_BOOTLOADER_BOARD_NAME := H8416
else ifneq (,$(filter %h9436,$(TARGET_PRODUCT)))
TARGET_BOOTLOADER_BOARD_NAME := H9436
else
TARGET_BOOTLOADER_BOARD_NAME := H8416
$(warning Unrecognized value for TARGET_PRODUCT: "$(TARGET_PRODUCT)", using default value: "$(TARGET_BOOTLOADER_BOARD_NAME)")
endif
# Platform
PRODUCT_PLATFORM := tama
BOARD_KERNEL_CMDLINE += androidboot.hardware=akatsuki
# Partition information
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4227858432
BOARD_VENDORIMAGE_PARTITION_SIZE := 1056714752
BOARD_ODMIMAGE_PARTITION_SIZE := 419430400
BOARD_DTBOIMG_PARTITION_SIZE := 8388608
# Reserve space for data encryption (44712771584-16384)
BOARD_USERDATAIMAGE_PARTITION_SIZE := 44712755200