diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Drop-binary-parameter.patch')
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Drop-binary-parameter.patch | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Drop-binary-parameter.patch b/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Drop-binary-parameter.patch deleted file mode 100644 index cee88472b..000000000 --- a/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Drop-binary-parameter.patch +++ /dev/null | |||
| @@ -1,105 +0,0 @@ | |||
| 1 | From 3b1c0b09c99bfd30355a6ba87a15e9d408a51109 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Simon Glass <sjg@chromium.org> | ||
| 3 | Date: Sat, 24 Aug 2019 07:22:41 -0600 | ||
| 4 | Subject: [PATCH] patman: Drop binary parameter | ||
| 5 | |||
| 6 | Since cros_subprocess use bytestrings now, this feature not needed. Drop | ||
| 7 | it. | ||
| 8 | |||
| 9 | Upstream-Status: Backport | ||
| 10 | |||
| 11 | Signed-off-by: Simon Glass <sjg@chromium.org> | ||
| 12 | --- | ||
| 13 | tools/patman/cros_subprocess.py | 3 +-- | ||
| 14 | tools/patman/tools.py | 15 +++++++-------- | ||
| 15 | 2 files changed, 8 insertions(+), 10 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/tools/patman/cros_subprocess.py b/tools/patman/cros_subprocess.py | ||
| 18 | index 06be64cc2c..0f0d60dfb7 100644 | ||
| 19 | --- a/tools/patman/cros_subprocess.py | ||
| 20 | +++ b/tools/patman/cros_subprocess.py | ||
| 21 | @@ -54,7 +54,7 @@ class Popen(subprocess.Popen): | ||
| 22 | """ | ||
| 23 | |||
| 24 | def __init__(self, args, stdin=None, stdout=PIPE_PTY, stderr=PIPE_PTY, | ||
| 25 | - shell=False, cwd=None, env=None, binary=False, **kwargs): | ||
| 26 | + shell=False, cwd=None, env=None, **kwargs): | ||
| 27 | """Cut-down constructor | ||
| 28 | |||
| 29 | Args: | ||
| 30 | @@ -72,7 +72,6 @@ class Popen(subprocess.Popen): | ||
| 31 | """ | ||
| 32 | stdout_pty = None | ||
| 33 | stderr_pty = None | ||
| 34 | - self.binary = binary | ||
| 35 | |||
| 36 | if stdout == PIPE_PTY: | ||
| 37 | stdout_pty = pty.openpty() | ||
| 38 | diff --git a/tools/patman/tools.py b/tools/patman/tools.py | ||
| 39 | index 0d4705db76..97441ca796 100644 | ||
| 40 | --- a/tools/patman/tools.py | ||
| 41 | +++ b/tools/patman/tools.py | ||
| 42 | @@ -186,7 +186,7 @@ def PathHasFile(path_spec, fname): | ||
| 43 | return True | ||
| 44 | return False | ||
| 45 | |||
| 46 | -def Run(name, *args, **kwargs): | ||
| 47 | +def Run(name, *args): | ||
| 48 | """Run a tool with some arguments | ||
| 49 | |||
| 50 | This runs a 'tool', which is a program used by binman to process files and | ||
| 51 | @@ -196,7 +196,6 @@ def Run(name, *args, **kwargs): | ||
| 52 | Args: | ||
| 53 | name: Command name to run | ||
| 54 | args: Arguments to the tool | ||
| 55 | - kwargs: Options to pass to command.run() | ||
| 56 | |||
| 57 | Returns: | ||
| 58 | CommandResult object | ||
| 59 | @@ -206,8 +205,8 @@ def Run(name, *args, **kwargs): | ||
| 60 | if tool_search_paths: | ||
| 61 | env = dict(os.environ) | ||
| 62 | env['PATH'] = ':'.join(tool_search_paths) + ':' + env['PATH'] | ||
| 63 | - return command.Run(name, *args, capture=True, | ||
| 64 | - capture_stderr=True, env=env, **kwargs) | ||
| 65 | + return command.Run(name, *args, capture=True, capture_stderr=True, | ||
| 66 | + env=env) | ||
| 67 | except: | ||
| 68 | if env and not PathHasFile(env['PATH'], name): | ||
| 69 | msg = "Please install tool '%s'" % name | ||
| 70 | @@ -401,14 +400,14 @@ def Compress(indata, algo, with_header=True): | ||
| 71 | fname = GetOutputFilename('%s.comp.tmp' % algo) | ||
| 72 | WriteFile(fname, indata) | ||
| 73 | if algo == 'lz4': | ||
| 74 | - data = Run('lz4', '--no-frame-crc', '-c', fname, binary=True) | ||
| 75 | + data = Run('lz4', '--no-frame-crc', '-c', fname) | ||
| 76 | # cbfstool uses a very old version of lzma | ||
| 77 | elif algo == 'lzma': | ||
| 78 | outfname = GetOutputFilename('%s.comp.otmp' % algo) | ||
| 79 | Run('lzma_alone', 'e', fname, outfname, '-lc1', '-lp0', '-pb0', '-d8') | ||
| 80 | data = ReadFile(outfname) | ||
| 81 | elif algo == 'gzip': | ||
| 82 | - data = Run('gzip', '-c', fname, binary=True) | ||
| 83 | + data = Run('gzip', '-c', fname) | ||
| 84 | else: | ||
| 85 | raise ValueError("Unknown algorithm '%s'" % algo) | ||
| 86 | if with_header: | ||
| 87 | @@ -441,13 +440,13 @@ def Decompress(indata, algo, with_header=True): | ||
| 88 | with open(fname, 'wb') as fd: | ||
| 89 | fd.write(indata) | ||
| 90 | if algo == 'lz4': | ||
| 91 | - data = Run('lz4', '-dc', fname, binary=True) | ||
| 92 | + data = Run('lz4', '-dc', fname) | ||
| 93 | elif algo == 'lzma': | ||
| 94 | outfname = GetOutputFilename('%s.decomp.otmp' % algo) | ||
| 95 | Run('lzma_alone', 'd', fname, outfname) | ||
| 96 | data = ReadFile(outfname) | ||
| 97 | elif algo == 'gzip': | ||
| 98 | - data = Run('gzip', '-cd', fname, binary=True) | ||
| 99 | + data = Run('gzip', '-cd', fname) | ||
| 100 | else: | ||
| 101 | raise ValueError("Unknown algorithm '%s'" % algo) | ||
| 102 | return data | ||
| 103 | -- | ||
| 104 | 2.24.0 | ||
| 105 | |||
