mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
![Masahiro Yamada](/assets/img/avatar_default.png)
These userspace programs include UAPI headers exported to usr/include/.
'make headers' always works for the target architecture (i.e. the same
architecture as the kernel), so the sample programs should be built for
the target as well. Kbuild now supports 'userprogs' for that.
I also guarded the CONFIG option by 'depends on CC_CAN_LINK' because
$(CC) may not provide libc.
The 'ifndef CROSS_COMPILE' is no longer needed.
BTW, the -m31 for s390 is left-over code. Commit 5a79859ae0
("s390:
remove 31 bit support") killed it.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
8 lines
188 B
Makefile
8 lines
188 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
userprogs := bpf-fancy dropper bpf-direct user-trap
|
|
|
|
bpf-fancy-objs := bpf-fancy.o bpf-helper.o
|
|
|
|
userccflags += -I usr/include
|
|
|
|
always-y := $(userprogs)
|