Skip to contentSkip to conversation

tools: imx8m_image: use bash

PATCH Superseded Peng Fan 3 participants 4 messages Dec 12, 2018 – Dec 20, 2018 Arm i.MX and Layerscape

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH v2 1/1 tools: imx8m_image: use bash

travis-ci reports
"tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator" After use bash, no error, so use bash instead of sh.

---
 tools/imx8m_image.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/imx8m_image.sh +1 -1
index 6346fb64d8..0e9df4763c 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0+
 #
 # script to check whether the file exists in imximage.cfg for i.MX8M
Signature · 1 line
2.14.1
#1 lore raw

PATCH v2 1/1 tools: imx8m_image: use bash

Quoted 15 lines · Peng Fan

travis-ci reports
"tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator" After use bash, no error, so use bash instead of sh.

---
 tools/imx8m_image.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/imx8m_image.sh +0 -0
index 6346fb64d8..0e9df4763c 100755

tools/imx8m_image.sh line 4

Quoted 5 lines
tools/imx8m_image.sh +1 -1
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0+
 #
 # script to check whether the file exists in imximage.cfg for i.MX8M

We have a patch that fixes this to work with sh, dash, and bash if you prefer.

author
#2 lore raw

PATCH v2 1/1 tools: imx8m_image: use bash

Hi Jon

Quoted 20 lines

-----Original Message-----
From: Jon Nettleton [mailto:jon at solid-run.com]
Sent: 2018年12月13日 14:54
To: Peng Fan <[email protected]>
Cc: sbabic at denx.de; Fabio Estevam <[email protected]>; U-Boot Mailing List <[email protected]>
Subject: Re: [U-Boot] [imx/next V2] tools: imx8m_image: use bash

Quoted 3 lines · Peng Fan

travis-ci reports
"tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected

operator"

Quoted 7 lines

After use bash, no error, so use bash instead of sh.

---
 tools/imx8m_image.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

tools/imx8m_image.sh line 4

Quoted 10 lines
tools/imx8m_image.sh index renamed from tools/imx8m_image.sh +0 -0

6346fb64d8..0e9df4763c 100755

tools/imx8m_image.sh +1 -1
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # SPDX-License-Identifier: GPL-2.0+
 #
 # script to check whether the file exists in imximage.cfg for i.MX8M

We have a patch that fixes this to work with sh, dash, and bash if you prefer.

Sure, please submit a patch based on imx/next, I would like those patches could be in master soon.

Thanks,
Peng.

reviewer
#3 lore raw

PATCH v2 1/1 tools: imx8m_image: use bash

Jon/Peng,

Quoted 3 lines · Peng Fan
Quoted 1 line

We have a patch that fixes this to work with sh, dash, and bash if you prefer.

Sure, please submit a patch based on imx/next, I would like those patches could be in master soon.

Can we have a fix for this, please?