Merge branch 'for-5.9-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis...
[linux-2.6-microblaze.git] / net / bpfilter / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Makefile for the Linux BPFILTER layer.
4 #
5
6 userprogs := bpfilter_umh
7 bpfilter_umh-objs := main.o
8 userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi
9
10 ifeq ($(CONFIG_BPFILTER_UMH), y)
11 # builtin bpfilter_umh should be linked with -static
12 # since rootfs isn't mounted at the time of __init
13 # function is called and do_execv won't find elf interpreter
14 userldflags += -static
15 endif
16
17 $(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
18
19 obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
20 bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o