mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 10:26:10 +01:00 
			
		
		
		
	spl: Make SHOW_ERRORS depend on LIBCOMMON
The purpose of SHOW_ERRORS is to print extra information. Make it depend on LIBCOMMON to avoid having to check for two configs. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		| @@ -183,6 +183,7 @@ config SPL_SYS_REPORT_STACK_F_USAGE | |||||||
|  |  | ||||||
| config SPL_SHOW_ERRORS | config SPL_SHOW_ERRORS | ||||||
| 	bool "Show more information when something goes wrong" | 	bool "Show more information when something goes wrong" | ||||||
|  | 	depends on SPL_LIBCOMMON_SUPPORT | ||||||
| 	help | 	help | ||||||
| 	  This enabled more verbose error messages and checking when something | 	  This enabled more verbose error messages and checking when something | ||||||
| 	  goes wrong in SPL. For example, it shows the error code when U-Boot | 	  goes wrong in SPL. For example, it shows the error code when U-Boot | ||||||
|   | |||||||
| @@ -718,8 +718,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) | |||||||
| 	ret = boot_from_devices(&spl_image, spl_boot_list, | 	ret = boot_from_devices(&spl_image, spl_boot_list, | ||||||
| 				ARRAY_SIZE(spl_boot_list)); | 				ARRAY_SIZE(spl_boot_list)); | ||||||
| 	if (ret) { | 	if (ret) { | ||||||
| 		if (CONFIG_IS_ENABLED(SHOW_ERRORS) && | 		if (CONFIG_IS_ENABLED(SHOW_ERRORS)) | ||||||
| 		    CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT)) |  | ||||||
| 			printf(SPL_TPL_PROMPT "failed to boot from all boot devices (err=%d)\n", | 			printf(SPL_TPL_PROMPT "failed to boot from all boot devices (err=%d)\n", | ||||||
| 			       ret); | 			       ret); | ||||||
| 		else | 		else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user