mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:20:53 +07:00
82d00a9392
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. I also guarded the CONFIG option 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
116 B
Makefile
6 lines
116 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
userprogs := hid-example
|
|
always-y := $(userprogs)
|
|
|
|
userccflags += -I usr/include
|