summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArtefvck 07 <artefvck07@gmail.com>2016-02-04 09:37:15 -0800
committerartefvck <artefvck07@gmail.com>2016-02-20 09:54:43 -0800
commitc34b558c9b6d31e1632e673e4734dc7a80643b61 (patch)
treeea52fcec1eba0e153a06dfe47dd9afba9182db56 /tools
parent01da99759fbdb950338883d7d2f5fb2bf0dcc423 (diff)
downloadbuild-c34b558c9b6d31e1632e673e4734dc7a80643b61.zip
build-c34b558c9b6d31e1632e673e4734dc7a80643b61.tar.gz
build-c34b558c9b6d31e1632e673e4734dc7a80643b61.tar.bz2
releasetool: add OSIP partitions specifics
- Declare OSIP as a new partition type - Standard boot.img update is not possible for OSIP partitions We are simply removing it on AOSP handling, and let the board handle it in its own releasetool.py Change-Id: Ie19fc3f6a0ca42e2eda264904b20fceeddbeaf53
Diffstat (limited to 'tools')
-rw-r--r--tools/releasetools/common.py5
-rw-r--r--tools/releasetools/edify_generator.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index 4f8db79..cd35023 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -1402,7 +1402,8 @@ PARTITION_TYPES = {
"squashfs": "EMMC",
"ext2": "EMMC",
"ext3": "EMMC",
- "vfat": "EMMC"
+ "vfat": "EMMC",
+ "osip": "OSIP"
}
def GetTypeAndDevice(mount_point, info):
@@ -1503,4 +1504,4 @@ fi
except (OSError, IOError) as e:
print("failed to read init.rc: %s" % e)
- output_sink(sh_location, sh)
+ output_sink(sh_location, sh) \ No newline at end of file
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py
index 80b8a44..825a7eb 100644
--- a/tools/releasetools/edify_generator.py
+++ b/tools/releasetools/edify_generator.py
@@ -323,6 +323,10 @@ class EdifyGenerator(object):
self.script.append(
'write_raw_image(package_extract_file("%(fn)s"), "%(device)s");'
% args)
+ elif partition_type == "OSIP":
+ self.script.append(
+ 'write_osip_image(package_extract_file("%(fn)s"), "%(device)s");'
+ % args)
elif partition_type == "EMMC":
if mapfn:
args["map"] = mapfn