Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # Makefile for the Linux BPFILTER layer.
0004 #
0005 
0006 userprogs := bpfilter_umh
0007 bpfilter_umh-objs := main.o
0008 userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi
0009 
0010 ifeq ($(CONFIG_BPFILTER_UMH), y)
0011 # builtin bpfilter_umh should be linked with -static
0012 # since rootfs isn't mounted at the time of __init
0013 # function is called and do_execv won't find elf interpreter
0014 userldflags += -static
0015 endif
0016 
0017 $(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
0018 
0019 obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
0020 bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o