• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..25-Jul-20198

aslanalyze.cH A D25-Jul-201923 KiB

aslascii.cH A D25-Jul-201912 KiB

aslbtypes.cH A D25-Jul-201919.3 KiB

aslcodegen.cH A D25-Jul-201920.3 KiB

aslcompile.cH A D25-Jul-201926.9 KiB

aslcompiler.hH A D25-Jul-201930.2 KiB

aslcompiler.lH A D25-Jul-201942.6 KiB

aslcstyle.yH A D25-Jul-201915.1 KiB

asldebug.cH A D25-Jul-201911.7 KiB

asldefine.hH A D25-Jul-201910.7 KiB

aslerror.cH A D25-Jul-201929.9 KiB

aslexternal.cH A D25-Jul-201917.5 KiB

aslfileio.cH A D25-Jul-201914.5 KiB

aslfiles.cH A D25-Jul-201930.1 KiB

aslfold.cH A D25-Jul-201928.7 KiB

aslglobal.hH A D25-Jul-201918.1 KiB

aslhelpers.yH A D25-Jul-201913.7 KiB

aslhex.cH A D25-Jul-201915.4 KiB

aslkeywords.yH A D25-Jul-201923.9 KiB

asllength.cH A D25-Jul-201915.9 KiB

asllisting.cH A D25-Jul-201923.3 KiB

asllistsup.cH A D25-Jul-201923.1 KiB

aslload.cH A D25-Jul-201933.1 KiB

asllookup.cH A D25-Jul-201913.8 KiB

aslmain.cH A D25-Jul-201918.1 KiB

aslmap.cH A D25-Jul-201956.3 KiB

aslmapenter.cH A D25-Jul-201913.9 KiB

aslmapoutput.cH A D25-Jul-201921.6 KiB

aslmaputils.cH A D25-Jul-201915.3 KiB

aslmessages.cH A D25-Jul-201924.9 KiB

aslmessages.hH A D25-Jul-201912.6 KiB

aslmethod.cH A D25-Jul-201926.2 KiB

aslnamesp.cH A D25-Jul-201916.2 KiB

asloffset.cH A D25-Jul-201919.1 KiB

aslopcodes.cH A D25-Jul-201926.6 KiB

asloperands.cH A D25-Jul-201935 KiB

aslopt.cH A D25-Jul-201930.2 KiB

asloptions.cH A D25-Jul-201924.9 KiB

aslparser.yH A D25-Jul-20198.4 KiB

aslpld.cH A D25-Jul-201924 KiB

aslpredef.cH A D25-Jul-201927.8 KiB

aslprepkg.cH A D25-Jul-201930.6 KiB

aslprimaries.yH A D25-Jul-201945.4 KiB

aslprintf.cH A D25-Jul-201915.1 KiB

aslprune.cH A D25-Jul-201910.7 KiB

aslresource.cH A D25-Jul-201935.2 KiB

aslresources.yH A D25-Jul-201932.7 KiB

aslrestype1.cH A D25-Jul-201924.4 KiB

aslrestype1i.cH A D25-Jul-201924.5 KiB

aslrestype2.cH A D25-Jul-201919 KiB

aslrestype2d.cH A D25-Jul-201929.5 KiB

aslrestype2e.cH A D25-Jul-201924.8 KiB

aslrestype2q.cH A D25-Jul-201928.9 KiB

aslrestype2s.cH A D25-Jul-201946 KiB

aslrestype2w.cH A D25-Jul-201928.1 KiB

aslrules.yH A D25-Jul-201929.6 KiB

aslstartup.cH A D25-Jul-201917.5 KiB

aslstubs.cH A D25-Jul-201911.2 KiB

aslsupport.lH A D25-Jul-201925.9 KiB

aslsupport.yH A D25-Jul-20197.9 KiB

asltokens.yH A D25-Jul-201920.3 KiB

asltransform.cH A D25-Jul-201928.2 KiB

asltree.cH A D25-Jul-201945.5 KiB

asltypes.hH A D25-Jul-201914.3 KiB

asltypes.yH A D25-Jul-201915.1 KiB

aslutils.cH A D25-Jul-201929.3 KiB

asluuid.cH A D25-Jul-20198.9 KiB

aslwalks.cH A D25-Jul-201932.2 KiB

aslxref.cH A D25-Jul-201941 KiB

aslxrefout.cH A D25-Jul-201926.9 KiB

dtcompile.cH A D25-Jul-201923.2 KiB

dtcompiler.hH A D25-Jul-201919.7 KiB

dtexpress.cH A D25-Jul-201914.8 KiB

dtfield.cH A D25-Jul-201919.4 KiB

dtio.cH A D25-Jul-201932.4 KiB

dtparser.lH A D25-Jul-20198.5 KiB

dtparser.yH A D25-Jul-201914.2 KiB

dtsubtable.cH A D25-Jul-201913.7 KiB

dttable.cH A D25-Jul-201910.9 KiB

dttable1.cH A D25-Jul-201948.7 KiB

dttable2.cH A D25-Jul-201946.3 KiB

dttemplate.cH A D25-Jul-201920.1 KiB

