diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-01-23 08:30:42 +1100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-02-15 14:14:36 +0100 |
commit | efc5841ab404aa615306a233dcbcda225b9380b5 (patch) | |
tree | 03a980e7af1539ab4d9181b0cdb180eb18d4c39d /payloads/libpayload/drivers/Makefile.inc | |
parent | 09af15e09eed91c98d4b97446b6b5c445b90517d (diff) |
libpayload/ahci: Fix a warning by decompartmentalise the AHCI driver.
Decompartmentalise AHCI driver into two parts, ATA and ATAPI. Add a few
superficial comments while here. This also fixes a compiler warning.
Change-Id: Ia1fd545b39868a81cbc311f6ffc786f9f1f61415
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/4783
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/drivers/Makefile.inc')
-rw-r--r-- | payloads/libpayload/drivers/Makefile.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/Makefile.inc b/payloads/libpayload/drivers/Makefile.inc index a1891beb73..901c77e69d 100644 --- a/payloads/libpayload/drivers/Makefile.inc +++ b/payloads/libpayload/drivers/Makefile.inc @@ -54,10 +54,18 @@ libc-$(CONFIG_GEODELX_VIDEO_CONSOLE) += video/font8x16.c libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c +# AHCI/ATAPI driver libc-$(CONFIG_STORAGE) += storage/storage.c +libc-$(CONFIG_STORAGE_AHCI) += storage/ahci.c +libc-$(CONFIG_STORAGE_AHCI) += storage/ahci_common.c +ifeq ($(CONFIG_STORAGE_ATA),y) libc-$(CONFIG_STORAGE_ATA) += storage/ata.c +libc-$(CONFIG_STORAGE_ATA) += storage/ahci_ata.c +endif +ifeq ($(CONFIG_STORAGE_ATAPI),y) libc-$(CONFIG_STORAGE_ATAPI) += storage/atapi.c -libc-$(CONFIG_STORAGE_AHCI) += storage/ahci.c +libc-$(CONFIG_STORAGE_ATAPI) += storage/ahci_atapi.c +endif # USB stack libc-$(CONFIG_USB) += usb/usbinit.c |