# SPDX-License-Identifier: GPL-2.0 # # Makefile for the Linux BPFILTER layer. # hostprogs-y := bpfilter_umh bpfilter_umh-objs := main.o KBUILD_HOSTCFLAGS += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi HOSTCC := $(CC) ifeq ($([31mCONFIG_BPFILTER_UMH[0m), 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 endif $(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh obj-$([31mCONFIG_BPFILTER_UMH[0m) += bpfilter.o bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o |