summaryrefslogtreecommitdiff
path: root/samples/auxdisplay
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-29 06:45:25 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-17 12:52:02 +0300
commit87ffbba9a9a1a74da44917a207c7e57dac98f2f8 (patch)
tree24e622d34a8ea29fb0d49fff143ed322c8a0354e /samples/auxdisplay
parentc4c10996b1940e197b45f827b99f40a4b82daebb (diff)
downloadlinux-87ffbba9a9a1a74da44917a207c7e57dac98f2f8.tar.xz
samples: auxdisplay: use 'userprogs' syntax
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. 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: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'samples/auxdisplay')
-rw-r--r--samples/auxdisplay/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/samples/auxdisplay/Makefile b/samples/auxdisplay/Makefile
index 0273bab27233..dbdf939af94a 100644
--- a/samples/auxdisplay/Makefile
+++ b/samples/auxdisplay/Makefile
@@ -1,10 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
-CC := $(CROSS_COMPILE)gcc
-CFLAGS := -I../../usr/include
-
-PROGS := cfag12864b-example
-
-all: $(PROGS)
-
-clean:
- rm -fr $(PROGS)
+userprogs := cfag12864b-example
+always-y := $(userprogs)