Print this page
12386 acpixtract tries to fopen("")
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/acpi/iasl/Makefile
+++ new/usr/src/cmd/acpi/iasl/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 -# Copyright (c) 2018, Joyent, Inc.
11 +# Copyright 2020 Joyent, Inc.
12 12 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
13 13 #
14 14 # Adapted from acpica/generate/unix/iasl/Makefile, which lacked a copyright
15 15 # notice.
16 16 #
17 17 PROG= iasl
18 18
19 19 include ../../Makefile.cmd
20 20 include ../../Makefile.cmd.64
21 21 include ../../Makefile.ctf
22 22
23 23 OBJS = aslanalyze.o aslascii.o aslbtypes.o aslcodegen.o aslcompile.o \
24 24 asldebug.o aslerror.o aslexternal.o aslfileio.o \
25 25 aslfiles.o aslfold.o aslhex.o asllength.o asllisting.o asllistsup.o \
26 26 aslload.o asllookup.o aslmain.o aslmap.o aslmapenter.o aslmapoutput.o \
27 27 aslmaputils.o aslmessages.o aslmethod.o aslnamesp.o asloffset.o \
28 28 aslopcodes.o asloperands.o aslopt.o asloptions.o aslpld.o aslpredef.o \
29 29 aslprepkg.o aslprintf.o aslprune.o aslresource.o aslrestype1.o \
30 30 aslrestype1i.o aslrestype2.o aslrestype2d.o aslrestype2e.o \
31 31 aslrestype2q.o aslrestype2s.o aslrestype2w.o aslstartup.o aslstubs.o \
32 32 asltransform.o asltree.o aslutils.o asluuid.o aslwalks.o aslxref.o \
33 33 aslxrefout.o dtcompile.o dtexpress.o dtfield.o dtio.o \
34 34 dtsubtable.o dttable.o dttable1.o dttable2.o dttemplate.o dtutils.o \
35 35 prexpress.o prmacros.o prscan.o prutils.o \
36 36 aslallocate.o aslcache.o aslhelp.o aslparseop.o cvcompiler.o \
37 37 cvparser.o cvdisasm.o
38 38 # ../common
39 39 OBJS += adfile.o acfileio.o adisasm.o adwalk.o ahids.o ahtable.o ahpredef.o \
40 40 ahuuids.o dmextern.o dmrestag.o dmtbinfo.o dmtbinfo1.o dmtbinfo2.o \
41 41 dmtbinfo3.o dmtable.o dmtbdump.o dmtbdump1.o dmtbdump2.o dmtbdump3.o \
42 42 getopt.o osl.o osunixxf.o dmswitch.o
43 43 # usr/src/common/acpica/disassembler
44 44 OBJS += dmbuffer.o dmcstyle.o dmdeferred.o dmnames.o dmopcode.o dmresrc.o \
45 45 dmresrcl.o dmresrcl2.o dmresrcs.o dmtables.o dmutils.o dmwalk.o
46 46 # usr/src/common/acpica/dispatcher
47 47 OBJS += dsargs.o dscontrol.o dsfield.o dsobject.o dsopcode.o dsutils.o \
48 48 dswload.o dswload2.o dswexec.o dswscope.o dswstate.o dspkginit.o
49 49 # usr/src/common/acpica/executer
50 50 OBJS += exconcat.o exconvrt.o excreate.o exdump.o exmisc.o exmutex.o exnames.o \
51 51 exoparg1.o exoparg2.o exoparg3.o exoparg6.o exprep.o exresolv.o \
52 52 exresop.o exresnte.o exstore.o exstoren.o exstorob.o exsystem.o \
53 53 exutils.o
54 54 # usr/src/common/acpica/namespace
55 55 OBJS += nsaccess.o nsalloc.o nsdump.o nsnames.o nsobject.o nsparse.o \
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
56 56 nssearch.o nsutils.o nswalk.o
57 57 # usr/src/common/acpica/parser
58 58 OBJS += psargs.o psloop.o psobject.o psopcode.o psopinfo.o psparse.o psscope.o pstree.o \
59 59 psutils.o pswalk.o
60 60 # usr/src/common/acpica/tables
61 61 OBJS += tbdata.o tbfadt.o tbinstal.o tbprint.o tbutils.o tbxface.o
62 62 # usr/src/common/acpica/utilities
63 63 OBJS += utaddress.o utalloc.o utascii.o utbuffer.o utcache.o utcopy.o \
64 64 utdebug.o utdecode.o utdelete.o uterror.o utexcep.o utglobal.o uthex.o \
65 65 utinit.o utlock.o utmath.o utmisc.o utmutex.o utnonansi.o utobject.o \
66 - utownerid.o utpredef.o utprint.o utresdecode.o utresrc.o utstate.o \
66 + utownerid.o utpredef.o utresdecode.o utresrc.o utstate.o \
67 67 utstring.o utstrsuppt.o utstrtoul64.o utuuid.o utxface.o utxferror.o
68 68
69 69 SRCS = $(OBJS:.o=.c)
70 70
71 71 ACPI_CMN_SRC = $(SRC)/common/acpica
72 72
73 73 # Source used only by iasl
74 74 ASL_COMPILER = compiler
75 75 ACPICA_DEBUGGER = debugger
76 76 # Source used by kernel module and iasl
77 77 ACPICA_DISASSEMBLER = $(ACPI_CMN_SRC)/disassembler
78 78 ACPICA_DISPATCHER = $(ACPI_CMN_SRC)/dispatcher
79 79 ACPICA_EXECUTER = $(ACPI_CMN_SRC)/executer
80 80 ACPICA_NAMESPACE = $(ACPI_CMN_SRC)/namespace
81 81 ACPICA_PARSER = $(ACPI_CMN_SRC)/parser
82 82 ACPICA_TABLES = $(ACPI_CMN_SRC)/tables
83 83 ACPICA_UTILITIES = $(ACPI_CMN_SRC)/utilities
84 84 # Source used by other programs and iasl
85 85 ACPICA_COMMON = ../common
86 86
87 87 VPATH = $(ACPICA_DEBUGGER):$(ACPICA_DISASSEMBLER):\
88 88 $(ACPICA_DISPATCHER):$(ACPICA_EXECUTER):$(ACPICA_NAMESPACE):\
89 89 $(ACPICA_PARSER):$(ACPICA_TABLES):$(ACPICA_UTILITIES):\
90 90 $(ACPICA_COMMON):$(ACPICA_OSL)
91 91
92 92 INTERMEDIATES = \
93 93 aslcompiler.y \
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
94 94 aslcompilerlex.c \
95 95 aslcompilerparse.c \
96 96 dtparserlex.c \
97 97 dtparserparse.c \
98 98 prparserlex.c \
99 99 prparserparse.c \
100 100 aslcompiler.y.h \
101 101 dtparser.y.h \
102 102 prparser.y.h
103 103
104 -CERRWARN += -_gcc=-Wno-unused-function
105 -
106 -# not linted
104 +# too much noise
107 105 SMATCH=off
108 106
109 107 CPPFLAGS += -I$(SRC)/uts/intel/sys/acpi -DACPI_ASL_COMPILER -I.
110 108
111 109 LEX_C_FILES = aslcompilerlex.c dtparserlex.c prparserlex.c
112 110 YACC_C_FILES = aslcompilerparse.c dtparserparse.c prparserparse.c
113 111 YACC_H_FILES = aslcompiler.y.h dtparser.y.h prparser.y.h
114 112 YACC_FILES = $(YACC_C_FILES) $(YACC_H_FILES)
115 113
116 114 aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h := PARSER = AslCompiler
117 115 aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h := LY_BASE = aslcompiler
118 116
119 117 dtparserlex.c dtparserparse.c dtparser.y.h := PARSER = DtParser
120 118 dtparserlex.c dtparserparse.c dtparser.y.h := LY_BASE = dtparser
121 119
122 120 prparserlex.c prparserparse.c prparser.y.h := PARSER = PrParser
123 121 prparserlex.c prparserparse.c prparser.y.h := LY_BASE = prparser
124 122
125 123 $(LEX_C_FILES) := LEXFILE = $(LY_BASE).l
126 124 $(LEX_C_FILES) := LEXFILE = $(LY_BASE).l
127 125 $(YACC_FILES) := YTABC = $(LY_BASE)parse.c
128 126
129 127 $(YACC_C_FILES:.c=.o) := CERRWARN += -_gcc=-Wno-char-subscripts
130 128
131 129 OBJS += $(LEX_C_FILES:.c=.o) $(YACC_C_FILES:.c=.o)
132 130
133 131 GM4FLAGS = -P
134 132 LFLAGS = -i -s
135 133
136 134 .KEEP_STATE:
137 135
138 136 all: $(YACC_FILES) .WAIT $(PROG)
139 137
140 138 aslcompiler.y: aslparser.y
141 139 $(GM4) $(GM4FLAGS) aslparser.y > $@
142 140
143 141 $(LEX_C_FILES):
144 142 $(FLEX) $(LFLAGS) -P$(PARSER) -o $@ $(LEXFILE)
145 143
146 144 %parse.h: %parse.c
147 145
148 146 %parse.c %.y.h: %.y
149 147 _suffix=`echo $@ | awk -F. '{print $$NF}'` && \
150 148 _d=`mktemp -d $(PARSER).XXXXXX` && \
151 149 (cd $$_d && $(BISON) -o y.tab.c -v -d -p$(PARSER) ../$(LY_BASE).y) && \
152 150 mv $$_d/y.tab.$$_suffix $@; \
153 151 _ret=$$?; \
154 152 rm -rf $$_d; \
155 153 exit $$_ret
156 154
157 155 $(PROG): $(OBJS)
158 156 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
159 157 $(POST_PROCESS)
160 158
161 159 install: all $(ROOTUSRSBINPROG)
162 160
163 161 clean:
164 162 $(RM) $(OBJS) $(INTERMEDIATES) $(PROG)
165 163 $(RM) -r AslCompiler.?????? DtParser.?????? PrParser.??????
166 164
167 165 include ../../Makefile.targ
↓ open down ↓ |
51 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX