summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/common.py
diff options
context:
space:
mode:
authorMohamad Ayyash <mkayyash@google.com>2015-05-01 15:39:36 -0700
committerSimon Wilson <simonwilson@google.com>2015-06-16 13:18:44 -0700
commit1b748051dd160fbf16ea5875583c309f0790594d (patch)
tree081501a176645ef85b421b462343e2c399c4196d /tools/releasetools/common.py
parentcade49ddee44287d1bd5e9688558daf8912f0f9b (diff)
downloadbuild-1b748051dd160fbf16ea5875583c309f0790594d.zip
build-1b748051dd160fbf16ea5875583c309f0790594d.tar.gz
build-1b748051dd160fbf16ea5875583c309f0790594d.tar.bz2
common.py: Add support for squashfs
Change-Id: Ia40f8c6307d0213d43207aee91c4c8a5b5ad6f1e Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Diffstat (limited to 'tools/releasetools/common.py')
-rw-r--r--tools/releasetools/common.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index a596c26..3c1575b 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -1115,9 +1115,14 @@ DataImage = blockimgdiff.DataImage
# map recovery.fstab's fs_types to mount/format "partition types"
-PARTITION_TYPES = { "yaffs2": "MTD", "mtd": "MTD",
- "ext4": "EMMC", "emmc": "EMMC",
- "f2fs": "EMMC" }
+PARTITION_TYPES = {
+ "yaffs2": "MTD",
+ "mtd": "MTD",
+ "ext4": "EMMC",
+ "emmc": "EMMC",
+ "f2fs": "EMMC",
+ "squashfs": "EMMC"
+}
def GetTypeAndDevice(mount_point, info):
fstab = info["fstab"]