summaryrefslogtreecommitdiff
path: root/samples/mei
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2019-10-10 16:27:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-21 19:33:12 +0300
commit6859eba4f6fbc515ea05f53b77ec55f49a6dcf0f (patch)
treefec86adf3858a49c8db000684b010259fb6bf39b /samples/mei
parent834c7360f92ad88155c5628eb10d60419ebaa0df (diff)
downloadlinux-6859eba4f6fbc515ea05f53b77ec55f49a6dcf0f.tar.xz
samples: mei: use hostprogs kbuild constructs
Use hostprogs kbuild constructs to compile mei sample program mei-amt-version Add CONFIG_SAMPLE_INTEL_MEI option to enable/disable the feature. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20191010132710.4075-1-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/mei')
-rw-r--r--samples/mei/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/samples/mei/Makefile b/samples/mei/Makefile
index c7e52e9e92ca..27f37efdadb4 100644
--- a/samples/mei/Makefile
+++ b/samples/mei/Makefile
@@ -1,10 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
-CC := $(CROSS_COMPILE)gcc
-CFLAGS := -I../../usr/include
+# Copyright (c) 2012-2019, Intel Corporation. All rights reserved.
-PROGS := mei-amt-version
+hostprogs-y := mei-amt-version
-all: $(PROGS)
+HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
-clean:
- rm -fr $(PROGS)
+always := $(hostprogs-y)
+
+all: mei-amt-version