From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 25 Oct 2018 01:43:55 +0200 Subject: [U-Boot] [PATCH] imx: mkimage: avoid stop CI when required files not exists In-Reply-To: <20181024095456.27486-1-peng.fan@nxp.com> References: <20181024095456.27486-1-peng.fan@nxp.com> Message-ID: <20181025014337.762f7ec9@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Peng, On Wed, 24 Oct 2018 09:49:04 +0000 Peng Fan peng.fan at nxp.com wrote: ... > --- /dev/null > +++ b/tools/imx8_cntr_image.sh > @@ -0,0 +1,32 @@ > +#!/bin/sh > +# SPDX-License-Identifier: GPL-2.0+ > +# > +# script to generate FIT image source for K3 Family boards with > +# ATF, OPTEE, SPL and multiple device trees (given on the command line). > +# Inspired from board/sunxi/mksunxi_fit_atf.sh Please drop this comment, it doesn't describe what the script is actually doing. ... > +file=$1 > + > +linecount=`cat ${file} | wc -l` > + > +for ((i=1; i<=${linecount}; i++)); > +do [ snip ] blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file` for f in $blobs; do if [ ! -f $f ]; then echo "WARNING '$f' not found, resulting binary is not-functional" fi; done will do the checks more efficiently. Thanks, Anatolij