Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
violet: Add system_ext, product and odm partitions
Browse files Browse the repository at this point in the history
Change-Id: I0143ab82569034cea684fc2f0b066bf6eb774a48
  • Loading branch information
me-cafebabe authored and Joker-V2 committed Mar 3, 2024
1 parent bbdd7e6 commit 2177c68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ BOARD_DTBOIMG_PARTITION_SIZE := 0x0800000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_USERDATAIMAGE_PARTITION_SIZE := 57453555712

BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
PRODUCT_FS_COMPRESSION := 1

Expand All @@ -155,11 +158,14 @@ BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE := 3758096384
BOARD_SUPER_PARTITION_SIZE := $(shell expr $(BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE) + $(BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE) )
BOARD_SUPER_PARTITION_GROUPS := violet_dynamic_partitions
BOARD_VIOLET_DYNAMIC_PARTITIONS_SIZE := $(shell expr $(BOARD_SUPER_PARTITION_SIZE) - 4194304 )
BOARD_VIOLET_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor
BOARD_VIOLET_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor

TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true

TARGET_COPY_OUT_ODM := odm
TARGET_COPY_OUT_PRODUCT := product
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
TARGET_COPY_OUT_VENDOR := vendor

# Properties
Expand Down
3 changes: 3 additions & 0 deletions rootdir/etc/fstab.qcom
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
system /system ext4 ro,barrier=1,discard,i_version wait,logical,first_stage_mount,readahead_size_kb=128
system_ext /system_ext ext4 ro,barrier=1 wait,logical,first_stage_mount,readahead_size_kb=128
product /product ext4 ro,barrier=1 wait,logical,first_stage_mount,readahead_size_kb=128
vendor /vendor ext4 ro,barrier=1 wait,logical,first_stage_mount,readahead_size_kb=128
odm /odm ext4 ro,barrier=1 wait,logical,first_stage_mount,readahead_size_kb=128
/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
Expand Down

0 comments on commit 2177c68

Please sign in to comment.