summaryrefslogtreecommitdiffstats
path: root/cmd/blk_common.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-12-02 10:52:31 -0500
committerTom Rini <trini@konsulko.com>2019-12-03 08:43:24 -0500
commit4df23e58a460cf246f9e76f79d572182d9d0f9bd (patch)
tree7a6b429b06110b6641b5c2d13565536efd78073f /cmd/blk_common.c
parent56e5a393464161f973dfe43745571a532b8c77d0 (diff)
downloadu-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.tar.gz
u-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.tar.xz
u-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.zip
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>
Diffstat (limited to 'cmd/blk_common.c')
-rw-r--r--cmd/blk_common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/blk_common.c b/cmd/blk_common.c
index cee25a0d41..c5514cf8f8 100644
--- a/cmd/blk_common.c
+++ b/cmd/blk_common.c
@@ -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