felix: Initialize for Evolution X 11.x

Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
AnierinB 2024-04-22 13:54:00 -07:00
parent 81048a1035
commit b1ff5c8bbf
12 changed files with 61 additions and 44 deletions

View file

@ -17,9 +17,8 @@
TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_FELIX_VERSION)
# Keeps flexibility for kasan and ufs builds
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_FELIX_DIR)
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_FELIX_DIR)/kernel-headers
TARGET_KERNEL_DIR := device/google/felix-kernels/evolution
TARGET_BOARD_KERNEL_HEADERS := $(TARGET_KERNEL_DIR)/kernel-headers
$(call inherit-product, device/google/felix/uwb/uwb_calibration_country.mk)
@ -49,14 +48,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
device/google/felix/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.felix.rc
# insmod files. Kernel 5.10 prebuilts don't provide these yet, so provide our
# own copy if they're not in the prebuilts.
# TODO(b/369686096): drop this when 5.10 is gone.
ifeq ($(wildcard $(TARGET_KERNEL_DIR)/init.insmod.*.cfg),)
PRODUCT_COPY_FILES += \
device/google/felix/init.insmod.felix.cfg:$(TARGET_COPY_OUT_VENDOR_DLKM)/etc/init.insmod.felix.cfg
endif
# Camera
PRODUCT_COPY_FILES += \
device/google/felix/media_profiles_felix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml