summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch
diff options
context:
space:
mode:
authorTing Liu <ting.liu@nxp.com>2020-12-15 09:25:26 +0530
committerOtavio Salvador <otavio@ossystems.com.br>2020-12-16 08:38:13 -0300
commitbd61523a08419322b5bb71bd84b5f719ec1eab71 (patch)
tree2b24297a00cdd4128ab18189c06bcee7bbc7cb11 /recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch
parent1ecd36e2c99c311dca574cc901b24d32762e5de9 (diff)
downloadmeta-freescale-bd61523a08419322b5bb71bd84b5f719ec1eab71.tar.gz
u-boot-qoriq: update to LSDK-20.12 release (2020.04)
Key changes: * Upgrade to 2020.04 * Support of LX2162A QDS * GPIO on LX2160A * SDHC: HS200 and HS400 on LX2162A * Watchdog: SBSA on LX2160A Backported patches are removed. Signed-off-by: Ting Liu <ting.liu@nxp.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch b/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch
deleted file mode 100644
index bd23c4584..000000000
--- a/recipes-bsp/u-boot/u-boot-qoriq/0001-patman-Update-command.Run-to-handle-failure-better.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 6eace398072a62e74f10f412ffadfe51b7402395 Mon Sep 17 00:00:00 2001
2From: Simon Glass <sjg@chromium.org>
3Date: Sat, 24 Aug 2019 07:22:42 -0600
4Subject: [PATCH] patman: Update command.Run() to handle failure better
5
6At present tools are not expected to fail. If they do an exception is
7raised but there is no detail about what went wrong. This makes it hard
8to debug if something does actually go wrong.
9
10Fix this by outputting both stderr and stdout on failure.
11
12Upstream-Status: Backport
13
14Signed-off-by: Simon Glass <sjg@chromium.org>
15---
16 tools/patman/tools.py | 10 ++++++++--
17 1 file changed, 8 insertions(+), 2 deletions(-)
18
19diff --git a/tools/patman/tools.py b/tools/patman/tools.py
20index 97441ca796..0952681579 100644
21--- a/tools/patman/tools.py
22+++ b/tools/patman/tools.py
23@@ -205,8 +205,14 @@ def Run(name, *args):
24 if tool_search_paths:
25 env = dict(os.environ)
26 env['PATH'] = ':'.join(tool_search_paths) + ':' + env['PATH']
27- return command.Run(name, *args, capture=True, capture_stderr=True,
28- env=env)
29+ all_args = (name,) + args
30+ result = command.RunPipe([all_args], capture=True, capture_stderr=True,
31+ env=env, raise_on_error=False)
32+ if result.return_code:
33+ raise Exception("Error %d running '%s': %s" %
34+ (result.return_code,' '.join(all_args),
35+ result.stderr))
36+ return result.stdout
37 except:
38 if env and not PathHasFile(env['PATH'], name):
39 msg = "Please install tool '%s'" % name
40--
412.24.0
42