Remove recovery kmods

Selinux is preventing loading kmods in recovery. Since boot and
recovery kernels are now separate, necessary drivers will be built
into the recovery kernel.

Change-Id: I75bab3f3bd03f7fe520af6992afd0b85979f2ede
This commit is contained in:
Aaron Kling committed 2021-10-06 20:18:13 -05:00
1 parent 4a17c282bc
commit a8b3adf2f5
5 files changed
-40

No files matched your search

-11
View File
@@ -39,17 +39,6 @@ $(INSTALLED_DTB_TARGETS): $(INSTALLED_KERNEL_TARGET) | $(ACP)
cp $(@F:%=$(KERNEL_OUT)/arch/arm64/boot/dts/%) $(PRODUCT_OUT)/install/
ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_DTB_TARGETS)
RECOVERY_KMOD_TARGETS := \
hid-jarvis-remote.ko \
hid-nvidia-blake.ko
INSTALLED_RECOVERY_KMOD_TARGETS := $(RECOVERY_KMOD_TARGETS:%=$(TARGET_RECOVERY_ROOT_OUT)/lib/modules/%)
$(INSTALLED_RECOVERY_KMOD_TARGETS): $(INSTALLED_KERNEL_TARGET)
echo -e ${CL_GRN}"Copying kernel modules to recovery"${CL_RST}
@mkdir -p $(dir $@)
cp $(@F:%=$(TARGET_OUT_VENDOR)/lib/modules/%) $(TARGET_RECOVERY_ROOT_OUT)/lib/modules/
$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_RECOVERY_KMOD_TARGETS)
endif
EKS_DAT_SYMLINK := $(TARGET_OUT_VENDOR)/app/eks2/eks2.dat
-1
View File
@@ -105,7 +105,6 @@ PRODUCT_PACKAGES += \
init.recovery.icosa_emmc.rc \
init.recovery.jetson_cv.rc \
init.recovery.jetson_e.rc \
init.recovery.lkm.rc \
init.recovery.loki_e_base.rc \
init.recovery.loki_e_lte.rc \
init.recovery.loki_e_wifi.rc \
-7
View File
@@ -370,13 +370,6 @@ endif
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.lkm.rc
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.recovery.lkm.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.foster_e_common.rc
LOCAL_MODULE_CLASS := ETC
-1
View File
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import init.recovery.lkm.rc
import init.recovery.xusb.configfs.usb.rc
import init.recovery.usb.configfs.rc
-20
View File
@@ -1,20 +0,0 @@
# Copyright (C) 2021 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
on boot
# Additional controller support
insmod /lib/modules/hid-nvidia-blake.ko
insmod /lib/modules/hid-jarvis-remote.ko
restorecon_recursive /sys