acpica/generate/unix
Robert Moore 015bcb3d8b AcpiExec: Add full line-editing support for Unix/Linux systems.
Adds a portable module to perform line editing via right-arrow,
left-arrow, and the DEL key. Portability is the key here, so
we don't attempt to use readline(), etc.
2013-09-25 12:19:39 -07:00
..
acpibin Update makefiles and project files for new file. 2013-04-19 10:05:13 -07:00
acpidump AcpiDump: Cleanup directory/mapping functions. 2013-08-22 09:04:55 -07:00
acpiexec AcpiExec: Add full line-editing support for Unix/Linux systems. 2013-09-25 12:19:39 -07:00
acpihelp Makefiles and project files: update for new source file. 2013-02-27 13:41:51 -08:00
acpinames Update makefiles and project files for new file. 2013-04-30 08:26:20 -07:00
acpisrc Update the generic Unix makefiles. 2013-01-24 13:52:41 -08:00
acpixtract Update the generic Unix makefiles. 2013-01-24 13:52:41 -08:00
iasl iASL/Makefile: Add parallel compilation support. 2013-09-18 13:15:38 -07:00
Makefile Unix makefiles: Split top level make to Makefile.common file. 2012-06-29 14:21:57 -07:00
Makefile.common Use "uname -p" instead of "uname -m" to detect 64-bit processors on FreeBSD. 2013-06-27 20:01:57 -04:00
Makefile.config iASL/Makefile: Add parallel compilation support. 2013-09-18 13:15:38 -07:00
Makefile.rules Unix makefiles: Remove unused cross-platform support. 2013-05-08 12:42:22 -07:00
readme.txt Update linux/unix makefile readme files. 2011-06-07 12:43:15 -07:00

Generic Unix ACPICA makefiles
-----------------------------

These makefiles are intended to generate the ACPICA utilities in
a Unix-like environment, with the original ACPICA code (not linuxized),
and in the original (git tree) ACPICA directory structure.

Windows binary versions of these tools are available at:

http://www.acpica.org/downloads/binary_tools.php

Documentation is available at acpica.org:

http://www.acpica.org/documentation/

The top level makefile will generate the following utilities:
Note: These utilities are tested and supported as 32-bit versions
only.

acpibin
acpiexec
acpihelp
acpinames
acpisrc
acpixtract
iasl

To generate all utilities:

cd acpica/generate/unix
make
make install   /* install all binaries to /usr/bin */


Requirements
------------

make
gcc compiler (4+)
bison or yacc
flex or lex


Configuration
-------------

The Makefile.config file contains the configuration information:

HOST =       _CYGWIN            /* Host system, must appear in acenv.h */
CC =         gcc                /* C compiler */
ACPICA_SRC = ../../../source    /* Location of acpica source tree */


Intermediate Files
------------------

The intermediate files for each utility (.o, etc.) are placed in the
subdirectory corresponding to each utility, not in the source code 
tree itself. This prevents collisions when different utilities compile
the same source modules with different options.


Output
------

The executable utilities are copied to the local bin directory.

"make install" will install the binaries to /usr/bin



1) acpibin, an AML file tool

acpibin compares AML files, dumps AML binary files to text files,
extracts binary AML from text files, and other AML file
manipulation.


2) acpiexec, a user-space AML interpreter

acpiexec allows the loading of ACPI tables and execution of control
methods from user space. Useful for debugging AML code and testing
the AML interpreter. Hardware access is simulated.


3) acpihelp, syntax help for ASL operators and reserved names

acpihelp displays the syntax for all of the ASL operators, as well
as information about the ASL/ACPI reserved names (4-char names that
start with underscore.)


4) acpinames, load and dump acpi namespace

acpinames loads an ACPI namespace from a binary ACPI table file.
This is a smaller version of acpiexec that loads an acpi table and
dumps the resulting namespace. It is primarily intended to demonstrate
the configurability of ACPICA.


5) acpisrc, a source code conversion tool

acpisrc converts the standard form of the acpica source release (included
here) into a version that meets Linux coding guidelines. This consists
mainly of performing a series of string replacements and transformations
to the code. It can also be used to clean the acpica source and generate
statistics.


6) acpixtract, extract binary ACPI tables from an acpidump

acpixtract is used to extract binary ACPI tables from the ASCII text
output of an acpidump utility (available on several different hosts.)


7) iasl, an optimizing ASL compiler/disassembler

iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine
Language). This AML is suitable for inclusion as a DSDT in system
firmware. It also can disassemble AML, for debugging purposes.