diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2017-11-01 14:25:37 -0500 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-11-03 16:34:00 -0700 |
commit | 9d64fc08f6fe59a7d71e84f650dd2c0f080254dd (patch) | |
tree | 9c1129c2bb3ef63e0f58e8cb914b38ac43f46a15 /tools/wmi/Makefile | |
parent | f2645fa317b8905b8934f06a0601d5b7fa66aba0 (diff) | |
download | linux-9d64fc08f6fe59a7d71e84f650dd2c0f080254dd.tar.bz2 |
tools/wmi: add a sample for dell smbios communication over WMI
This application uses the character device /dev/wmi/dell-smbios
to perform SMBIOS communications from userspace.
It offers demonstrations of a few simple tasks:
- Running a class/select command
- Querying a token value
- Activating a token
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Reviewed-by: Edward O'Callaghan <quasisec@google.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'tools/wmi/Makefile')
-rw-r--r-- | tools/wmi/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/wmi/Makefile b/tools/wmi/Makefile new file mode 100644 index 000000000000..e664f1167388 --- /dev/null +++ b/tools/wmi/Makefile @@ -0,0 +1,18 @@ +PREFIX ?= /usr +SBINDIR ?= sbin +INSTALL ?= install +CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include +CC = $(CROSS_COMPILE)gcc + +TARGET = dell-smbios-example + +all: $(TARGET) + +%: %.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + +clean: + $(RM) $(TARGET) + +install: dell-smbios-example + $(INSTALL) -D -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/$(SBINDIR)/$(TARGET) |