mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-30 18:05:48 +01:00 
			
		
		
		
	gpt: allow spaces in partition list
This allows spliting partition list to several lines in environment file ex: -------------------- gpt_partition_list= name=boot1,size=5MiB,start=0x100000; name=boot2,size=5MiB; name=rootfs1,size=70MiB; name=rootfs2,size=70MiB; name=overlay1,size=20MiB; name=overlay2,size=20MiB; name=art,size=4MiB; Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Tested-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
				
					committed by
					
						 Tom Rini
						Tom Rini
					
				
			
			
				
	
			
			
			
						parent
						
							475aa8345a
						
					
				
				
					commit
					72e77ab1c9
				
			| @@ -116,6 +116,7 @@ static char *extract_val(const char *str, const char *key) | |||||||
| 		k = strsep(&v, "="); | 		k = strsep(&v, "="); | ||||||
| 		if (!k) | 		if (!k) | ||||||
| 			break; | 			break; | ||||||
|  | 		k += strspn(k, " \t"); | ||||||
| 		if  (strcmp(k, key) == 0) { | 		if  (strcmp(k, key) == 0) { | ||||||
| 			new = strdup(v); | 			new = strdup(v); | ||||||
| 			break; | 			break; | ||||||
| @@ -150,6 +151,7 @@ static bool found_key(const char *str, const char *key) | |||||||
| 		k = strsep(&s, ","); | 		k = strsep(&s, ","); | ||||||
| 		if (!k) | 		if (!k) | ||||||
| 			break; | 			break; | ||||||
|  | 		k += strspn(k, " \t"); | ||||||
| 		if  (strcmp(k, key) == 0) { | 		if  (strcmp(k, key) == 0) { | ||||||
| 			result = true; | 			result = true; | ||||||
| 			break; | 			break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user