mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
9cc342f6c4
Currently, the Kbuild core manipulates header search paths in a crazy
way [1].
To fix this mess, I want all Makefiles to add explicit $(srctree)/ to
the search paths in the srctree. Some Makefiles are already written in
that way, but not all. The goal of this work is to make the notation
consistent, and finally get rid of the gross hacks.
Having whitespaces after -I does not matter since commit 48f6e3cf5b
("kbuild: do not drop -I without parameter").
[1]: https://patchwork.kernel.org/patch/9632347/
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
22 lines
617 B
Makefile
22 lines
617 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 $(srctree)/tools/include/ -I $(srctree)/tools/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
|