Commit 4305cd02 authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

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: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 391fc234
...@@ -10,18 +10,18 @@ ...@@ -10,18 +10,18 @@
include ../../scripts/Makefile.include include ../../scripts/Makefile.include
all: acpidump all: acpidump ec
clean: acpidump_clean clean: acpidump_clean ec_clean
install: acpidump_install install: acpidump_install ec_install
uninstall: acpidump_uninstall uninstall: acpidump_uninstall ec_uninstall
acpidump: FORCE acpidump ec: FORCE
$(call descend,tools/$@,all) $(call descend,tools/$@,all)
acpidump_clean: acpidump_clean ec_clean:
$(call descend,tools/$(@:_clean=),clean) $(call descend,tools/$(@:_clean=),clean)
acpidump_install: acpidump_install ec_install:
$(call descend,tools/$(@:_install=),install) $(call descend,tools/$(@:_install=),install)
acpidump_uninstall: acpidump_uninstall ec_uninstall:
$(call descend,tools/$(@:_uninstall=),uninstall) $(call descend,tools/$(@:_uninstall=),uninstall)
.PHONY: FORCE .PHONY: FORCE
ec_access: ec_access.o # tools/power/acpi/tools/acpidump/Makefile - ACPI tool Makefile
$(ECHO) " LD " $@ #
$(QUIET) $(LD) $(CFLAGS) $(LDFLAGS) $< -o $@ # Copyright (c) 2015, Intel Corporation
$(QUIET) $(STRIPCMD) $@ # 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 include ../../Makefile.config
$(ECHO) " CC " $@
$(QUIET) $(CC) -c $(CFLAGS) -o $@ $<
all: ec_access TOOL = ec
TOOL_OBJS = \
ec_access.o
install: include ../../Makefile.rules
$(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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment