mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	On mediatek various files that need to be created by binman. It does not make sense to enumerate these in the Makefile. They are described in the configuration (devicetree) for each board and we can simply run binman (always) to generate them. This avoid sprinkling the Makefile with arch-specific code. Also update the binman definition so that idbloader.img is only needed when SPL is actually being used. Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			30 lines
		
	
	
		
			390 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			390 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
 | |
|  */
 | |
| 
 | |
| #include <config.h>
 | |
| 
 | |
| / {
 | |
| 	binman: binman {
 | |
| 		multiple-images;
 | |
| 	};
 | |
| };
 | |
| 
 | |
| #ifdef CONFIG_SPL
 | |
| &binman {
 | |
| 	simple-bin {
 | |
| 		filename = "u-boot-rockchip.bin";
 | |
| 		pad-byte = <0xff>;
 | |
| 
 | |
| 		blob {
 | |
| 			filename = "idbloader.img";
 | |
| 		};
 | |
| 
 | |
| 		u-boot-img {
 | |
| 			offset = <CONFIG_SPL_PAD_TO>;
 | |
| 		};
 | |
| 	};
 | |
| };
 | |
| #endif
 |