forked from Mirrors/opensbi
		
	build: Introduce FW_PAYLOAD_ALIGN
The firmware payload offset defined by FW_PAYLOAD_OFFSET must specify a value large enough so the the payload does not overlap with the base firmware data, bss and text. For platforms without any strong requirement on the payload address, introduce the FW_PAYLOAD_ALIGN build parameter to automatically place the payload right after the base firmware at an address aligned with the defined value. Either FW_PAYLOAD_OFFSET or FW_PAYLOAD_ALIGN should be defined by a platform configuration. If both FW_PAYLOAD_OFFSET and FW_PAYLOAD_ALIGN are defined by a platform, FW_PAYLOAD_OFFSET has precedence and is used for building the final firmawre image. Using FW_PAYLOAD_ALIGN=4096 with the Kendryte platform rather than the abitrary FW_PAYLOAD_OFFSET=0x10000 value reduces the final firmware image size by about 20KB. Add a description of the FW_PAYLOAD_ALIGN configuration parameter in the fw_payload documentation file as well. And while at it, also fix various grammar and style issues in that file.. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							ebfe231256
						
					
				
				
					commit
					ac3041f4e9
				
			@@ -19,10 +19,8 @@ PLATFORM_SYS_CLINT=y
 | 
			
		||||
 | 
			
		||||
# Blobs to build
 | 
			
		||||
FW_TEXT_START=0x80000000
 | 
			
		||||
FW_JUMP=n
 | 
			
		||||
FW_PAYLOAD=y
 | 
			
		||||
FW_PAYLOAD_OFFSET=0x10000
 | 
			
		||||
#FW_PAYLOAD_FDT_ADDR=0x80040000
 | 
			
		||||
FW_PAYLOAD_ALIGN=0x1000
 | 
			
		||||
 | 
			
		||||
# External Libraries to include
 | 
			
		||||
PLATFORM_INCLUDE_LIBC=y
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user