kbuild: Rename HOSTLDFLAGS to KBUILD_HOSTLDFLAGS
[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
6hostprogs-y := bpfilter_umh
7bpfilter_umh-objs := main.o
96f14fe7 8KBUILD_HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi
819dd92b
AS
9HOSTCC := $(CC)
10
d2ba09c1
AS
11ifeq ($(CONFIG_BPFILTER_UMH), y)
12# builtin bpfilter_umh should be compiled with -static
13# since rootfs isn't mounted at the time of __init
14# function is called and do_execv won't find elf interpreter
b90a3680 15KBUILD_HOSTLDFLAGS += -static
d2ba09c1
AS
16endif
17
8e75887d 18$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
d2ba09c1
AS
19
20obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
8e75887d 21bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o