diff --git a/BoardConfigLineage.mk b/BoardConfigLineage.mk index eadedb9..27d7296 100644 --- a/BoardConfigLineage.mk +++ b/BoardConfigLineage.mk @@ -3,3 +3,9 @@ # SPDX-FileCopyrightText: 2021-2024 The Calyx Institute # SPDX-License-Identifier: Apache-2.0 # + +# Kernel modules +BOARD_VENDOR_RAMDISK_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist.vendor_boot +BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_RAW := $(strip $(shell cat $(DEVICE_PATH)/modules.load.vendor_boot)) +BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD += $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_RAW) +BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(addprefix $(KERNEL_MODULE_DIR)/, $(notdir $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD_RAW))) diff --git a/bluejay/Android.bp b/bluejay/Android.bp new file mode 100644 index 0000000..c5b7799 --- /dev/null +++ b/bluejay/Android.bp @@ -0,0 +1,11 @@ +// +// SPDX-FileCopyrightText: 2024 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +prebuilt_etc { + name: "init.recovery.bluejay.touch.rc", + src: "init.recovery.touch.rc", + sub_dir: "init", + recovery: true, +} diff --git a/bluejay/device-lineage.mk b/bluejay/device-lineage.mk index fd82a16..d4c9e10 100644 --- a/bluejay/device-lineage.mk +++ b/bluejay/device-lineage.mk @@ -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.bluejay.touch.rc diff --git a/bluejay/init.recovery.touch.rc b/bluejay/init.recovery.touch.rc new file mode 100644 index 0000000..56f6c90 --- /dev/null +++ b/bluejay/init.recovery.touch.rc @@ -0,0 +1,2 @@ +on init + insmod /lib/modules/ftm5.ko diff --git a/modules.blocklist.vendor_boot b/modules.blocklist.vendor_boot new file mode 100644 index 0000000..087dba4 --- /dev/null +++ b/modules.blocklist.vendor_boot @@ -0,0 +1 @@ +blocklist ftm5 diff --git a/modules.load.vendor_boot b/modules.load.vendor_boot new file mode 100644 index 0000000..6af7936 --- /dev/null +++ b/modules.load.vendor_boot @@ -0,0 +1 @@ +extra/ftm5.ko