mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
57f5877c11
Eric reports build failure with
CONFIG_BRIDGE_NETFILTER=n
We insist to build br_nf_core.o unconditionally, but we must only do so
if br_netfilter was enabled, else it fails to build due to
functions being defined to empty stubs (and some structure members
being defined out).
Also, BRIDGE_NETFILTER=y|m makes no sense when BRIDGE=n.
Fixes: 34666d467
(netfilter: bridge: move br_netfilter out of the core)
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
22 lines
576 B
Makefile
22 lines
576 B
Makefile
#
|
|
# Makefile for the IEEE 802.1d ethernet bridging layer.
|
|
#
|
|
|
|
obj-$(CONFIG_BRIDGE) += bridge.o
|
|
|
|
bridge-y := br.o br_device.o br_fdb.o br_forward.o br_if.o br_input.o \
|
|
br_ioctl.o br_stp.o br_stp_bpdu.o \
|
|
br_stp_if.o br_stp_timer.o br_netlink.o
|
|
|
|
bridge-$(CONFIG_SYSFS) += br_sysfs_if.o br_sysfs_br.o
|
|
|
|
bridge-$(subst m,y,$(CONFIG_BRIDGE_NETFILTER)) += br_nf_core.o
|
|
|
|
obj-$(CONFIG_BRIDGE_NETFILTER) += br_netfilter.o
|
|
|
|
bridge-$(CONFIG_BRIDGE_IGMP_SNOOPING) += br_multicast.o br_mdb.o
|
|
|
|
bridge-$(CONFIG_BRIDGE_VLAN_FILTERING) += br_vlan.o
|
|
|
|
obj-$(CONFIG_NETFILTER) += netfilter/
|