diff options
author | Tom Rini <trini@konsulko.com> | 2019-12-02 10:52:31 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 08:43:24 -0500 |
commit | 4df23e58a460cf246f9e76f79d572182d9d0f9bd (patch) | |
tree | 7a6b429b06110b6641b5c2d13565536efd78073f /cmd/Makefile | |
parent | 56e5a393464161f973dfe43745571a532b8c77d0 (diff) | |
download | u-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.zip u-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.tar.gz u-boot-4df23e58a460cf246f9e76f79d572182d9d0f9bd.tar.bz2 |
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/Makefile')
-rw-r--r-- | cmd/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/Makefile b/cmd/Makefile index 2d723ea..f823d16 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -15,7 +15,7 @@ obj-$(CONFIG_CMD_AES) += aes.o obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o obj-$(CONFIG_CMD_ADC) += adc.o obj-$(CONFIG_CMD_ARMFLASH) += armflash.o -obj-y += blk_common.o +obj-$(CONFIG_HAVE_BLOCK_DEVICE) += blk_common.o obj-$(CONFIG_CMD_SOURCE) += source.o obj-$(CONFIG_CMD_BCB) += bcb.o obj-$(CONFIG_CMD_BDI) += bdinfo.o |