berlin: Replace AndroidBoard.mk modules copy with BOOT_KERNEL_MODULES

Hacky copy rules were prone to fail because of some kind of race
condition.

Change-Id: I30d50a9dd87de9d57a583968f9936b84ac16cfca
This commit is contained in:
LuK1337
2022-03-25 20:58:27 +01:00
committed by SGCMarkus
parent 7e34a1ec24
commit 0c19abc894
3 changed files with 11 additions and 35 deletions

View File

@@ -31,6 +31,10 @@ DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
# Kernel
TARGET_KERNEL_CONFIG += vendor/lineage_berlin.config
# Kernel Modules
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
BOOT_KERNEL_MODULES := $(BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD)
# Partitions
BOARD_USERDATAIMAGE_PARTITION_SIZE := 102247673856
ifneq ($(WITH_GMS),true)