configure: add configure option to disable building brcompat
[openvswitch] / datapath / linux / Modules.mk
index d9a85ccb7c6c579a6b50db0eb46ff03ec097d470..baa4196ae2ce0e2eab69cf669ab34bb43f9fe8f5 100644 (file)
@@ -69,6 +69,8 @@ openvswitch_headers += \
        linux/compat/include/net/netns/generic.h \
        linux/compat/genetlink.inc
 
-both_modules += brcompat
+# 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 =