hikey: Allow FS of system.img to be SquashFS

make -j32 TARGET_SYSTEMIMAGES_USE_SQUASHFS=true

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/BoardConfig.mk b/BoardConfig.mk
index b4485bb..16a3835 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -46,3 +46,9 @@
 TARGET_USE_PAN_DISPLAY := true
 
 BOARD_SEPOLICY_DIRS := device/linaro/hikey/sepolicy
+
+ifeq ($(HOST_OS), linux)
+ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
+BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := squashfs
+endif
+endif
diff --git a/fstab.hikey b/fstab.hikey
index d16c02e..ceab636 100644
--- a/fstab.hikey
+++ b/fstab.hikey
@@ -4,6 +4,7 @@
 # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
 
 /dev/block/platform/f723d000.dwmmc0/by-name/system      /system             ext4      ro                                                                   wait
+/dev/block/platform/f723d000.dwmmc0/by-name/system      /system             squashfs  ro                                                                   wait
 /dev/block/platform/f723d000.dwmmc0/by-name/cache       /cache              ext4      discard,noauto_da_alloc,data=ordered,user_xattr,discard,barrier=1    wait
 /dev/block/platform/f723d000.dwmmc0/by-name/userdata    /data               ext4      discard,noauto_da_alloc,data=ordered,user_xattr,discard,barrier=1    wait
 /devices/platform/f723e000.dwmmc1/mmc_host/mmc*                   auto               auto      defaults  voldmanaged=sdcard1:auto,encryptable=userdata