-
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.
tools/power/acpi: Enable build for EC userspace tool
This patch allows EC userspace tool to be built as an ACPI tool. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
- Loading branch information
Lv Zheng
authored and
Rafael J. Wysocki
committed
Jul 31, 2015
1 parent
391fc23
commit 4305cd0
Showing
2 changed files
with
22 additions
and
27 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
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,22 +1,17 @@ | ||
ec_access: ec_access.o | ||
$(ECHO) " LD " $@ | ||
$(QUIET) $(LD) $(CFLAGS) $(LDFLAGS) $< -o $@ | ||
$(QUIET) $(STRIPCMD) $@ | ||
# tools/power/acpi/tools/acpidump/Makefile - ACPI tool Makefile | ||
# | ||
# Copyright (c) 2015, Intel Corporation | ||
# Author: Lv Zheng <lv.zheng@intel.com> | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; version 2 | ||
# of the License. | ||
|
||
%.o: %.c | ||
$(ECHO) " CC " $@ | ||
$(QUIET) $(CC) -c $(CFLAGS) -o $@ $< | ||
include ../../Makefile.config | ||
|
||
all: ec_access | ||
TOOL = ec | ||
TOOL_OBJS = \ | ||
ec_access.o | ||
|
||
install: | ||
$(INSTALL) -d $(DESTDIR)${sbindir} | ||
$(INSTALL_PROGRAM) ec_access $(DESTDIR)${sbindir} | ||
|
||
uninstall: | ||
- rm -f $(DESTDIR)${sbindir}/ec_access | ||
|
||
clean: | ||
-rm -f $(OUTPUT)ec_access | ||
|
||
.PHONY: all install uninstall | ||
include ../../Makefile.rules |