mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Allow to compile IDE as module
@ 2003-03-13 20:08 Eduardo Pereira Habkost
  2003-03-13 22:02 ` Eduardo Pereira Habkost
  0 siblings, 1 reply; 2+ messages in thread
From: Eduardo Pereira Habkost @ 2003-03-13 20:08 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

Marcelo, the following patch fixes drivers/ide/Makefile
to allow to use CONFIG_BLK_DEV_IDE=m.

-- 
Eduardo


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1014  -> 1.1015 
#	drivers/ide/Makefile	1.10    -> 1.11   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/13	ehabkost@duckman.distro.conectiva	1.1015
# Makefile:
#   Fix ide Makefile to allow CONFIG_BLK_DEV_IDE as module
# --------------------------------------------
#
diff -Nru a/drivers/ide/Makefile b/drivers/ide/Makefile
--- a/drivers/ide/Makefile	Thu Mar 13 17:01:12 2003
+++ b/drivers/ide/Makefile	Thu Mar 13 17:01:12 2003
@@ -35,9 +35,13 @@
 obj-$(CONFIG_BLK_DEV_IDETAPE)		+= ide-tape.o
 obj-$(CONFIG_BLK_DEV_IDEFLOPPY)		+= ide-floppy.o
 
-obj-$(CONFIG_BLK_DEV_IDEPCI)		+= setup-pci.o
-obj-$(CONFIG_BLK_DEV_IDEDMA_PCI)	+= ide-dma.o
-obj-$(CONFIG_BLK_DEV_ISAPNP)		+= ide-pnp.o
+# These options are boolean, but the files must be
+# on obj-m if CONFIG_BLK_DEV is m:
+ide-obj-$(CONFIG_BLK_DEV_IDEPCI)	+= setup-pci.o
+ide-obj-$(CONFIG_BLK_DEV_IDEDMA_PCI)	+= ide-dma.o
+ide-obj-$(CONFIG_BLK_DEV_ISAPNP)	+= ide-pnp.o
+
+obj-$(CONFIG_BLK_DEV)			+= ide-obj-y
 
 
 ifeq ($(CONFIG_BLK_DEV_IDE),y)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Allow to compile IDE as module
  2003-03-13 20:08 [PATCH] Allow to compile IDE as module Eduardo Pereira Habkost
@ 2003-03-13 22:02 ` Eduardo Pereira Habkost
  0 siblings, 0 replies; 2+ messages in thread
From: Eduardo Pereira Habkost @ 2003-03-13 22:02 UTC (permalink / raw)
  To: marcelo; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]


Oops. Don't apply it.
I've not tested it before, and noticed that it is not so
simple. There are other parts that are being included on
vmlinux that need symbols from the ide module.

On Thu, Mar 13, 2003 at 05:08:04PM -0300, Eduardo Pereira Habkost wrote:
> Marcelo, the following patch fixes drivers/ide/Makefile
> to allow to use CONFIG_BLK_DEV_IDE=m.
> 
> -- 
> Eduardo
> 
<snip>
> +
> +obj-$(CONFIG_BLK_DEV)			+= ide-obj-y

Ouch, it would not work, anyway.
I promise that I will test the changes, next time.  :-)

-- 
Eduardo

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-13 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 20:08 [PATCH] Allow to compile IDE as module Eduardo Pereira Habkost
2003-03-13 22:02 ` Eduardo Pereira Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®