samples: move auxdisplay example code from Documentation

Move auxdisplay examples to samples and remove it from Documentation
Makefile. Create a new Makefile to build auxdisplay. It can be built
from top level directory or from auxdisplay directory:

Run make -C samples/auxdisplay or cd samples/auxdisplay; make

Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
Shuah Khan 2016-09-16 07:36:21 -06:00
parent 071bf69a02
commit 8fc07ebe63
6 changed files with 11 additions and 9 deletions

View File

@ -1,2 +1,2 @@
subdir-y := accounting auxdisplay blackfin \ subdir-y := accounting blackfin \
laptops pcmcia laptops pcmcia

View File

@ -1,7 +0,0 @@
# List of programs to build
hostprogs-y := cfag12864b-example
# Tell kbuild to always build the programs
always := $(hostprogs-y)
HOSTCFLAGS_cfag12864b-example.o += -I$(objtree)/usr/include

View File

@ -101,5 +101,5 @@ Although the LCD won't get updated until the next refresh time arrives.
Also, you can mmap the framebuffer: open & mmap, munmap & close... Also, you can mmap the framebuffer: open & mmap, munmap & close...
which is the best option for most uses. which is the best option for most uses.
Check Documentation/auxdisplay/cfag12864b-example.c Check samples/auxdisplay/cfag12864b-example.c
for a real working userspace complete program with usage examples. for a real working userspace complete program with usage examples.

View File

@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include
PROGS := cfag12864b-example
all: $(PROGS)
clean:
rm -fr $(PROGS)