sm6225-common: Build vendor boot partition

with:
- DTB image
- first_stage_ramdisk fstab

Change-Id: I7cf72994a49b1b49ba7bf2079537697fb6fd20fa
This commit is contained in:
Dhina17 2022-12-31 17:49:50 +05:30
parent a6f1ade160
commit 7ba856aaeb
3 changed files with 18 additions and 1 deletions

View file

@ -24,9 +24,12 @@ TARGET_BOOTLOADER_BOARD_NAME := bengal
TARGET_NO_BOOTLOADER := true
# Kernel
BOARD_BOOT_HEADER_VERSION := 3
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x4a90000 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7
BOARD_KERNEL_PAGESIZE := 4096
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
TARGET_KERNEL_CONFIG := vendor/bengal_defconfig
TARGET_KERNEL_SOURCE := kernel/motorola/sm6225
@ -39,6 +42,7 @@ BOARD_USES_METADATA_PARTITION := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 98304000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 52983788000
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 98304000
BOARD_SUPER_PARTITION_SIZE := 7405568000
BOARD_SUPER_PARTITION_GROUPS := moto_dynamic_partitions

View file

@ -14,7 +14,8 @@ AB_OTA_PARTITIONS += \
product \
system \
system_ext \
vendor
vendor \
vendor_boot
PRODUCT_PACKAGES += \
update_engine \
@ -42,3 +43,7 @@ PRODUCT_SHIPPING_API_LEVEL := 31
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Vendor ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom_ramdisk:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom

View file

@ -0,0 +1,8 @@
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey,logical,first_stage_mount
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,nofail,first_stage_mount
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
product /product ext4 ro,barrier=1 wait,slotselect,avb,logical,nofail,first_stage_mount
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard wait,formattable,first_stage_mount,check