]> git.dujemihanovic.xyz Git - u-boot.git/commit
blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more
authorTom Rini <trini@konsulko.com>
Mon, 2 Dec 2019 15:52:31 +0000 (10:52 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:43:24 +0000 (08:43 -0500)
commit4df23e58a460cf246f9e76f79d572182d9d0f9bd
tree7a6b429b06110b6641b5c2d13565536efd78073f
parent56e5a393464161f973dfe43745571a532b8c77d0
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>
cmd/Makefile
cmd/blk_common.c
drivers/block/Makefile