samples: move misc-devices/mei example code from Documentation

Move misc-devices/mei examples to samples/mei and remove it from
Documentation Makefile. Delete misc-devices/Makefile.

Create a new Makefile to build samples/mei. It can be built from top
level directory or from mei directory:

Run make -C samples/mei or cd samples/mei; make

Acked-by: Jonathan Corbet <corbet@lwn.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
Shuah Khan 2016-09-16 16:07:20 -06:00
parent 6bee835dd5
commit 986b891ad1
8 changed files with 11 additions and 7 deletions

View File

@ -1,2 +1,2 @@
subdir-y := accounting auxdisplay blackfin \
laptops misc-devices pcmcia timers watchdog
laptops pcmcia timers watchdog

View File

@ -1 +0,0 @@
subdir-y := mei

View File

@ -1,5 +0,0 @@
# List of programs to build
hostprogs-y := mei-amt-version
HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
# Tell kbuild to always build the programs
always := $(hostprogs-y)

View File

@ -6244,6 +6244,7 @@ F: include/linux/mei_cl_bus.h
F: drivers/misc/mei/*
F: drivers/watchdog/mei_wdt.c
F: Documentation/misc-devices/mei/*
F: samples/mei/*
INTEL MIC DRIVERS (mic)
M: Sudeep Dutt <sudeep.dutt@intel.com>

9
samples/mei/Makefile Normal file
View File

@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include
PROGS := mei-amt-version
all: $(PROGS)
clean:
rm -fr $(PROGS)