blob: 07acd3856312ae128fa0324838b85d3a3f92b882 [file] [log] [blame]
Peng Fan844b9f32018-10-25 08:32:40 +00001#!/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
8file=$1
9
10blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
11for f in $blobs; do
12 tmp=$srctree/$f
Martin Husemann2d1c5de2018-11-09 14:30:14 +010013 if [ $f = "u-boot-dtb.bin" ]; then
Peng Fan844b9f32018-10-25 08:32:40 +000014 continue
15 fi
16
Heiko Schocher9ea7cad2024-11-23 17:52:48 +010017 if [ $f = "spl/u-boot-spl.bin" ]; then
18 continue
19 fi
20
Peng Fan844b9f32018-10-25 08:32:40 +000021 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
31done
32
33exit 0