mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
b90a368000
In preparation for enabling command line LDFLAGS, re-name HOSTLDFLAGS to KBUILD_HOSTLDFLAGS as the internal use only flags. This should not have any visible effects. Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
22 lines
597 B
Makefile
22 lines
597 B
Makefile
# 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
|
|
HOSTCC := $(CC)
|
|
|
|
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
|
|
endif
|
|
|
|
$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
|
|
|
|
obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
|
|
bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o
|