Message ID | 1250436892.3856.87.camel@mulgrave.site |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
On 08/16/2009 11:34 AM, James Bottomley wrote: > Can't you get the best of both worlds? Do the separation but > artificially glue them together again as a module at link time. This > solves the current distro problem and you can remove the linker hack as > soon as the distros get their act together. > > James > > --- > > diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile > index 9f7b500..10101d7 100644 > --- a/drivers/ata/Makefile > +++ b/drivers/ata/Makefile > @@ -1,8 +1,10 @@ > > obj-$(CONFIG_ATA) += libata.o > > -obj-$(CONFIG_SATA_AHCI) += libahci.o ahci.o > -obj-$(CONFIG_SATA_ACARD_AHCI) += libahci.o acard-ahci.o > +obj-$(CONFIG_SATA_AHCI) += ahci_mod.o > +obj-ahci_mod-y += libahci.o ahci.o > +obj-ahci_mod-$(CONFIG_SATA_ACARD_AHCI) += acard-ahci.o > +obj-ahci_mod-$(CONFIG_SATA_MV_AHCI) += mv-ahci.o Yeah, that could definitely be an option... Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile index 9f7b500..10101d7 100644 --- a/drivers/ata/Makefile +++ b/drivers/ata/Makefile @@ -1,8 +1,10 @@ obj-$(CONFIG_ATA) += libata.o -obj-$(CONFIG_SATA_AHCI) += libahci.o ahci.o -obj-$(CONFIG_SATA_ACARD_AHCI) += libahci.o acard-ahci.o +obj-$(CONFIG_SATA_AHCI) += ahci_mod.o +obj-ahci_mod-y += libahci.o ahci.o +obj-ahci_mod-$(CONFIG_SATA_ACARD_AHCI) += acard-ahci.o +obj-ahci_mod-$(CONFIG_SATA_MV_AHCI) += mv-ahci.o obj-$(CONFIG_SATA_SVW) += sata_svw.o obj-$(CONFIG_ATA_PIIX) += ata_piix.o obj-$(CONFIG_SATA_PROMISE) += sata_promise.o @@ -15,7 +17,6 @@ obj-$(CONFIG_SATA_SIS) += sata_sis.o obj-$(CONFIG_SATA_SX4) += sata_sx4.o obj-$(CONFIG_SATA_NV) += sata_nv.o obj-$(CONFIG_SATA_ULI) += sata_uli.o -obj-$(CONFIG_SATA_MV_AHCI) += libahci.o mv-ahci.o obj-$(CONFIG_SATA_MV) += sata_mv.o obj-$(CONFIG_SATA_INIC162X) += sata_inic162x.o obj-$(CONFIG_PDC_ADMA) += pdc_adma.o