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