]> git.hungrycats.org Git - linux/commit
do_mounts: Fix CONFIG_BLK_DEV_MD=m case
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 2 Mar 2003 16:33:44 +0000 (10:33 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 2 Mar 2003 16:33:44 +0000 (10:33 -0600)
commiteae6fb05f5c6211e416378712a146cfdcb1c6c69
treea8cc3b03ec7d33f918a5d7bac97a27b1b5c0af46
parente61ed9f57e549f0ebb4c4689e61598944c4e1720
do_mounts: Fix CONFIG_BLK_DEV_MD=m case

We don't really have a nice way to say "compile this when CONFIG_FOO
is y, don't otherwise".

Alternatives are:

obj-$(subst m,,$(CONFIG_FOO)) := foo.o

or

obj-$(CONFIG_FOO) := foo.o
obj-m :=

or

obj-y := do_foo.o
do_foo-$(CONFIG_FOO) := foo.o

I chose the last one, though I'm not particularly happy with either.
init/Makefile