mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more
When we do not have CONFIG_BLK (or SPL/TPL) enabled there are very few cases where we need the blk_legacy code linked in. To catch these, build when we have CONFIG_HAVE_BLOCK_DEVICE set. In addition, we only need cmd/blk_common.o to be linked in when we have CONFIG_HAVE_BLOCK_DEVICE set, so make use of that directly. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
56e5a39346
commit
4df23e58a4
3 changed files with 2 additions and 4 deletions
|
@ -11,7 +11,6 @@
|
|||
#include <common.h>
|
||||
#include <blk.h>
|
||||
|
||||
#ifdef CONFIG_HAVE_BLOCK_DEVICE
|
||||
int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
|
||||
int *cur_devnump)
|
||||
{
|
||||
|
@ -96,4 +95,3 @@ int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue