mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
dccd3ab55e
I thought header search paths to tools/include(/uapi) were unneeded, but it looks like a build error occurs depending on the compiler. Commit303a339f30
("bpfilter: remove extra header search paths for bpfilter_umh") reintroduced the build error fixed by commitae40832e53
("bpfilter: fix a build err"). Apology for the breakage, and thanks to Guenter for reporting this. Fixes:303a339f30
("bpfilter: remove extra header search paths for bpfilter_umh") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
22 lines
593 B
Makefile
22 lines
593 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 += -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
|