mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	net: nfs: Only link in NFS code outside of SPL builds
While we have networking use cases within SPL we do not support loading files via NFS at this point in time. Disable calling nfs_start() so that the NFS related code can be garbage collected at link time. Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
		
				
					committed by
					
						 Joe Hershberger
						Joe Hershberger
					
				
			
			
				
	
			
			
			
						parent
						
							6f8215681a
						
					
				
				
					commit
					a6ab4b5470
				
			| @@ -308,7 +308,7 @@ U_BOOT_ENV_CALLBACK(dnsip, on_dnsip); | |||||||
|  */ |  */ | ||||||
| void net_auto_load(void) | void net_auto_load(void) | ||||||
| { | { | ||||||
| #if defined(CONFIG_CMD_NFS) | #if defined(CONFIG_CMD_NFS) && !defined(CONFIG_SPL_BUILD) | ||||||
| 	const char *s = env_get("autoload"); | 	const char *s = env_get("autoload"); | ||||||
|  |  | ||||||
| 	if (s != NULL && strcmp(s, "NFS") == 0) { | 	if (s != NULL && strcmp(s, "NFS") == 0) { | ||||||
| @@ -496,7 +496,7 @@ restart: | |||||||
| 			ping_start(); | 			ping_start(); | ||||||
| 			break; | 			break; | ||||||
| #endif | #endif | ||||||
| #if defined(CONFIG_CMD_NFS) | #if defined(CONFIG_CMD_NFS) && !defined(CONFIG_SPL_BUILD) | ||||||
| 		case NFS: | 		case NFS: | ||||||
| 			nfs_start(); | 			nfs_start(); | ||||||
| 			break; | 			break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user