Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fc07ebe authored by Shuah Khan's avatar Shuah Khan
Browse files

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: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 071bf69a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
subdir-y := accounting auxdisplay blackfin \
subdir-y := accounting blackfin \
	laptops pcmcia

Documentation/auxdisplay/Makefile

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
# 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
+1 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include

PROGS := cfag12864b-example

all: $(PROGS)

clean:
	rm -fr $(PROGS)
Loading