mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
8a2cc0505c
The user mode helper should be compiled for the same architecture as the kernel. This Makefile reused the 'hostprogs' syntax by overriding HOSTCC with CC. Use the new syntax 'userprogs' to fix the Makefile mess. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org>
19 lines
545 B
Makefile
19 lines
545 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the Linux BPFILTER layer.
|
|
#
|
|
|
|
userprogs := bpfilter_umh
|
|
bpfilter_umh-objs := main.o
|
|
userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi
|
|
|
|
# builtin bpfilter_umh should be linked with -static
|
|
# since rootfs isn't mounted at the time of __init
|
|
# function is called and do_execv won't find elf interpreter
|
|
userldflags += -static
|
|
|
|
$(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh
|
|
|
|
obj-$(CONFIG_BPFILTER_UMH) += bpfilter.o
|
|
bpfilter-objs += bpfilter_kern.o bpfilter_umh_blob.o
|