-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBoardConfigCommon.mk
71 lines (54 loc) · 2.07 KB
/
BoardConfigCommon.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
#
# Copyright (C) 2021-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
COMMON_PATH := device/amlogic/g12-common
## BUILD_BROKEN_*
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
## HIDL
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
## Kernel
BOARD_KERNEL_CMDLINE := androidboot.dynamic_partitions=true androidboot.boot_devices=ffe07000.emmc use_uvm=1
TARGET_KERNEL_CONFIG := g12a_defconfig
TARGET_KERNEL_SOURCE := kernel/amlogic/linux-4.9
TARGET_KERNEL_VARIANT_CONFIG ?= g12a_variant_defconfig
ifeq ($(WITH_CONSOLE),true)
BOARD_KERNEL_CMDLINE += console=ttyS0,115200 no_console_suspend ignore_loglevel
endif
## Kernel modules
TARGET_KERNEL_EXT_MODULE_ROOT := kernel/amlogic/kernel-modules
TARGET_KERNEL_EXT_MODULES += \
mali-driver/bifrost \
media-4.9
ifneq ($(TARGET_HAS_TEE),false)
TARGET_KERNEL_EXT_MODULES += \
optee
endif
TARGET_MODULE_ALIASES += \
mali_kbase.ko:mali.ko
## Partitions
SSI_PARTITIONS := product system system_ext
TREBLE_PARTITIONS := odm vendor vendor_dlkm
ALL_PARTITIONS := $(SSI_PARTITIONS) $(TREBLE_PARTITIONS)
BOARD_AMLOGIC_DYNAMIC_PARTITIONS_PARTITION_LIST := $(ALL_PARTITIONS)
BOARD_AMLOGIC_DYNAMIC_PARTITIONS_SIZE := $(shell echo $$(($(BOARD_SUPER_PARTITION_SIZE) - 4194304))) # (BOARD_SUPER_PARTITION_SIZE - "reasonable overhead of 4 MiB" 4194304)
BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
BOARD_SUPER_PARTITION_GROUPS := amlogic_dynamic_partitions
BUILDING_SUPER_EMPTY_IMAGE := true
## Properties
TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop
## Recovery
TARGET_RECOVERY_DEVICE_DIRS += vendor/amlogic/g12-common/proprietary
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/init-files/fstab.amlogic
## Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH)/releasetools
## Updater
AB_OTA_UPDATER := false
## Vendor SPL
VENDOR_SECURITY_PATCH := 2024-07-01
## Include the main common tree BoardConfig makefile
include device/amlogic/common/BoardConfigAmlogic.mk
## Include the common proprietary BoardConfig makefile
include vendor/amlogic/g12-common/BoardConfigVendor.mk