summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Chen <isaacchen@isaacchen.cn>2018-06-30 19:35:43 +0800
committerIsaac Chen <isaacchen@isaacchen.cn>2018-07-03 22:11:27 +0800
commitf80468f88d7c92347dc54b8ac29ccd9d9b66bdca (patch)
tree3c0df4b6b1354cebe4f7ff91aca4b4c2cc53080b
parent69360569e1011bdd330b43188f78d04edb4dca8c (diff)
wayne: Remove unused A/B partition configs
Change-Id: I1766360677602c3ae86d0ad38ef795df060198e2 Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
-rwxr-xr-xAndroidBoard.mk4
-rwxr-xr-xBoardConfig.mk24
-rwxr-xr-xfstab_AB_variant.qcom17
-rwxr-xr-xrecovery_AB_non-split_variant.fstab36
-rwxr-xr-xrecovery_AB_split_variant.fstab37
-rw-r--r--sdm660_64.mk17
6 files changed, 2 insertions, 133 deletions
diff --git a/AndroidBoard.mk b/AndroidBoard.mk
index 862fdd0..bdd1dc5 100755
--- a/AndroidBoard.mk
+++ b/AndroidBoard.mk
@@ -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)
diff --git a/BoardConfig.mk b/BoardConfig.mk
index c293b85..c7df59e 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -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
diff --git a/fstab_AB_variant.qcom b/fstab_AB_variant.qcom
deleted file mode 100755
index 949e57b..0000000
--- a/fstab_AB_variant.qcom
+++ /dev/null
@@ -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
diff --git a/recovery_AB_non-split_variant.fstab b/recovery_AB_non-split_variant.fstab
deleted file mode 100755
index 874a81a..0000000
--- a/recovery_AB_non-split_variant.fstab
+++ /dev/null
@@ -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
diff --git a/recovery_AB_split_variant.fstab b/recovery_AB_split_variant.fstab
deleted file mode 100755
index 7998fa7..0000000
--- a/recovery_AB_split_variant.fstab
+++ /dev/null
@@ -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
diff --git a/sdm660_64.mk b/sdm660_64.mk
index 2e63e9d..d61a691 100644
--- a/sdm660_64.mk
+++ b/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 \