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

4
BoardConfigEvolution.mk Normal file
View file

@ -0,0 +1,4 @@
#
# SPDX-FileCopyrightText: 2024 The Evolution X Project
# SPDX-License-Identifier: Apache-2.0
#

6
device-evolution.mk Normal file
View file

@ -0,0 +1,6 @@
#
# SPDX-FileCopyrightText: 2024 The Evolution X Project
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay-evolution

View file

@ -17,9 +17,8 @@
TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT
TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_FELIX_VERSION) TARGET_LINUX_KERNEL_VERSION := $(RELEASE_KERNEL_FELIX_VERSION)
# Keeps flexibility for kasan and ufs builds TARGET_KERNEL_DIR := device/google/felix-kernels/evolution
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_FELIX_DIR) TARGET_BOARD_KERNEL_HEADERS := $(TARGET_KERNEL_DIR)/kernel-headers
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_FELIX_DIR)/kernel-headers
$(call inherit-product, device/google/felix/uwb/uwb_calibration_country.mk) $(call inherit-product, device/google/felix/uwb/uwb_calibration_country.mk)
@ -49,14 +48,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/felix/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.felix.rc 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 # Camera
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/felix/media_profiles_felix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml device/google/felix/media_profiles_felix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml

14
evolution.dependencies Normal file
View file

@ -0,0 +1,14 @@
[
{
"repository": "device_google_gs201",
"target_path": "device/google/gs201"
},
{
"repository": "device_google_felix-kernels_evolution",
"target_path": "device/google/felix-kernels/evolution"
},
{
"repository": "vendor_google_felix",
"target_path": "vendor/google/felix"
}
]

View file

@ -45,3 +45,4 @@ include device/google/felix/wifi/BoardConfig-wifi.mk
DEVICE_PATH := device/google/felix DEVICE_PATH := device/google/felix
VENDOR_PATH := vendor/google/felix VENDOR_PATH := vendor/google/felix
include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigLineage.mk include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigLineage.mk
include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigEvolution.mk

View file

@ -0,0 +1,6 @@
#
# SPDX-FileCopyrightText: 2024 The Evolution X Project
# SPDX-License-Identifier: Apache-2.0
#
include $(DEVICE_PATH)/BoardConfigEvolution.mk

View file

@ -0,0 +1,8 @@
#
# SPDX-FileCopyrightText: 2024 The Evolution X Project
# SPDX-License-Identifier: Apache-2.0
#
$(call inherit-product, $(DEVICE_PATH)/device-evolution.mk)
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-evolution

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2024 The Evolution X Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Android version screen, build maintainer -->
<string name="build_maintainer_summary" translatable="false">Anierin Bliss</string>
<string name="build_maintainer_donate_url" translatable="false">https://PayPal.me/AnierinB</string>
</resources>

View file

@ -13,6 +13,9 @@ product/etc/firmware/music_detector.sound_model
product/etc/firmware/music_detector.sound_model_2 product/etc/firmware/music_detector.sound_model_2
product/etc/firmware/music_detector.sound_model_tflite product/etc/firmware/music_detector.sound_model_tflite
# Camera
product/priv-app/GoogleCamera/GoogleCamera.apk;OVERRIDES=Aperture,Camera2;PRESIGNED
# Camera extensions # Camera extensions
product/etc/permissions/androidx.camera.extensions.impl.xml product/etc/permissions/androidx.camera.extensions.impl.xml
product/priv-app/PixelCameraServices/PixelCameraServices.apk;PRESIGNED product/priv-app/PixelCameraServices/PixelCameraServices.apk;PRESIGNED
@ -40,7 +43,7 @@ product/priv-app/HotwordEnrollmentXGoogleFUSIONPro/HotwordEnrollmentXGoogleFUSIO
product/etc/sysconfig/allowlist_com.shannon.imsservice.xml product/etc/sysconfig/allowlist_com.shannon.imsservice.xml
# Permissions # Permissions
product/etc/permissions/privapp-permissions-google-p.xml:product/etc/permissions/privapp-permissions-google-p-lineage.xml product/etc/permissions/privapp-permissions-google-p.xml:product/etc/permissions/privapp-permissions-google-p-evolution.xml
product/etc/sysconfig/GoogleCamera_6gb_or_more_ram.xml product/etc/sysconfig/GoogleCamera_6gb_or_more_ram.xml
product/etc/sysconfig/google-hiddenapi-package-whitelist.xml product/etc/sysconfig/google-hiddenapi-package-whitelist.xml
product/etc/sysconfig/nexus.xml product/etc/sysconfig/nexus.xml
@ -133,7 +136,7 @@ system_ext/priv-app/ShannonIms/ShannonIms.apk;PRESIGNED
system_ext/priv-app/ShannonRcs/ShannonRcs.apk;PRESIGNED system_ext/priv-app/ShannonRcs/ShannonRcs.apk;PRESIGNED
# Permissions # Permissions
system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-lineage.xml system_ext/etc/permissions/privapp-permissions-google-se.xml:system_ext/etc/permissions/privapp-permissions-google-se-evolution.xml
# Radio # Radio
system_ext/etc/default-permissions/default-permissions-euiccpixel.xml system_ext/etc/default-permissions/default-permissions-euiccpixel.xml

View file

@ -1,19 +0,0 @@
#######################################################
# init.insmod.felix.cfg #
# This file contains felix specific kernel modules to #
# load at init time by init.insmod.sh script #
#######################################################
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
modprobe|bcmdhd4389.ko
modprobe|snd-soc-cs35l41-i2c.ko
modprobe|fst2.ko
modprobe|ftm5.ko
modprobe|cs40l26-i2c.ko
modprobe|snd-soc-cs40l26.ko
# All device specific modules loaded
setprop|vendor.device.modules.ready
setprop|vendor.all.modules.ready
setprop|vendor.all.devices.ready

View file

@ -1,11 +0,0 @@
[
{
"repository": "android_device_google_gs201",
"target_path": "device/google/gs201"
},
{
"repository": "device/google/felix-kernels/6.1",
"target_path": "device/google/felix-kernels/6.1",
"remote": "aosp-felix"
}
]

View file

@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
# Inherit some common stuff # Inherit some common Evolution X stuff
TARGET_DISABLE_EPPE := true TARGET_DISABLE_EPPE := true
$(call inherit-product, vendor/lineage/config/common_full_foldable_book_telephony.mk) $(call inherit-product, vendor/lineage/config/common_full_foldable_book_telephony.mk)
@ -14,7 +14,9 @@ DEVICE_PATH := device/google/felix
VENDOR_PATH := vendor/google/felix VENDOR_PATH := vendor/google/felix
$(call inherit-product, $(DEVICE_PATH)/aosp_$(DEVICE_CODENAME).mk) $(call inherit-product, $(DEVICE_PATH)/aosp_$(DEVICE_CODENAME).mk)
$(call inherit-product, device/google/gs201/lineage_common.mk) $(call inherit-product, device/google/gs201/lineage_common.mk)
$(call inherit-product, device/google/gs201/evolution_common.mk)
$(call inherit-product, $(DEVICE_PATH)/$(DEVICE_CODENAME)/device-lineage.mk) $(call inherit-product, $(DEVICE_PATH)/$(DEVICE_CODENAME)/device-lineage.mk)
$(call inherit-product, $(DEVICE_PATH)/$(DEVICE_CODENAME)/device-evolution.mk)
# Device identifier. This must come after all inclusions # Device identifier. This must come after all inclusions
PRODUCT_BRAND := google PRODUCT_BRAND := google