Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/pmtools/files: pmtools-20100123-madt.patch pmtools-20100123-cflags-ldflags.patch pmtools-20100123-acpixtract-pmtools.patch
Date: Mon, 05 Apr 2010 05:20:00
Message-Id: E1Nyej8-0003zR-2C@stork.gentoo.org
1 nerdboy 10/04/05 05:19:58
2
3 Added: pmtools-20100123-madt.patch
4 pmtools-20100123-cflags-ldflags.patch
5 pmtools-20100123-acpixtract-pmtools.patch
6 Log:
7 Updated to current release for new turbostat tool; closes bug 308233.
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sys-power/pmtools/files/pmtools-20100123-madt.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-madt.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-madt.patch?rev=1.1&content-type=text/plain
15
16 Index: pmtools-20100123-madt.patch
17 ===================================================================
18 diff -Nuar pmtools-20100123.orig/madt/madt.c pmtools-20100123/madt/madt.c
19 --- pmtools-20100123.orig/madt/madt.c 2005-11-11 18:07:04.000000000 +0100
20 +++ pmtools-20100123/madt/madt.c 2010-03-07 14:39:31.657017114 +0100
21 @@ -26,8 +26,6 @@
22
23 #define printk printf
24
25 -#include "./tables.c"
26 -
27 //#define INPUT_FILE "madt.dat"
28 //#include <sys/types.h>
29 //#include <sys/stat.h>
30 @@ -37,6 +35,8 @@
31 #include <stdio.h> // fread
32 #include <stdlib.h> // malloc
33
34 +#include "./tables.c"
35 +
36 int verbose = 0;
37 /*
38 /* read standard input
39 diff -Nuar pmtools-20100123.orig/madt/Makefile pmtools-20100123/madt/Makefile
40 --- pmtools-20100123.orig/madt/Makefile 2005-11-11 18:07:04.000000000 +0100
41 +++ pmtools-20100123/madt/Makefile 2010-03-07 14:34:17.486002917 +0100
42 @@ -1,3 +1,5 @@
43 +all: madt
44 +
45 test: madt
46 ./madt < APIC
47 madt: madt.c acpi.h tables.c
48 diff -Nuar pmtools-20100123.orig/Makefile pmtools-20100123/Makefile
49 --- pmtools-20100123.orig/Makefile 2010-01-23 19:18:18.000000000 +0100
50 +++ pmtools-20100123/Makefile 2010-03-07 14:33:01.729955480 +0100
51 @@ -1,4 +1,4 @@
52 -DIRS = acpidump acpixtract turbostat
53 +DIRS = acpidump acpixtract madt turbostat
54
55 all:
56 for i in $(DIRS); do $(MAKE) -C $$i $@; done
57
58
59
60 1.1 sys-power/pmtools/files/pmtools-20100123-cflags-ldflags.patch
61
62 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-cflags-ldflags.patch?rev=1.1&view=markup
63 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-cflags-ldflags.patch?rev=1.1&content-type=text/plain
64
65 Index: pmtools-20100123-cflags-ldflags.patch
66 ===================================================================
67 diff -Nuar pmtools-20100123.orig/acpidump/Makefile pmtools-20100123/acpidump/Makefile
68 --- pmtools-20100123.orig/acpidump/Makefile 2006-11-30 13:41:15.000000000 +0100
69 +++ pmtools-20100123/acpidump/Makefile 2010-03-07 14:19:12.337141824 +0100
70 @@ -1,11 +1,11 @@
71 PROG= acpidump
72 SRCS= acpidump.c
73 KERNEL_INCLUDE := ../include
74 -CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Os -s -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE)
75 +CFLAGS += -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D_LINUX -DDEFINE_ALTERNATE_TYPES -I$(KERNEL_INCLUDE)
76
77 all: acpidump
78 $(PROG) : $(SRCS)
79 - $(CC) $(CFLAGS) $(SRCS) -o $(PROG)
80 + $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG)
81
82 CLEANFILES= $(PROG)
83
84 diff -Nuar pmtools-20100123.orig/acpixtract/Makefile pmtools-20100123/acpixtract/Makefile
85 --- pmtools-20100123.orig/acpixtract/Makefile 2006-11-30 13:45:06.000000000 +0100
86 +++ pmtools-20100123/acpixtract/Makefile 2010-03-07 14:19:12.337141824 +0100
87 @@ -6,7 +6,7 @@
88 all: $(PROG)
89
90 $(PROG) : $(SRCS)
91 - $(CC) $(CFLAGS) $(SRCS) -o $(PROG)
92 + $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG)
93
94 CLEANFILES= $(PROG)
95
96 diff -Nuar pmtools-20100123.orig/madt/Makefile pmtools-20100123/madt/Makefile
97 --- pmtools-20100123.orig/madt/Makefile 2005-11-11 18:07:04.000000000 +0100
98 +++ pmtools-20100123/madt/Makefile 2010-03-07 14:22:15.199017246 +0100
99 @@ -1,6 +1,6 @@
100 test: madt
101 ./madt < APIC
102 madt: madt.c acpi.h tables.c
103 - cc -o madt madt.c
104 + $(CC) $(CFLAGS) $(LDFLAGS) madt.c -o madt
105 clean:
106 rm madt
107 diff -Nuar pmtools-20100123.orig/turbostat/Makefile pmtools-20100123/turbostat/Makefile
108 --- pmtools-20100123.orig/turbostat/Makefile 2010-01-23 19:19:32.000000000 +0100
109 +++ pmtools-20100123/turbostat/Makefile 2010-03-07 14:26:10.473010923 +0100
110 @@ -4,7 +4,7 @@
111 all: turbostat
112
113 $(PROG) : $(SRCS)
114 - $(CC) $(CFLAGS) $(SRCS) -o $(PROG)
115 + $(CC) $(CFLAGS) $(LDFLAGS) $(SRCS) -o $(PROG)
116
117 CLEANFILES= $(PROG)
118
119
120
121
122 1.1 sys-power/pmtools/files/pmtools-20100123-acpixtract-pmtools.patch
123
124 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-acpixtract-pmtools.patch?rev=1.1&view=markup
125 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/pmtools/files/pmtools-20100123-acpixtract-pmtools.patch?rev=1.1&content-type=text/plain
126
127 Index: pmtools-20100123-acpixtract-pmtools.patch
128 ===================================================================
129 diff -Nuar pmtools-20100123.orig/acpixtract/acpixtract.c pmtools-20100123/acpixtract/acpixtract.c
130 --- pmtools-20100123.orig/acpixtract/acpixtract.c 2010-01-23 19:31:07.000000000 +0100
131 +++ pmtools-20100123/acpixtract/acpixtract.c 2010-03-07 14:44:32.451141841 +0100
132 @@ -199,7 +199,7 @@
133 void)
134 {
135
136 - printf ("Usage: acpixtract [option] <InputFile>\n");
137 + printf ("Usage: acpixtract-pmtools [option] <InputFile>\n");
138 printf ("\nExtract binary ACPI tables from text acpidump output\n");
139 printf ("Default invocation extracts all DSDTs and SSDTs\n");
140 printf ("Version %8.8X\n\n", VERSION);
141 diff -Nuar pmtools-20100123.orig/madt/README pmtools-20100123/madt/README
142 --- pmtools-20100123.orig/madt/README 2005-11-11 18:07:04.000000000 +0100
143 +++ pmtools-20100123/madt/README 2010-03-07 14:45:31.818052302 +0100
144 @@ -1,7 +1,7 @@
145 User utility to parse the ACPI MADT
146 Hacked out of Linux kernel code to do the same.
147
148 -# ./acpidmp | ./acpixtract APIC | ./madt
149 +# ./acpidmp | ./acpixtract-pmtools APIC | ./madt
150
151 ACPI: APIC (v001 INTEL D845EBT2 0x20021021 MSFT 0x00000097) @ 0x(nil)
152 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
153 diff -Nuar pmtools-20100123.orig/README pmtools-20100123/README
154 --- pmtools-20100123.orig/README 2010-01-23 19:31:52.000000000 +0100
155 +++ pmtools-20100123/README 2010-03-07 14:47:18.286017297 +0100
156 @@ -17,11 +17,11 @@
157
158 # ./acpidump > acpidump.out
159
160 -./acpidump/acpixtract
161 ---------------------
162 +./acpidump/acpixtract-pmtools
163 +-----------------------------
164 Convert ASCII acpidump output to raw binary tables:
165
166 - $ acpixtract/acpixtract -a acpidump.out
167 + $ acpixtract/acpixtract-pmtools -a acpidump.out
168 Acpi table [DSDT] - 15974 bytes written to DSDT.dat
169 Acpi table [FACS] - 64 bytes written to FACS.dat
170 Acpi table [FACP] - 116 bytes written to FACP.dat