pantah: Copy touch modules to vendor_kernel_boot
Makes touch work in recovery Co-authored-by: LuK1337 <priv.luk@gmail.com> Change-Id: Iaa5a158af827732b13ab79b60bed2f319ce56391
This commit is contained in:
@@ -3,3 +3,9 @@
|
||||
# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Kernel modules
|
||||
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist.vendor_kernel_boot
|
||||
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW := $(strip $(shell cat $(DEVICE_PATH)/modules.load.vendor_kernel_boot))
|
||||
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD += $(BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW)
|
||||
BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES += $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES_LOAD_RAW)))
|
||||
|
||||
11
cheetah/Android.bp
Normal file
11
cheetah/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.recovery.cheetah.touch.rc",
|
||||
src: "init.recovery.touch.rc",
|
||||
sub_dir: "init",
|
||||
recovery: true,
|
||||
}
|
||||
@@ -7,3 +7,7 @@
|
||||
$(call inherit-product, $(DEVICE_PATH)/device-lineage.mk)
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage
|
||||
|
||||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
init.recovery.cheetah.touch.rc
|
||||
|
||||
2
cheetah/init.recovery.touch.rc
Normal file
2
cheetah/init.recovery.touch.rc
Normal file
@@ -0,0 +1,2 @@
|
||||
on init
|
||||
insmod /lib/modules/syna_touch.ko
|
||||
2
modules.blocklist.vendor_kernel_boot
Normal file
2
modules.blocklist.vendor_kernel_boot
Normal file
@@ -0,0 +1,2 @@
|
||||
blocklist focal_touch.ko
|
||||
blocklist syna_touch.ko
|
||||
2
modules.load.vendor_kernel_boot
Normal file
2
modules.load.vendor_kernel_boot
Normal file
@@ -0,0 +1,2 @@
|
||||
extra/focal_touch.ko
|
||||
extra/syna_touch.ko
|
||||
11
panther/Android.bp
Normal file
11
panther/Android.bp
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.recovery.panther.touch.rc",
|
||||
src: "init.recovery.touch.rc",
|
||||
sub_dir: "init",
|
||||
recovery: true,
|
||||
}
|
||||
@@ -11,3 +11,7 @@ DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage
|
||||
# HBM
|
||||
PRODUCT_PACKAGES += \
|
||||
HbmSVManagerOverlayPanther
|
||||
|
||||
# Init
|
||||
PRODUCT_PACKAGES += \
|
||||
init.recovery.panther.touch.rc
|
||||
|
||||
2
panther/init.recovery.touch.rc
Normal file
2
panther/init.recovery.touch.rc
Normal file
@@ -0,0 +1,2 @@
|
||||
on init
|
||||
insmod /lib/modules/focal_touch.ko
|
||||
Reference in New Issue
Block a user