Re: [U-Boot] [PATCHv2] blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more

2019-12-03 Thread Tom Rini
On Mon, Dec 02, 2019 at 10:52:31AM -0500, Tom Rini wrote: > 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 t

[U-Boot] [PATCHv2] blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more

2019-12-02 Thread Tom Rini
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 u