forked from Minki/linux
87ecdf4fc9
This userspace program includes 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 program should be built for the target as well. Kbuild now supports 'userprogs' for that. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org>
6 lines
122 B
Makefile
6 lines
122 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
userprogs := uhid-example
|
|
always-y := $(userprogs)
|
|
|
|
userccflags += -I usr/include
|