1 |
robbat2 08/09/09 06:01:38 |
2 |
|
3 |
Added: iasl-20080701-parallelmake.patch |
4 |
Log: |
5 |
Bug #236027, fix parallel make thanks to patch from flameeyes. |
6 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5-00283-g70bb089 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-power/iasl/files/iasl-20080701-parallelmake.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/files/iasl-20080701-parallelmake.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/iasl/files/iasl-20080701-parallelmake.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: iasl-20080701-parallelmake.patch |
15 |
=================================================================== |
16 |
Index: acpica-unix-20080701.old/compiler/Makefile |
17 |
=================================================================== |
18 |
--- acpica-unix-20080701.old.orig/compiler/Makefile |
19 |
+++ acpica-unix-20080701.old/compiler/Makefile |
20 |
@@ -1,7 +1,7 @@ |
21 |
|
22 |
|
23 |
PROG= iasl |
24 |
-SRCS= aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \ |
25 |
+SRCS= aslcompiler.y.c aslcompilerlex.c aslanalyze.c aslcodegen.c \ |
26 |
aslcompile.c aslerror.c aslfiles.c asllength.c \ |
27 |
asllisting.c aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c \ |
28 |
asloperands.c aslresource.c aslrestype1.c aslrestype2.c aslstartup.c \ |
29 |
@@ -89,6 +89,7 @@ SRCS= aslcompilerparse.c aslcompilerlex. |
30 |
../tables/tbutils.c \ |
31 |
../tables/tbxface.c \ |
32 |
../osunixxf.c |
33 |
+OBJS = $(patsubst %.c,%.o, $(SRCS)) |
34 |
|
35 |
NOMAN= YES |
36 |
CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include |
37 |
@@ -105,17 +106,19 @@ YFLAGS+= -y -pAslCompiler |
38 |
#CFLAGS+= -D_USE_BERKELEY_YACC |
39 |
#.endif |
40 |
|
41 |
-aslmain : $(patsubst %.c,%.o, $(SRCS)) |
42 |
+aslmain : $(OBJS) |
43 |
$(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) \ |
44 |
$(LOADLIBES) $(LDLIBS) -o iasl |
45 |
|
46 |
+$(OBJS): aslcompiler.y.h |
47 |
+ |
48 |
CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \ |
49 |
- aslcompilerparse.c aslcompilerlex.c iasl |
50 |
+ aslcompiler.y.c aslcompilerlex.c iasl |
51 |
+ |
52 |
+aslcompiler.y.h: aslcompiler.y.c |
53 |
|
54 |
-aslcompilerparse.c: aslcompiler.y |
55 |
- ${YACC} ${YFLAGS} aslcompiler.y |
56 |
- cp y.tab.c aslcompilerparse.c |
57 |
- cp y.tab.h aslcompiler.y.h |
58 |
+aslcompiler.y.c: aslcompiler.y |
59 |
+ ${YACC} ${YFLAGS} aslcompiler.y -o aslcompiler.y.c |
60 |
|
61 |
aslcompilerlex.c: aslcompiler.l |
62 |
${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c aslcompiler.l |