diff options
author | Alex Deymo <deymo@chromium.org> | 2015-06-11 13:51:46 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-13 02:53:27 +0000 |
commit | cf6f30dd7ef1db9955f2e318c0e47ee00271f358 (patch) | |
tree | 39e768d51cbfa0e5d2e6f201d2fed0e8709825b6 /scripts/update_payload/common.py | |
parent | b065e13f600d0efc7f089a382611ffd93a8afce9 (diff) |
update_payload: Remove ctypes dependency.
ctypes requires libffi.so to be installed in the system, but old
test_images don't have it, preventing "cros flash" to work there.
This patch removes the need for ctypes from common.py so cros flash
can work.
BUG=None
TEST=cros flash from R29 on link.
Change-Id: Idd0732660780081c26375a5214167b53f625e3ed
Reviewed-on: https://chromium-review.googlesource.com/277070
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'scripts/update_payload/common.py')
-rw-r--r-- | scripts/update_payload/common.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/update_payload/common.py b/scripts/update_payload/common.py index 573fda40..e8c7c766 100644 --- a/scripts/update_payload/common.py +++ b/scripts/update_payload/common.py @@ -6,8 +6,6 @@ from __future__ import print_function -import ctypes - from error import PayloadError import update_metadata_pb2 @@ -15,7 +13,7 @@ import update_metadata_pb2 # # Constants. # -PSEUDO_EXTENT_MARKER = ctypes.c_uint64(-1).value +PSEUDO_EXTENT_MARKER = (1L << 64) - 1 # UINT64_MAX SIG_ASN1_HEADER = ( '\x30\x31\x30\x0d\x06\x09\x60\x86' |