-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
111 lines (94 loc) · 3.17 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# Copyright (C) 2024 The Android Open Source Project
# Copyright (C) 2024 SebaUbuntu's TWRP device tree generator
# Copyright (C) 2024 Dawnowl444
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/archos/ac50hello
# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := generic
TARGET_CPU_VARIANT_RUNTIME := generic
TARGET_USES_64_BIT_BINDER := true
# APEX
OVERRIDE_TARGET_FLATTEN_APEX := true
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := archos
TARGET_NO_BOOTLOADER := true
# Display
TARGET_SCREEN_DENSITY := 240
# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := bootopt=64S3,32S1,32S1 buildvariant=user
BOARD_KERNEL_PAGESIZE := 2048
BOARD_RAMDISK_OFFSET := 0x04000000
BOARD_KERNEL_TAGS_OFFSET := 0x0e000000
BOARD_KERNEL_OFFSET := 0x00008000
BOARD_SECOND_OFFSET := 0x00f00000
BOARD_BOOTIMG_HEADER_VERSION := 0
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET)
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
BOARD_KERNEL_IMAGE_NAME := Image
TARGET_KERNEL_CONFIG := ac50hello_defconfig
TARGET_KERNEL_SOURCE := kernel/archos/ac50hello
# LZMA_RAMDISK_TARGETS := recovery
# Kernel - prebuilt
TARGET_FORCE_PREBUILT_KERNEL := true
ifeq ($(TARGET_FORCE_PREBUILT_KERNEL),true)
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel
endif
# Partitions
BOARD_FLASH_BLOCK_SIZE := 0x20000
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 #0x1000000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216 #0x1000000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12848726016 #0x2FDD80000
BOARD_CACHEIMAGE_PARTITION_SIZE := 117440512 #0x7000000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 #0x80000000
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_SYSTEMIMAGE_PARTITION_TYPE := ext4
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_COPY_OUT_VENDOR := vendor
# Platform
TARGET_BOARD_PLATFORM := mt6580
TARGET_BOARD_PLATFORM_GPU := mali-400 MP
# Recovery
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
# Security patch level
VENDOR_SECURITY_PATCH := 2021-08-01
# TWRP Configuration
TW_SCREEN_BLANK_ON_BOOT := true
TW_INPUT_BLACKLIST := "hbtp_vm"
TW_MAX_BRIGHTNESS := 255
TW_DEFAULT_BRIGHTNESS := 170
TW_NO_USB_STORAGE := true
TW_EXCLUDE_SUPERSU := true
TW_EXCLUDE_TWRPAPP := true
# MT6580 specific
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
TW_SECONDARY_BRIGHTNESS_PATH := /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
TW_CUSTOM_CPU_TEMP_PATH := /sys/class/thermal/thermal_zone1/temp
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file
BOARD_USES_METADATA_PARTITION := true
MTK_HARDWARE := true
MTK_BOARD_PLATFORMS := $(TARGET_BOARD_PLATFORM)
# Force landscape
TW_THEME := landscape_hdpi
TW_ROTATION := 90
RECOVERY_TOUCHSCREEN_SWAP_XY := true
RECOVERY_TOUCHSCREEN_FLIP_Y := true
# Too large
# TW_EXCLUDE_NANO := true
TW_EXTRA_LANGUAGES := false
TW_EXCLUDE_PYTHON := true
# TW_EXCLUDE_DEFAULT_USB_INIT := true
# TW_EXCLUDE_APEX := true
# TW_EXCLUDE_MTP := true
# BOARD_HAS_NO_REAL_SDCARD := true
# TW_EXCLUDE_ENCRYPTED_BACKUPS := true
# TW_NO_EXFAT := true