[openib-general] [PATCH] gen2: Only include CM and DM client in kernel build when needed
Hal Rosenstock
halr at voltaire.com
Sat Aug 7 14:07:52 PDT 2004
On Sat, 2004-08-07 at 15:32, Roland Dreier wrote:
> I like this idea (although I might want to hide this level of control
> unless CONFIG_EMBEDDED is selected). I think this sort of thing in
> Makefiles is not the right way to go, though:
>
> +ifdef CONFIG_INFINIBAND_CM
> +obj-$(CONFIG_INFINIBAND) += \
> + ib_cm.o
> +endif
>
> I think it would be better just to assign to
> obj-$(CONFIG_INFINIBAND_CM).
>
> Also, this is definitely not needed (if ib_cm.o isn't being build,
> ib_cm-objs will just be ignored):
>
> +ifdef CONFIG_INFINIBAND_CM
> ib_cm-objs := \
> cm_main.o \
> cm_api.o \
> @@ -64,6 +73,7 @@
> cm_connection_table.o \
> cm_service_table.o \
> cm_proc.o
> +endif
>
> Also I'm not sure that one needs both the "select" and "default y"
> stuff in Kconfig.
>
> I'd rather work this out later when we know what's in the real gen2
> tree and how the core IPoIB stuff for merging upstream looks. Then we
> can figure out how to add CM, etc. (And see if we can move DM into
> userspace)
I'm interested in working this out now because having everything in one
tree will make it easier right ? I'd like to avoid having 2 mthcas and
have things build smoothly. Is there a better way to do this ?
-- Hal
More information about the general
mailing list