Blame view
net/bpfilter/Makefile
584 Bytes
d2ba09c17
|
1 2 3 4 |
# SPDX-License-Identifier: GPL-2.0 # # Makefile for the Linux BPFILTER layer. # |
8a2cc0505
|
5 |
userprogs := bpfilter_umh |
d2ba09c17
|
6 |
bpfilter_umh-objs := main.o |
8a2cc0505
|
7 |
userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi |
819dd92b9
|
8 |
|
9326e0f85
|
9 |
ifeq ($(CONFIG_BPFILTER_UMH), y) |
8a2cc0505
|
10 |
# builtin bpfilter_umh should be linked with -static |
d2ba09c17
|
11 12 |
# since rootfs isn't mounted at the time of __init # function is called and do_execv won't find elf interpreter |
8a2cc0505
|
13 |
userldflags += -static |
9326e0f85
|
14 |
endif |
d2ba09c17
|
15 |
|
8e75887d3
|
16 |
$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh |
d2ba09c17
|
17 18 |
obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o |
8e75887d3
|
19 |
bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o |