forked from microsoft/WSL2-Linux-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: move mic/mpssd example code from Documentation
Move mic/mpssd examples to samples and remove it from Documentation Makefile. Create a new Makefile to build mic/mpssd. It can be built from top level directory or from mic/mpssd directory: Run make -C samples/mic/mpssd or cd samples/mic/mpssd; make Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
- Loading branch information
Shuah Khan
committed
Sep 20, 2016
1 parent
3d2c86e
commit 6bee835
Showing
10 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
subdir-y := accounting auxdisplay blackfin \ | ||
laptops mic misc-devices pcmcia timers watchdog | ||
laptops misc-devices pcmcia timers watchdog |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ifndef CROSS_COMPILE | ||
uname_M := $(shell uname -m 2>/dev/null || echo not) | ||
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) | ||
|
||
ifeq ($(ARCH),x86) | ||
|
||
PROGS := mpssd | ||
CC = $(CROSS_COMPILE)gcc | ||
CFLAGS := -I../../../usr/include -I../../../tools/include | ||
|
||
ifdef DEBUG | ||
CFLAGS += -DDEBUG=$(DEBUG) | ||
endif | ||
|
||
all: $(PROGS) | ||
mpssd: mpssd.c sysfs.c | ||
$(CC) $(CFLAGS) mpssd.c sysfs.c -o mpssd -lpthread | ||
|
||
install: | ||
install mpssd /usr/sbin/mpssd | ||
install micctrl /usr/sbin/micctrl | ||
|
||
clean: | ||
rm -fr $(PROGS) | ||
|
||
endif | ||
endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.