mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 16:31:25 +01:00 
			
		
		
		
	It is useful to be able to access the size of an image in SPL, with something like: binman_sym_declare(unsigned long, u_boot_any, size); ... ulong u_boot_size = binman_sym(ulong, u_boot_any, size); Add support for this and update the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			15 lines
		
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (c) 2017 Google, Inc
 | |
|  *
 | |
|  * Simple program to create some binman symbols. This is used by binman tests.
 | |
|  */
 | |
| 
 | |
| #define CONFIG_BINMAN
 | |
| #include <binman_sym.h>
 | |
| 
 | |
| binman_sym_declare(unsigned long, u_boot_spl, offset);
 | |
| binman_sym_declare(unsigned long long, u_boot_spl2, offset);
 | |
| binman_sym_declare(unsigned long, u_boot_any, image_pos);
 | |
| binman_sym_declare(unsigned long, u_boot_any, size);
 |