OSDN Git Service

releasetool: add OSIP partitions specifics
authorArtefvck 07 <artefvck07@gmail.com>
Thu, 4 Feb 2016 17:37:15 +0000 (09:37 -0800)
committerMichael Bestas <mikeioannina@gmail.com>
Fri, 6 Jan 2017 23:37:37 +0000 (01:37 +0200)
- 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

tools/releasetools/common.py
tools/releasetools/edify_generator.py

index 48e9c10..3a9588a 100644 (file)
@@ -1674,7 +1674,8 @@ PARTITION_TYPES = {
     "squashfs": "EMMC",
     "ext2": "EMMC",
     "ext3": "EMMC",
-    "vfat": "EMMC"
+    "vfat": "EMMC",
+    "osip": "OSIP"
 }
 
 def GetTypeAndDevice(mount_point, info):
@@ -1804,4 +1805,4 @@ fi
 
   print "putting script in", sh_location
 
-  output_sink(sh_location, sh)
+  output_sink(sh_location, sh)
\ No newline at end of file
index 3390f1c..cc1a7e6 100644 (file)
@@ -352,6 +352,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