[U-Boot] Portability of sh scripts

Martin Husemann martin at NetBSD.org
Fri Nov 9 12:08:42 UTC 2018


Hey folks,

I noticed that tools/imx_cntr_image.sh contains non-portable code:

	if [ $f == "u-boot-dtb.bin" ]; then

This is a "bash-ism", the operator "==" is not implemented by most test(1)
or sh(1) impmlementations. Simply replacing it with "=" fixes this.

Should I send a trivial patch or do you just fix it?

Thanks,

Martin


More information about the U-Boot mailing list