Sfoglia il codice sorgente

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>
Shuah Khan 9 anni fa
parent
commit
986b891ad1

+ 1 - 1
Documentation/Makefile

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

+ 0 - 1
Documentation/misc-devices/Makefile

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

+ 0 - 5
Documentation/misc-devices/mei/Makefile

@@ -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)

+ 1 - 0
MAINTAINERS

@@ -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>

+ 0 - 0
Documentation/misc-devices/mei/.gitignore → samples/mei/.gitignore


+ 9 - 0
samples/mei/Makefile

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

+ 0 - 0
Documentation/misc-devices/mei/TODO → samples/mei/TODO


+ 0 - 0
Documentation/misc-devices/mei/mei-amt-version.c → samples/mei/mei-amt-version.c