diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 11:36:03 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | 6eef6eac1fc137c97bf1993304ed83b8e483c80a (patch) | |
tree | acf93cca012d7aa2b37ff8befb44c404271e4740 /drivers/block/Makefile | |
parent | c649e3c91cdc96a86ca2665fcfafaca5c4b384b1 (diff) |
dm: blk: Add a legacy block interface
There is quite a bit of duplicated common code related to block devices
in the IDE and SCSI implementations.
Create some helper functions that can be used to reduce the duplication.
These rely on a linker list of interface-type drivers
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block/Makefile')
-rw-r--r-- | drivers/block/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 3f759341d4..436b79f981 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile @@ -7,6 +7,10 @@ obj-$(CONFIG_BLK) += blk-uclass.o +ifndef CONFIG_BLK +obj-y += blk_legacy.o +endif + obj-$(CONFIG_AHCI) += ahci-uclass.o obj-$(CONFIG_SCSI_AHCI) += ahci.o obj-$(CONFIG_DWC_AHSATA) += dwc_ahsata.o |