Commit 8fc07ebe authored by Shuah Khan's avatar Shuah Khan

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: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 071bf69a
subdir-y := accounting auxdisplay blackfin \ subdir-y := accounting blackfin \
laptops pcmcia laptops pcmcia
# 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
...@@ -101,5 +101,5 @@ Although the LCD won't get updated until the next refresh time arrives. ...@@ -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.
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include
PROGS := cfag12864b-example
all: $(PROGS)
clean:
rm -fr $(PROGS)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment