configure: add configure option to disable building brcompat
[cascardo/ovs.git] / datapath / linux / Modules.mk
index 86341ad..baa4196 100644 (file)
@@ -69,6 +69,8 @@ openvswitch_headers += \
        linux/compat/include/net/netns/generic.h \
        linux/compat/genetlink.inc
 
-both_modules += brcompat
-brcompat_sources = linux/compat/genetlink-brcompat.c brcompat.c
+# always distribute brcompat source regardless of local build configuration
+dist_modules += brcompat
+build_modules += $(if $(BUILD_BRCOMPAT),brcompat)
+brcompat_sources = linux/compat/genetlink-brcompat.c brcompat_main.c
 brcompat_headers =