mirror of
https://gitlab.com/qemu-project/seabios-hppa.git
synced 2025-10-30 07:48:43 +08:00
scripts: Allow encodeint.py to take integers in hex notation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user