mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 04:42:12 +00:00
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:
parent
071bf69a02
commit
8fc07ebe63
@ -1,2 +1,2 @@
|
||||
subdir-y := accounting auxdisplay blackfin \
|
||||
subdir-y := accounting blackfin \
|
||||
laptops pcmcia
|
||||
|
@ -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
|
@ -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.
|
||||
|
9
samples/auxdisplay/Makefile
Normal file
9
samples/auxdisplay/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
CC := $(CROSS_COMPILE)gcc
|
||||
CFLAGS := -I../../usr/include
|
||||
|
||||
PROGS := cfag12864b-example
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
clean:
|
||||
rm -fr $(PROGS)
|
Loading…
Reference in New Issue
Block a user