diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:23 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:23 -0500 |
commit | 972560fb9d9ea7bc7082c0c79c99c24e3f56606c (patch) | |
tree | c7ca8212cc0dc85e22e04d9faf8744972fc62a93 /drivers/ide/Makefile | |
parent | 89d13ec7c8b85f3c62a4a12034e65d3d2d3273a8 (diff) |
ide-cd: move VERBOSE_IDE_CD_ERRORS code to ide-cd_verbose.c
* Rename ide-cd kernel module to ide-cd_mod in preparation to moving code out
from ide-cd.[c,h]. Add MODULE_ALIAS("ide-cd") to preserve compatibility.
* Move VERBOSE_IDE_CD_ERRORS code from ide-cd.[c,h] to ide-cd_verbose.c.
ide-cd_verbose.c is IDE subsystem independent and may be easily converted
into generic library usable by other drivers (i.e. libata) if needed.
* Add CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS config option to drivers/ide/Kconfig
replacing VERBOSE_IDE_CD_ERRORS define. Make this config option enabled by
default and visible only if CONFIG_EMBEDDED is defined.
before the patch:
text data bss dec hex filename
22841 360 1056 24257 5ec1 drivers/ide/ide-cd.o
after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y:
text data bss dec hex filename
22857 360 1056 24273 5ed1 drivers/ide/ide-cd_mod.o
after the patch w/ CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=n:
text data bss dec hex filename
15091 360 1056 16507 407b drivers/ide/ide-cd_mod.o
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/Makefile')
-rw-r--r-- | drivers/ide/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/Makefile b/drivers/ide/Makefile index 0d2da89d15c..5ce1d8f17c0 100644 --- a/drivers/ide/Makefile +++ b/drivers/ide/Makefile | |||
@@ -40,8 +40,10 @@ obj-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o | |||
40 | obj-$(CONFIG_IDE_H8300) += h8300/ | 40 | obj-$(CONFIG_IDE_H8300) += h8300/ |
41 | obj-$(CONFIG_IDE_GENERIC) += ide-generic.o | 41 | obj-$(CONFIG_IDE_GENERIC) += ide-generic.o |
42 | 42 | ||
43 | ide-cd_mod-y += ide-cd.o ide-cd_verbose.o | ||
44 | |||
43 | obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o | 45 | obj-$(CONFIG_BLK_DEV_IDEDISK) += ide-disk.o |
44 | obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd.o | 46 | obj-$(CONFIG_BLK_DEV_IDECD) += ide-cd_mod.o |
45 | obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o | 47 | obj-$(CONFIG_BLK_DEV_IDETAPE) += ide-tape.o |
46 | obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy.o | 48 | obj-$(CONFIG_BLK_DEV_IDEFLOPPY) += ide-floppy.o |
47 | 49 | ||