summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Patil <sspatil@google.com>2018-05-21 14:52:58 -0700
committerSandeep Patil <sspatil@google.com>2018-05-21 14:54:26 -0700
commit2cd1da8ba987b5482c39f4fb9e49f05d4a1e1132 (patch)
tree9bc6bac68cee100dff3b317350becaff3365a3b5
parent672a34606145dc3d34ec8ee2f4853b9bddd293e3 (diff)
downloadhikey-android-o-mr1-iot-release-1.0.1.tar.gz
hikey: Enable dm-verity for system & vendorandroid-o-mr1-iot-release-1.0.1
Bug: 72722987 Test: Boots Change-Id: If8a862e3571c630032a266ea5ef3c1344dd9dd1d Signed-off-by: Sandeep Patil <sspatil@google.com>
-rw-r--r--hikey.mk7
-rw-r--r--hikey/fstab.hikey5
2 files changed, 9 insertions, 3 deletions
diff --git a/hikey.mk b/hikey.mk
index 0b32845c..14a2e928 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -1,6 +1,13 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, device/linaro/hikey/hikey-common.mk)
+#setup dm-verity configs
+PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/system
+PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor
+$(call inherit-product, build/target/product/verity.mk)
+PRODUCT_SUPPORTS_BOOT_SIGNER := false
+PRODUCT_SUPPORTS_VERITY_FEC := false
+
PRODUCT_NAME := hikey
PRODUCT_DEVICE := hikey
PRODUCT_BRAND := Android
diff --git a/hikey/fstab.hikey b/hikey/fstab.hikey
index 35eee26a..e70b2c6e 100644
--- a/hikey/fstab.hikey
+++ b/hikey/fstab.hikey
@@ -3,9 +3,8 @@
# 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
-/dev/block/platform/soc/f723d000.dwmmc0/by-name/system /system ext4 ro wait
-/dev/block/platform/soc/f723d000.dwmmc0/by-name/system /system squashfs ro wait
-/dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor /vendor ext4 ro wait
+/dev/block/platform/soc/f723d000.dwmmc0/by-name/system /system ext4 ro wait,verify
+/dev/block/platform/soc/f723d000.dwmmc0/by-name/vendor /vendor ext4 ro wait,verify
/dev/block/platform/soc/f723d000.dwmmc0/by-name/cache /cache ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait
/dev/block/platform/soc/f723d000.dwmmc0/by-name/userdata /data f2fs discard,noatime,nosuid,nodev wait,check,fileencryption=software,quota
/dev/block/platform/soc/f723d000.dwmmc0/by-name/userdata /data ext4 discard,noatime,noauto_da_alloc,data=ordered,user_xattr,barrier=1 wait,formattable