Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1193768 > unrolled thread
| Started by | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| First post | 2015-07-28 07:30 +0200 |
| Last post | 2015-07-28 07:30 +0200 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/2] tools/power/acpi: Fix ACPI tools build issues. Lv Zheng <lv.zheng@intel.com> - 2015-07-28 07:30 +0200
[PATCH 2/2] tools/power/acpi: Enable build for EC userspace tool. Lv Zheng <lv.zheng@intel.com> - 2015-07-28 07:30 +0200
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Date | 2015-07-28 07:30 +0200 |
| Subject | [PATCH 0/2] tools/power/acpi: Fix ACPI tools build issues. |
| Message-ID | <pR5CG-86P-7@gated-at.bofh.it> |
Currently tools/power/acpi is broken: 1. acpidump build is broken because utnonansi.o is not linked. 2. ec build is broken because descend build is not supported. This patch fixes the above issues. Lv Zheng (2): tools/power/acpi: Add descend support in ACPI tools Makefile. tools/power/acpi: Enable build for EC userspace tool. tools/power/acpi/Makefile | 168 +++--------------------------- tools/power/acpi/Makefile.config | 92 ++++++++++++++++ tools/power/acpi/Makefile.rules | 37 +++++++ tools/power/acpi/tools/acpidump/Makefile | 53 ++++++++++ tools/power/acpi/tools/ec/Makefile | 33 +++--- 5 files changed, 213 insertions(+), 170 deletions(-) create mode 100644 tools/power/acpi/Makefile.config create mode 100644 tools/power/acpi/Makefile.rules create mode 100644 tools/power/acpi/tools/acpidump/Makefile -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Date | 2015-07-28 07:30 +0200 |
| Subject | [PATCH 2/2] tools/power/acpi: Enable build for EC userspace tool. |
| Message-ID | <pR5CH-86P-31@gated-at.bofh.it> |
| In reply to | #1193768 |
This patch allows EC userspace tool to be built as an ACPI tool.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
tools/power/acpi/Makefile | 16 ++++++++--------
tools/power/acpi/tools/ec/Makefile | 33 ++++++++++++++-------------------
2 files changed, 22 insertions(+), 27 deletions(-)
diff --git a/tools/power/acpi/Makefile b/tools/power/acpi/Makefile
index 3d05237..e882c83 100644
--- a/tools/power/acpi/Makefile
+++ b/tools/power/acpi/Makefile
@@ -10,18 +10,18 @@
include ../../scripts/Makefile.include
-all: acpidump
-clean: acpidump_clean
-install: acpidump_install
-uninstall: acpidump_uninstall
+all: acpidump ec
+clean: acpidump_clean ec_clean
+install: acpidump_install ec_install
+uninstall: acpidump_uninstall ec_uninstall
-acpidump: FORCE
+acpidump ec: FORCE
$(call descend,tools/$@,all)
-acpidump_clean:
+acpidump_clean ec_clean:
$(call descend,tools/$(@:_clean=),clean)
-acpidump_install:
+acpidump_install ec_install:
$(call descend,tools/$(@:_install=),install)
-acpidump_uninstall:
+acpidump_uninstall ec_uninstall:
$(call descend,tools/$(@:_uninstall=),uninstall)
.PHONY: FORCE
diff --git a/tools/power/acpi/tools/ec/Makefile b/tools/power/acpi/tools/ec/Makefile
index b7b0b92..75d8a12 100644
--- a/tools/power/acpi/tools/ec/Makefile
+++ b/tools/power/acpi/tools/ec/Makefile
@@ -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
--
1.7.10
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web