summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig3
-rw-r--r--cmd/blk_common.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4d9ef87e94..7368b6df52 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -672,6 +672,7 @@ config CMD_GPT
bool "GPT (GUID Partition Table) command"
select PARTITION_UUIDS
select EFI_PARTITION
+ select HAVE_BLOCK_DEVICE
imply RANDOM_UUID
help
Enable the 'gpt' command to ready and write GPT style partition
@@ -819,6 +820,7 @@ config CMD_ONENAND
config CMD_PART
bool "part"
select PARTITION_UUIDS
+ select HAVE_BLOCK_DEVICE
help
Read and display information about the partition table on
various media.
@@ -911,6 +913,7 @@ config CMD_UNIVERSE
config CMD_USB
bool "usb"
+ select HAVE_BLOCK_DEVICE
help
USB support.
diff --git a/cmd/blk_common.c b/cmd/blk_common.c
index bf2f626dd6..643fd0bfbc 100644
--- a/cmd/blk_common.c
+++ b/cmd/blk_common.c
@@ -12,7 +12,7 @@
#include <common.h>
#include <blk.h>
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
int *cur_devnump)
{