Skip to content

Commit 8fc07eb

Browse files
author
Shuah Khan
committed
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 <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 071bf69 commit 8fc07eb

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

Documentation/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
subdir-y := accounting auxdisplay blackfin \
1+
subdir-y := accounting blackfin \
22
laptops pcmcia

Documentation/auxdisplay/Makefile

-7
This file was deleted.

Documentation/auxdisplay/cfag12864b

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ Although the LCD won't get updated until the next refresh time arrives.
101101
Also, you can mmap the framebuffer: open & mmap, munmap & close...
102102
which is the best option for most uses.
103103

104-
Check Documentation/auxdisplay/cfag12864b-example.c
104+
Check samples/auxdisplay/cfag12864b-example.c
105105
for a real working userspace complete program with usage examples.
File renamed without changes.

samples/auxdisplay/Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CC := $(CROSS_COMPILE)gcc
2+
CFLAGS := -I../../usr/include
3+
4+
PROGS := cfag12864b-example
5+
6+
all: $(PROGS)
7+
8+
clean:
9+
rm -fr $(PROGS)

0 commit comments

Comments
 (0)