[OE-core] [PATCH] u-boot.inc: fix rename image error

Burton, Ross ross.burton at intel.com
Thu Mar 5 11:47:47 UTC 2015


On 5 March 2015 at 09:38, Chunrong Guo <B40290 at freescale.com> wrote:

> -            for type in in ${UBOOT_CONFIG}; do
> +            for type in ${UBOOT_CONFIG}; do
>                  if [ "${type}"x = "in"x ]
>                  then
>                      continue
>                  fi
>

The if "${type}x" = "inx" check demonstrates that the in was repeated for a
reason, which you've just broken.

Of course all of that isn't required as a simple test demonstrates:

$ UBOOT_CONFIG=""
~
$ for type in ${UBOOT_CONFIG}; do echo x$type; done
~
$

You can remove the "typex = inx" tests as if UBOOT_CONFIG isn't set the
loop won't be entered.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150305/13a9fb11/attachment-0002.html>


More information about the Openembedded-core mailing list