Files

21 lines
597 B
Makefile
Raw Permalink Normal View History

2018-05-21 19:22:30 -07:00
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for the Linux BPFILTER layer.
#
hostprogs-y := bpfilter_umh
bpfilter_umh-objs := main.o
KBUILD_HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi
2018-06-04 19:53:41 -07:00
HOSTCC := $(CC)
2018-05-21 19:22:30 -07:00
ifeq ($(CONFIG_BPFILTER_UMH), y)
# builtin bpfilter_umh should be compiled with -static
# since rootfs isn't mounted at the time of __init
# function is called and do_execv won't find elf interpreter
KBUILD_HOSTLDFLAGS += -static
2018-05-21 19:22:30 -07:00
endif
$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
2018-05-21 19:22:30 -07:00
obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o