.. | .. |
---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | menuconfig BPFILTER |
---|
2 | 3 | bool "BPF based packet filtering framework (BPFILTER)" |
---|
3 | 4 | depends on NET && BPF && INET |
---|
| 5 | + select USERMODE_DRIVER |
---|
4 | 6 | help |
---|
5 | 7 | This builds experimental bpfilter framework that is aiming to |
---|
6 | 8 | provide netfilter compatible functionality via BPF |
---|
.. | .. |
---|
8 | 10 | if BPFILTER |
---|
9 | 11 | config BPFILTER_UMH |
---|
10 | 12 | tristate "bpfilter kernel module with user mode helper" |
---|
11 | | - depends on $(success,$(srctree)/scripts/cc-can-link.sh $(CC)) |
---|
| 13 | + depends on CC_CAN_LINK |
---|
| 14 | + depends on m || CC_CAN_LINK_STATIC |
---|
12 | 15 | default m |
---|
13 | 16 | help |
---|
14 | 17 | This builds bpfilter kernel module with embedded user mode helper |
---|
| 18 | + |
---|
| 19 | + Note: To compile this as built-in, your toolchain must support |
---|
| 20 | + building static binaries, since rootfs isn't mounted at the time |
---|
| 21 | + when __init functions are called and do_execv won't be able to find |
---|
| 22 | + the elf interpreter. |
---|
15 | 23 | endif |
---|