mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	Add dedicated Makefile targets for the i.MX93 and a new imx93-u-boot.dtsi device-tree to create binman images. Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			728 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			728 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| # SPDX-License-Identifier: GPL-2.0+
 | |
| #
 | |
| # Script to check whether the file exists in mkimage cfg files for the i.MX9.
 | |
| #
 | |
| # usage: $0 <file.cfg>
 | |
| 
 | |
| file=$1
 | |
| 
 | |
| blobs=`awk '/^APPEND/ {print $2} /^IMAGE/ || /^DATA/ {print $3}' $file`
 | |
| for f in $blobs; do
 | |
| 	tmp=$srctree/$f
 | |
| 	if [ $f = "u-boot-spl-ddr.bin" ]; then
 | |
| 		continue
 | |
| 	fi
 | |
| 
 | |
| 	if [ -f $f ]; then
 | |
| 		continue
 | |
| 	fi
 | |
| 
 | |
| 	if [ ! -f $tmp ]; then
 | |
| 		echo "WARNING '$tmp' not found, resulting binary is not-functional" >&2
 | |
| 
 | |
|                 # Comment-out the lines for un-existing files. This way,
 | |
|                 # mkimage can keep working. This allows CI tests to pass even
 | |
|                 # if the resulting binary won't boot.
 | |
|                 sed -in "/$f/ s/./#&/" $file
 | |
| 	fi
 | |
| done
 | |
| 
 | |
| exit 0
 |