dttemplate.hH A D25-Jul-201983.8 KiB

dtutils.cH A D25-Jul-201927.9 KiB

new_table.txtH A D25-Jul-20193.5 KiB

preprocess.hH A D25-Jul-201911.9 KiB

prexpress.cH A D25-Jul-201913.2 KiB

prmacros.cH A D25-Jul-201920 KiB

prparser.lH A D25-Jul-201910.3 KiB

prparser.yH A D25-Jul-201914.4 KiB

prscan.cH A D25-Jul-201937.5 KiB

prutils.cH A D25-Jul-201917.3 KiB

readme.txtH A D25-Jul-20194.3 KiB

readme.txt

1/*
2 * Miscellaneous instructions for building and using the iASL compiler.
3 */
4Last update 9 December 2013.
5
6
71) Generating iASL from source
8------------------------------
9
10Generation of the ASL compiler from source code requires these items:
11
12    1) The ACPICA source code tree.
13    2) An ANSI C compiler.
14    3) The Flex (or Lex) lexical analyzer generator.
15    4) The Bison (or Yacc) parser generator.
16
17There are three major ACPICA source code components that are required to
18generate the compiler (Basically, the entire ACPICA source tree should
19be installed):
20
21    1) The ASL compiler source.
22    2) The ACPICA Core Subsystem source. In particular, the Namespace
23        Manager component is used to create an internal ACPI namespace
24        and symbol table, and the AML Interpreter is used to evaluate
25        constant expressions.
26    3) The "common" source directory that is used for all ACPI components.
27
28
291a) Notes for Linux/Unix generation
30-----------------------------------
31
32iASL has been generated with these versions of Flex/Bison:
33
34    flex:  Version 2.5.32
35    bison: Version 2.6.2
36
37Other required packages:
38
39    make
40    gcc C compiler
41    m4 (macro processor required by bison)
42
43On Linux/Unix systems, the following commands will build the compiler:
44
45    cd acpica (or cd acpica/generate/unix)
46    make clean
47    make iasl
48
49
501b) Notes for Windows generation
51--------------------------------
52
53On Windows, the Visual Studio 2008 project file appears in this directory:
54
55    generate/msvc9/AcpiComponents.sln
56
57The Windows versions of GNU Flex/Bison must be installed, and they must
58be installed in a directory that contains no embedded spaces in the
59pathname. They cannot be installed in the default "c:\Program Files"
60directory. This is a bug in Bison. The default Windows project file for
61iASL assumes that these tools are installed at this location:
62
63    c:\GnuWin32
64
65Once the tools are installed, ensure that this path is added to the
66default system $Path environment variable:
67
68    c:\GnuWin32\bin
69
70Goto: ControlPanel/System/AdvancedSystemSettings/EnvironmentVariables
71
72Important: Now Windows must be rebooted to make the system aware of
73the updated $Path. Otherwise, Bison will not be able to find the M4
74interpreter library and will fail.
75
76iASL has been generated with these versions of Flex/Bison for Windows:
77
78    Flex for Windows:  V2.5.4a
79    Bison for Windows: V2.4.1
80
81Flex is available at:  http://gnuwin32.sourceforge.net/packages/flex.htm
82Bison is available at: http://gnuwin32.sourceforge.net/packages/bison.htm
83
84
85
862) Integration as a custom tool for Visual Studio
87-------------------------------------------------
88
89This procedure adds the iASL compiler as a custom tool that can be used
90to compile ASL source files. The output is sent to the VC output 
91window.
92
93a) Select Tools->Customize.
94
95b) Select the "Tools" tab.
96
97c) Scroll down to the bottom of the "Menu Contents" window. There you
98   will see an empty rectangle. Click in the rectangle to enter a 
99   name for this tool.
100
101d) Type "iASL Compiler" in the box and hit enter. You can now edit
102   the other fields for this new custom tool.
103
104e) Enter the following into the fields:
105
106   Command:             C:\Acpi\iasl.exe
107   Arguments:           -vi "$(FilePath)"
108   Initial Directory    "$(FileDir)"
109   Use Output Window    <Check this option>
110
111   "Command" must be the path to wherever you copied the compiler.
112   "-vi" instructs the compiler to produce messages appropriate for VC.
113   Quotes around FilePath and FileDir enable spaces in filenames.
114
115f) Select "Close".
116
117These steps will add the compiler to the tools menu as a custom tool.
118By enabling "Use Output Window", you can click on error messages in
119the output window and the source file and source line will be
120automatically displayed by VC. Also, you can use F4 to step through
121the messages and the corresponding source line(s).
122
123
124
1253) Integrating iASL into a Visual Studio ASL project build
126----------------------------------------------------------
127
128This procedure creates a project that compiles ASL files to AML.
129
130a) Create a new, empty project and add your .ASL files to the project
131
132b) For all ASL files in the project, specify a custom build (under
133Project/Settings/CustomBuild with the following settings (or similar):
134
135Commands:
136    c:\acpi\libraries\iasl.exe -vs -vi "$(InputPath)"
137
138Output:
139    $(InputDir)\$(InputPath).aml
140