Skip to content

Commit

Permalink
samples: move auxdisplay example code from Documentation
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
Shuah Khan committed Sep 23, 2016
1 parent 071bf69 commit 8fc07eb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
subdir-y := accounting auxdisplay blackfin \
subdir-y := accounting blackfin \
laptops pcmcia
7 changes: 0 additions & 7 deletions Documentation/auxdisplay/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/auxdisplay/cfag12864b
Original file line number Diff line number Diff line change
Expand Up @@ -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...
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.
File renamed without changes.
9 changes: 9 additions & 0 deletions samples/auxdisplay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include

PROGS := cfag12864b-example

all: $(PROGS)

clean:
rm -fr $(PROGS)
File renamed without changes.

0 comments on commit 8fc07eb

Please sign in to comment.