Add delta support to images generated by the dev server.

Change-Id: Ib363d73481da6664a398016b4bbb7eb11f0be7c7

BUG=6912
TEST=Ran it with/without a src_image with http://codereview.chromium.org/4147002/show and using image_to_live

Review URL: http://codereview.chromium.org/4129005
diff --git a/autoupdate.py b/autoupdate.py
index b997ca3..351b451 100644
--- a/autoupdate.py
+++ b/autoupdate.py
@@ -31,7 +31,7 @@
 
   def __init__(self, serve_only=None, test_image=False, urlbase=None,
                factory_config_path=None, client_prefix=None, forced_image=None,
-               use_cached=False, port=8080, *args, **kwargs):
+               use_cached=False, port=8080, src_image='', *args, **kwargs):
     super(Autoupdate, self).__init__(*args, **kwargs)
     self.serve_only = serve_only
     self.factory_config = factory_config_path
@@ -44,6 +44,7 @@
     self.client_prefix = client_prefix
     self.forced_image = forced_image
     self.use_cached = use_cached
+    self.src_image = src_image
 
   def _GetSecondsSinceMidnight(self):
     """Returns the seconds since midnight as a decimal value."""
@@ -220,8 +221,11 @@
     _LogMessage('Generating update image %s' % update_path)
 
     mkupdate_command = (
-        '%s/cros_generate_update_payload --image=%s --output=%s '
-        '--patch_kernel' % (self.scripts_dir, image_path, update_path))
+        '%s/cros_generate_update_payload --image="%s" --output="%s" '
+        '--patch_kernel --noold_style --src_image="%s"' % (
+                                          self.scripts_dir, image_path,
+                                          update_path, self.src_image))
+    _LogMessage(mkupdate_command)
     if os.system(mkupdate_command) != 0:
       _LogMessage('Failed to create base update file')
       return None