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

Commit

Permalink
violet: Add cust to super partition devices
Browse files Browse the repository at this point in the history
Change-Id: I3c0d88054d3ba09e4f0dc4cded4d63938bc44cf1
  • Loading branch information
ArianK16a authored and Joker-V2 committed Mar 3, 2024
1 parent 2177c68 commit 64e1632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ BOARD_USES_METADATA_PARTITION := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 32)

BOARD_SUPER_PARTITION_BLOCK_DEVICES := vendor system
BOARD_SUPER_PARTITION_BLOCK_DEVICES := cust vendor system
BOARD_SUPER_PARTITION_METADATA_DEVICE := system
BOARD_SUPER_PARTITION_CUST_DEVICE_SIZE := 872415232
BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE := 2147483648
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_SIZE := $(shell expr $(BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE) + $(BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE) + $(BOARD_SUPER_PARTITION_CUST_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 := odm product system system_ext vendor
Expand Down
1 change: 1 addition & 0 deletions sepolicy/vendor/file_contexts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Block devices
/dev/block/platform/soc/7c4000\.sdhci/by-name/cust u:object_r:system_block_device:s0
/dev/block/platform/soc/7c4000\.sdhci/by-name/vendor u:object_r:system_block_device:s0
/dev/block/platform/soc/7c4000\.sdhci/by-name/system u:object_r:system_block_device:s0

Expand Down

0 comments on commit 64e1632

Please sign in to comment.