summaryrefslogtreecommitdiff
path: root/util/exynos/variable_cksum.py
diff options
context:
space:
mode:
Diffstat (limited to 'util/exynos/variable_cksum.py')
-rwxr-xr-xutil/exynos/variable_cksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/exynos/variable_cksum.py b/util/exynos/variable_cksum.py
index 62a76cc045..4321f8e53c 100755
--- a/util/exynos/variable_cksum.py
+++ b/util/exynos/variable_cksum.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
#
# SPDX-License-Identifier: BSD-3-Clause
@@ -27,7 +27,7 @@ def main(argv):
data = in_file.read()
header = struct.pack(header_format,
struct.calcsize(header_format) + len(data),
- sum(map(ord, data)),
+ sum(data),
0, 0)
out_file.write(header + data)