mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Jakub Kicinski](/assets/img/avatar_default.png)
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>
11 lines
173 B
Makefile
11 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
|