]> Git Repo - J-u-boot.git/blob - tools/imx_cntr_image.sh
imx: imx_cntr_image.sh: prevent warning for missing spl
[J-u-boot.git] / tools / imx_cntr_image.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0+
3 #
4 # script to check whether the file exists in imximage.cfg for i.MX8
5 #
6 # usage: $0 <imximage.cfg>
7
8 file=$1
9
10 blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
11 for f in $blobs; do
12         tmp=$srctree/$f
13         if [ $f = "u-boot-dtb.bin" ]; then
14                 continue
15         fi
16
17         if [ $f = "spl/u-boot-spl.bin" ]; then
18                 continue
19         fi
20
21         if [ -f $f ]; then
22                 continue
23         fi
24
25         if [ ! -f $tmp ]; then
26                 echo "WARNING '$tmp' not found, resulting binary is not-functional" >&2
27                 exit 1
28         fi
29
30         sed -in "s;$f;$tmp;" $file
31 done
32
33 exit 0
This page took 0.02704 seconds and 4 git commands to generate.