Re: S390 block devs on !s390.

From: Dave Jones
Date: Fri Feb 27 2004 - 12:11:29 EST


On Fri, Feb 27, 2004 at 04:58:26PM +0000, Dave Jones wrote:

> > even a higher level one) with "if ARCH_S390"? All that does is add a
> > "depends ARCH_S390" to everything in the file, but it would sure be a
> > lot easier to maintain.
>
> Sure, you force a bool to y if ARCH=S390 at the top.
> That would work. Probably.

Or even easier..
(Seems to do the right thing on x86 and make menuconfig ARCH=s390

Dave

--- linux-2.6.3/drivers/s390/block/Kconfig~ 2004-02-27 17:00:07.000000000 +0000
+++ linux-2.6.3/drivers/s390/block/Kconfig 2004-02-27 17:00:27.000000000 +0000
@@ -1,3 +1,5 @@
+if ARCH_S390
+
comment "S/390 block device drivers"
depends on ARCH_S390

@@ -62,3 +64,5 @@
ioctl functions specific to the dasd driver.
This is only needed if you want to use applications written for
linux-2.4 dasd channel measurement facility interface.
+
+endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/