diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-04-04 00:39:56 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-20 16:59:40 -0400 |
commit | edbe47c18659588726154153e7596a50843b5e55 (patch) | |
tree | 9962053e3d89bb295451794578131272ce7e76bf | |
parent | e2b9035f7368b8141e8c9f1d0bcc012e20e16ac1 (diff) |
ACPICA: acpidump: Update Makefile to build acpidump from ACPICA.
This patch updates tools Makefile to use new acpidump.
ACPICA's acpidump relies on various ACPICA components/common/os_specific
source code. They are located in various kernel folders, being searched
and compiled using vpath technique in Makefile. These files include:
1. drivers/acpi/acpica/acapps.h
2. tools/power/acpi/common/getopt.c
3. tools/power/acpi/common/cmfsize.c
4. tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
5. tools/power/acpi/os_specific/service_layers/osunixdir.c
6. tools/power/acpi/os_specific/service_layers/osunixmap.c
This patch has been tested on DELL Inspiron Mini, acpidump output can be
successfully generated by typing the following commands:
# cd tools/power/acpi
# make DEBUG=false
# sudo make install DESTDIR=/opt
# sudo make uninstall DESTDIR=/opt
# make clean
Or
# cd tools
# make acpi
# sudo make acpi_install
# sudo make acpi_uninstall
# make acpi_clean
A kernel build test is also performed on DELL Inspiron Mini to verify that
the changes done to actypes.h and aclinux.h won't affect the kernel
build process.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | tools/power/acpi/Makefile | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/tools/power/acpi/Makefile b/tools/power/acpi/Makefile index d9186a2fdf06..98625fa2baf1 100644 --- a/tools/power/acpi/Makefile +++ b/tools/power/acpi/Makefile | |||
@@ -68,7 +68,8 @@ WARNINGS += $(call cc-supports,-Wstrict-prototypes) | |||
68 | WARNINGS += $(call cc-supports,-Wdeclaration-after-statement) | 68 | WARNINGS += $(call cc-supports,-Wdeclaration-after-statement) |
69 | 69 | ||
70 | KERNEL_INCLUDE := ../../../include | 70 | KERNEL_INCLUDE := ../../../include |
71 | CFLAGS += -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE) | 71 | ACPICA_INCLUDE := ../../../drivers/acpi/acpica |
72 | CFLAGS += -D_LINUX -I$(KERNEL_INCLUDE) -I$(ACPICA_INCLUDE) | ||
72 | CFLAGS += $(WARNINGS) | 73 | CFLAGS += $(WARNINGS) |
73 | 74 | ||
74 | ifeq ($(strip $(V)),false) | 75 | ifeq ($(strip $(V)),false) |
@@ -101,10 +102,29 @@ endif | |||
101 | # --- ACPIDUMP BEGIN --- | 102 | # --- ACPIDUMP BEGIN --- |
102 | 103 | ||
103 | vpath %.c \ | 104 | vpath %.c \ |
104 | tools/acpidump | 105 | ../../../drivers/acpi/acpica\ |
106 | tools/acpidump\ | ||
107 | common\ | ||
108 | os_specific/service_layers | ||
109 | |||
110 | CFLAGS += -DACPI_DUMP_APP -Itools/acpidump | ||
105 | 111 | ||
106 | DUMP_OBJS = \ | 112 | DUMP_OBJS = \ |
107 | acpidump.o | 113 | apdump.o\ |
114 | apfiles.o\ | ||
115 | apmain.o\ | ||
116 | osunixdir.o\ | ||
117 | osunixmap.o\ | ||
118 | tbprint.o\ | ||
119 | tbxfroot.o\ | ||
120 | utbuffer.o\ | ||
121 | utexcep.o\ | ||
122 | utmath.o\ | ||
123 | utstring.o\ | ||
124 | utxferror.o\ | ||
125 | oslinuxtbl.o\ | ||
126 | cmfsize.o\ | ||
127 | getopt.o | ||
108 | 128 | ||
109 | DUMP_OBJS := $(addprefix $(OUTPUT)tools/acpidump/,$(DUMP_OBJS)) | 129 | DUMP_OBJS := $(addprefix $(OUTPUT)tools/acpidump/,$(DUMP_OBJS)) |
110 | 130 | ||