diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2016-09-16 07:36:21 -0600 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-09-23 11:52:32 -0600 |
commit | 8fc07ebe63a40c312730da28e54dbb4fc6029ca3 (patch) | |
tree | 49a5b4e05471682b45760a8276033d102661ed64 | |
parent | 071bf69a0220253a44acb8b2a27f7a262b9a46bf (diff) | |
download | linux-8fc07ebe63a40c312730da28e54dbb4fc6029ca3.tar.bz2 |
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>
-rw-r--r-- | Documentation/Makefile | 2 | ||||
-rw-r--r-- | Documentation/auxdisplay/Makefile | 7 | ||||
-rw-r--r-- | Documentation/auxdisplay/cfag12864b | 2 | ||||
-rw-r--r-- | samples/auxdisplay/.gitignore (renamed from Documentation/auxdisplay/.gitignore) | 0 | ||||
-rw-r--r-- | samples/auxdisplay/Makefile | 9 | ||||
-rw-r--r-- | samples/auxdisplay/cfag12864b-example.c (renamed from Documentation/auxdisplay/cfag12864b-example.c) | 0 |
6 files changed, 11 insertions, 9 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index b2210b7af2e5..0b8cd503224c 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -1,2 +1,2 @@ -subdir-y := accounting auxdisplay blackfin \ +subdir-y := accounting blackfin \ laptops pcmcia diff --git a/Documentation/auxdisplay/Makefile b/Documentation/auxdisplay/Makefile deleted file mode 100644 index ada4dac99ef4..000000000000 --- a/Documentation/auxdisplay/Makefile +++ /dev/null @@ -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 diff --git a/Documentation/auxdisplay/cfag12864b b/Documentation/auxdisplay/cfag12864b index eb7be393a510..12fd51b8de75 100644 --- a/Documentation/auxdisplay/cfag12864b +++ b/Documentation/auxdisplay/cfag12864b @@ -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. diff --git a/Documentation/auxdisplay/.gitignore b/samples/auxdisplay/.gitignore index 7af222860a96..7af222860a96 100644 --- a/Documentation/auxdisplay/.gitignore +++ b/samples/auxdisplay/.gitignore diff --git a/samples/auxdisplay/Makefile b/samples/auxdisplay/Makefile new file mode 100644 index 000000000000..05e471feb6e5 --- /dev/null +++ b/samples/auxdisplay/Makefile @@ -0,0 +1,9 @@ +CC := $(CROSS_COMPILE)gcc +CFLAGS := -I../../usr/include + +PROGS := cfag12864b-example + +all: $(PROGS) + +clean: + rm -fr $(PROGS) diff --git a/Documentation/auxdisplay/cfag12864b-example.c b/samples/auxdisplay/cfag12864b-example.c index e7823ffb1ca0..e7823ffb1ca0 100644 --- a/Documentation/auxdisplay/cfag12864b-example.c +++ b/samples/auxdisplay/cfag12864b-example.c |