]> xenbits.xensource.com Git - seabios.git/commitdiff
scripts: Allow encodeint.py to take integers in hex notation.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 18 Jan 2014 06:42:07 +0000 (01:42 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 22 Jan 2014 22:30:30 +0000 (17:30 -0500)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
scripts/encodeint.py

index 12be5fe62e1f4786cbc47f9264ca4b6c3b18d561..0d34aee071ffea8fd7b489cfae82fcc6e6528091 100755 (executable)
@@ -10,7 +10,7 @@ import struct
 
 def main():
     filename = sys.argv[1]
-    value = int(sys.argv[2])
+    value = int(sys.argv[2], 0)
 
     outval = struct.pack('<Q', value)
     f = open(filename, 'wb')