mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
bootstd: Allow hunting for a bootdev by label
Add a function to hunt for a bootdev label and find the bootdev produced by the hunter (or already present). Add a few extra flags so that we can distinguish between "mmc1", "mmc" and "1" which all need to be handled differently. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -40,4 +40,12 @@ int bootstd_test_drop_bootdev_order(struct unit_test_state *uts);
|
||||
*/
|
||||
int bootstd_setup_for_tests(void);
|
||||
|
||||
/**
|
||||
* bootstd_test_check_mmc_hunter() - Check that the mmc bootdev hunter was used
|
||||
*
|
||||
* @uts: Unit test state to use for ut_assert...() functions
|
||||
* Returns: 0 if OK (used), other value on error (not used)
|
||||
*/
|
||||
int bootstd_test_check_mmc_hunter(struct unit_test_state *uts);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user