public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch 2.4.21-pre7] Old hard disk (MFM/RLL/IDE) driver not build.
@ 2003-04-06 15:25 Jerome Chantelauze
  0 siblings, 0 replies; only message in thread
From: Jerome Chantelauze @ 2003-04-06 15:25 UTC (permalink / raw)
  To: linux-kernel

Hi.

I applied Stephane Ouellette's patch on my linux 2.4.21-pre7. Now, the
kernel builds.

But, there's a problem with the IDE support (problem also present in
2.4.21-pre6, but not in 2.4.20).

I configure the kernel to use the "Old hard disk (MFM/RLL/IDE)" driver:

#
# IDE, ATA and ATAPI Block devices
#
# CONFIG_BLK_DEV_IDE is not set
CONFIG_BLK_DEV_HD_ONLY=y
CONFIG_BLK_DEV_HD=y
...

drivers/ide/Makefile does not compile the drivers/ide/legacy/ subdir and
generates an empty idedriver.o because CONFIG_BLK_DEV_IDE is not set.
Setting this option would result in a driver not compatible with my old
hardware.

The following patch fixes the problem, but is it ok ?

*** linux-2.4.21-pre7/drivers/ide/Makefile.orig Sat Apr  5 18:57:07 2003
--- linux-2.4.21-pre7/drivers/ide/Makefile      Sat Apr  5 19:16:48 2003
***************
*** 21,26 ****
--- 21,28 ----

  subdir-$(CONFIG_BLK_DEV_IDE) += legacy ppc arm raid pci

+ subdir-$(CONFIG_BLK_DEV_HD_ONLY) += legacy
+
  # First come modules that register themselves with the core

  ifeq ($(CONFIG_BLK_DEV_IDE),y)
***************
*** 48,53 ****
--- 50,59 ----
    obj-y               += legacy/idedriver-legacy.o
    obj-y               += ppc/idedriver-ppc.o
    obj-y               += arm/idedriver-arm.o
+ endif
+
+ ifeq ($(CONFIG_BLK_DEV_HD_ONLY),y)
+   obj-y               += legacy/idedriver-legacy.o
  endif

  ifeq ($(CONFIG_BLK_DEV_IDE),y)


Regards.
--
Jerome Chantelauze.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-06 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-06 15:25 [Patch 2.4.21-pre7] Old hard disk (MFM/RLL/IDE) driver not build Jerome Chantelauze

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