wayne: Remove unused A/B partition configs
Change-Id: I1766360677602c3ae86d0ad38ef795df060198e2 Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
This commit is contained in:
parent
69360569e1
commit
f80468f88d
6 changed files with 2 additions and 133 deletions
|
@ -65,11 +65,7 @@ include $(CLEAR_VARS)
|
|||
LOCAL_MODULE := fstab.qcom
|
||||
LOCAL_MODULE_TAGS := optional eng
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
ifeq ($(ENABLE_AB), true)
|
||||
LOCAL_SRC_FILES := fstab_AB_variant.qcom
|
||||
else
|
||||
LOCAL_SRC_FILES := fstab_non_AB_variant.qcom
|
||||
endif
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
|
|
|
@ -36,35 +36,15 @@ BOARD_USE_LEGACY_UI := true
|
|||
TARGET_USERIMAGES_USE_EXT4 := true
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
|
||||
|
||||
ifeq ($(ENABLE_AB), true)
|
||||
#A/B related defines
|
||||
AB_OTA_UPDATER := true
|
||||
# Full A/B partiton update set
|
||||
# AB_OTA_PARTITIONS := xbl rpm tz hyp pmic modem abl boot keymaster cmnlib cmnlib64 system bluetooth
|
||||
# Subset A/B partitions for Android-only image update
|
||||
AB_OTA_PARTITIONS ?= boot system
|
||||
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|
||||
TARGET_NO_RECOVERY := true
|
||||
BOARD_USES_RECOVERY_AS_BOOT := true
|
||||
else
|
||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x04000000
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
|
||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
#TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_msm
|
||||
endif
|
||||
|
||||
ifeq ($(ENABLE_AB), true)
|
||||
ifeq ($(ENABLE_VENDOR_IMAGE), true)
|
||||
TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_AB_split_variant.fstab
|
||||
else
|
||||
TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_AB_non-split_variant.fstab
|
||||
endif
|
||||
else
|
||||
ifeq ($(ENABLE_VENDOR_IMAGE), true)
|
||||
ifeq ($(ENABLE_VENDOR_IMAGE), true)
|
||||
TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_non-AB_split_variant.fstab
|
||||
else
|
||||
else
|
||||
TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_non-AB_non-split_variant.fstab
|
||||
endif
|
||||
endif
|
||||
|
||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
# Android fstab file.
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
#TODO: Add 'check' as fs_mgr_flags with data partition.
|
||||
# Currently we dont have e2fsck compiled. So fs check would failed.
|
||||
|
||||
# A/B fstab.qcom variant
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,slotselect,verify
|
||||
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,noatime,lazytime wait,check,forceencrypt=footer,crashcheck,quota
|
||||
/devices/soc/c084000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
|
||||
/dev/block/bootdevice/by-name/bluetooth /bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait,slotselect
|
||||
/devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto
|
||||
/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect
|
|
@ -1,36 +0,0 @@
|
|||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# A/B, non-split(no vendor.img) recovery.fstab variant.
|
||||
|
||||
#device mount point fstype [device2] [length=]
|
||||
|
||||
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect,verify
|
||||
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check,encryptable=footer
|
||||
/dev/block/mmcblk1p1 /sdcard vfat nosuid,nodev wait
|
||||
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
|
@ -1,37 +0,0 @@
|
|||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# A/B, split(with vendor.img) recovery.fstab variant.
|
||||
|
||||
#device mount point fstype [device2] [length=]
|
||||
|
||||
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1 wait,slotselect,verify
|
||||
/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,slotselect,verify
|
||||
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check,encryptable=footer
|
||||
/dev/block/mmcblk1p1 /sdcard vfat nosuid,nodev wait
|
||||
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
17
sdm660_64.mk
17
sdm660_64.mk
|
@ -7,9 +7,6 @@ ifeq ($(ENABLE_VENDOR_IMAGE),)
|
|||
ENABLE_VENDOR_IMAGE := true
|
||||
endif
|
||||
|
||||
# Default A/B configuration.
|
||||
ENABLE_AB ?= true
|
||||
|
||||
# Disable QTIC until it's brought up in split system/vendor
|
||||
# configuration to avoid compilation breakage.
|
||||
ifeq ($(ENABLE_VENDOR_IMAGE), true)
|
||||
|
@ -265,20 +262,6 @@ PRODUCT_PACKAGES += \
|
|||
wificond \
|
||||
wifilogd
|
||||
|
||||
ifeq ($(ENABLE_AB), true)
|
||||
#A/B related packages
|
||||
PRODUCT_PACKAGES += update_engine \
|
||||
update_engine_client \
|
||||
update_verifier \
|
||||
bootctrl.sdm660 \
|
||||
brillo_update_payload \
|
||||
android.hardware.boot@1.0-impl \
|
||||
android.hardware.boot@1.0-service
|
||||
|
||||
#Boot control HAL test app
|
||||
PRODUCT_PACKAGES_DEBUG += bootctl
|
||||
endif
|
||||
|
||||
#Healthd packages
|
||||
PRODUCT_PACKAGES += android.hardware.health@1.0-impl \
|
||||
android.hardware.health@1.0-convert \
|
||||
|
|
Loading…
Reference in a new issue