Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+11 -9
+1 -1
Documentation/Makefile
··· 1 - subdir-y := accounting auxdisplay blackfin \ 1 + subdir-y := accounting blackfin \ 2 2 laptops pcmcia
Documentation/auxdisplay/.gitignore samples/auxdisplay/.gitignore
-7
Documentation/auxdisplay/Makefile
··· 1 - # List of programs to build 2 - hostprogs-y := cfag12864b-example 3 - 4 - # Tell kbuild to always build the programs 5 - always := $(hostprogs-y) 6 - 7 - HOSTCFLAGS_cfag12864b-example.o += -I$(objtree)/usr/include
+1 -1
Documentation/auxdisplay/cfag12864b
··· 101 101 Also, you can mmap the framebuffer: open & mmap, munmap & close... 102 102 which is the best option for most uses. 103 103 104 - Check Documentation/auxdisplay/cfag12864b-example.c 104 + Check samples/auxdisplay/cfag12864b-example.c 105 105 for a real working userspace complete program with usage examples.
Documentation/auxdisplay/cfag12864b-example.c samples/auxdisplay/cfag12864b-example.c
+9
samples/auxdisplay/Makefile
··· 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)