#
-# Copyright (C) 2021-2022 The LineageOS Project
+# Copyright (C) 2021-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Init-Files
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/init-files/fstab.amlogic:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.amlogic \
$(LOCAL_PATH)/init-files/init.amlogic.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.rc \
$(LOCAL_PATH)/init-files/init.amlogic.board.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.board.rc \
$(LOCAL_PATH)/init-files/init.amlogic.media.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.media.rc \
$(LOCAL_PATH)/init-files/init.recovery.amlogic.rc:recovery/root/init.recovery.amlogic.rc \
$(LOCAL_PATH)/init-files/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc
+PRODUCT_PACKAGES += \
+ fstab.amlogic
+
## Kernel Modules
PRODUCT_PACKAGES += \
mali \
--- /dev/null
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := fstab.amlogic
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := ETC
+ifneq ($(TARGET_HAS_TEE),false)
+LOCAL_SRC_FILES := fstab.amlogic
+else
+LOCAL_SRC_FILES := fstab_no_avb.amlogic
+endif
+LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
+include $(BUILD_PREBUILT)
--- /dev/null
+## Dynamic partitions
+odm /odm ext4 ro,barrier=1,discard wait,logical,first_stage_mount
+product /product ext4 ro,barrier=1,discard wait,logical,first_stage_mount
+system /system ext4 ro,barrier=1,discard wait,logical,first_stage_mount
+system_ext /system_ext ext4 ro,barrier=1,discard wait,logical,first_stage_mount
+vendor /vendor ext4 ro,barrier=1,discard wait,logical,first_stage_mount
+
+## Block devices
+/dev/block/boot /boot emmc defaults recoveryonly
+/dev/block/dtbo /dtbo emmc defaults defaults
+/dev/block/cache /cache ext4 noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic wait,check,formattable
+/dev/block/data /data ext4 noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic wait,check,fileencryption=aes-256-xts:aes-256-cts:v1,quota,formattable,reservedsize=32M,checkpoint=block
+/dev/block/metadata /metadata ext4 noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic wait,check,formattable,first_stage_mount
+/dev/block/misc /misc emmc defaults defaults
+/dev/block/param /mnt/vendor/param ext4 noatime,nosuid,nodev,nodelalloc,nomblk_io_submit,errors=panic wait,check,quota,formattable
+/dev/block/recovery /recovery emmc defaults recoveryonly
+
+## Virtual devices
+/dev/block/loop auto loop defaults voldmanaged=loop:auto
+/dev/block/zram0 none swap defaults wait,zramsize=268435456
+
+## Removable devices
+/devices/*.sd*/mmc_host/sd* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
+/devices/*dwc3/xhci-hcd.0.auto/usb?/*/host*/target*/block/sd* auto auto defaults voldmanaged=usb:auto,encryptable=userdata
+/devices/*dwc3/xhci-hcd.0.auto/usb?/*/host*/target*/block/sr* auto auto defaults voldmanaged=sr0:auto,encryptable=userdata