diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-09 06:36:19 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 17:58:17 +0300 |
commit | 6a4ccad8e0cb42d53ff7016c1d9cd53b87e4347a (patch) | |
tree | 11ef9a187ed15da8fe6904ba62a7aaf53b03b814 /tools/binman | |
parent | fc0056e8d5ab62adc17455c99864d9a974633a46 (diff) | |
download | u-boot-6a4ccad8e0cb42d53ff7016c1d9cd53b87e4347a.tar.xz |
patman: Drop tools.ToByte()
This is not needed in Python 3. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman')
-rw-r--r-- | tools/binman/elf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/elf.py b/tools/binman/elf.py index 5e566e56cb..249074a334 100644 --- a/tools/binman/elf.py +++ b/tools/binman/elf.py @@ -158,9 +158,9 @@ def MakeElf(elf_fname, text, data): # Spilt the text into two parts so that we can make the entry point two # bytes after the start of the text section - text_bytes1 = ['\t.byte\t%#x' % tools.ToByte(byte) for byte in text[:2]] - text_bytes2 = ['\t.byte\t%#x' % tools.ToByte(byte) for byte in text[2:]] - data_bytes = ['\t.byte\t%#x' % tools.ToByte(byte) for byte in data] + text_bytes1 = ['\t.byte\t%#x' % byte for byte in text[:2]] + text_bytes2 = ['\t.byte\t%#x' % byte for byte in text[2:]] + data_bytes = ['\t.byte\t%#x' % byte for byte in data] with open(s_file, 'w') as fd: print('''/* Auto-generated C program to produce an ELF file for testing */ |