mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
7c5db7e729
We should not compile netdevsim/bpf.c if BPF syscall is not enabled. Otherwise bpf core would have to provide wrappers for all functions offload drivers may call, even though system will never see a BPF object. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
12 lines
173 B
Makefile
12 lines
173 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_NETDEVSIM) += netdevsim.o
|
|
|
|
netdevsim-objs := \
|
|
netdev.o \
|
|
|
|
ifeq ($(CONFIG_BPF_SYSCALL),y)
|
|
netdevsim-objs += \
|
|
bpf.o
|
|
endif
|