summaryrefslogtreecommitdiff
path: root/generate/unix/iasl/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Efi edk2"revert-143-efi-edk2Robert Moore2016-06-151-0/+1
|
* Merge pull request #143 from zetalog/efi-edk2Robert Moore2016-06-151-1/+0
|\ | | | | Efi edk2
| * Clib: Eliminate AcpiOsXXXFile()/AcpiLogError and link clibrary ↵Lv Zheng2016-06-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | fxxx()/errno/perror() instead This patch follows new ACPICA design, eliminates old portable OSLs, and implements fopen/fread/fwrite/fclose/fseek/ftell for GNU EFI environment. This patch also eliminates AcpiLogError(), convering them into fprintf(stderr)/perror(). Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
* | iASL: update makefileRobert Moore2016-06-101-1/+0
| | | | | | | | Don't use new bison file (internal file for now).
* | iASL: Split some of the ASL parse rules files.Robert Moore2016-06-101-3/+6
|/ | | | Broken into more logical groups of rules.i
* Update makefiles/project-files for new source fileRobert Moore2016-04-191-0/+1
| | | | New file is utascii.c
* Do not use "-o" option at all.Jung-uk Kim2016-03-231-3/+5
| | | | | | | "-o" option is an extension for GNU Bison. Although many modern POSIX yacc implementations have this extension now, POSIX itself does not support it. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html
* Work around a Berkeley Yacc (byacc) bug, simplify, and clean up.Jung-uk Kim2016-03-221-6/+6
| | | | | | | | | | | - byacc has a bug in "-o" option parsing. Prefix may not be set properly if its argument contains ".c" somewhere before the actual output file name. With "byacc -ofoo.cXXXXX/foo.c -d foo.y", for example, it generates "foo.h" instead of "foo.cXXXXX/foo.h" because ".cXXXXX/foo.c" is replaced with ".h". - Prefer a GNU make built-in function, suffix(), rather than a series of complex variable substitutions, to improve readability. - Use symbol prefix for output file name to reduce external command uses. - Exit with a meaningful exit status to make it more like a real function.
* iASL: Split support for ToPLD macro to a new fileRobert Moore2016-03-031-0/+1
| | | | Adds aslpld.c
* Intepreter: Add object extensions to Concatenate operandRobert Moore2016-02-191-0/+1
| | | | | | | | | Allows all object types to be used with Concatenate. Objects other than Int/Str/Buf are convert to a string that contains the type of the object. Improves the utility of the Printf and Fprintf macros. Adds a new file, exconcat.c
* iASL: Add support for option to create cross-reference fileRobert Moore2016-02-111-0/+1
| | | | | -lx option: creates a large, multiple cross-reference file. Intended mostly for BIOS developers.
* ACPI 6.0/iASL: Add support for the External AML opcodeRobert Moore2016-01-291-0/+1
| | | | | | | Support for both the compiler and disassembler. Also, the interpreter will ignore this opcode if it is ever encountered (should not happen). David Box.
* iASL: Update for parse tree debug outputRobert Moore2016-01-221-0/+1
| | | | | | 1) Cleanup output 2) Enhance output with additional data (namestrings, etc.) 3) Adds a new file: asldebug.c
* Disassembler/tools: Support for multiple ACPI tables in one fileRobert Moore2015-11-051-1/+3
| | | | Matches the support in iASL and AcpiExec.
* iASL: Split large data table compiler file into three filesRobert Moore2015-10-161-0/+2
| | | | dttable.c -> dttable, dttable1, dttable2
* iASL: Additional restructuring of main parser rule files.Robert Moore2015-08-201-0/+1
| | | | Adds aslresources.y
* iASL: Split rules for symbolic operators to a new file.Robert Moore2015-08-201-0/+1
| | | | Adds aslcstyle.y
* Set a variable before use. No functional change.Jung-uk Kim2015-08-061-1/+1
|
* iASL: Support POSIX yacc again.Jung-uk Kim2015-07-201-17/+18
|
* Makefile/iASL: Remove obsolete dmobject.c file.Robert Moore2015-07-151-1/+0
| | | | This file no longer exists.
* Cleanup use of all non-ANSI local C library functions.Robert Moore2015-06-261-0/+1
| | | | | | | | ACPICA implements all non-ANSI functions locally. However, there are sometimes two or more versions of the same function throughout the ACPICA code. This change fixes this. Adds a new file, utilities/utnonansi.c
* Update project/makefiles for method tracing feature.Robert Moore2015-06-251-1/+0
| | | | Also add stubs for some of the tracing functions.
* Executer: Add interpreter tracing mode for method tracing facility.Lv Zheng2015-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AcpiDebugTrace() is the mechanism known as ACPI method tracing that is used by Linux as ACPICA debugging message reducer. This facility can be controlled through Linux ACPI subsystem - /sys/module/acpi/parameters. This facility requires CONFIG_ACPI_DEBUG to be enabled to see ACPICA trace logs in the kernel dmesg output. This patch enhances AcpiDebugTrace() to make it not only a message reducer, but a real tracer to trace AML interpreter execution. Note that in addition to the AML tracer enabling, this patch also updates the facility with the following enhancements: 1. Allow a full path to be specified by the AcpiDebugTrace() API. 2. Allow any method rather than just the entrance of AcpiEvaluateObject() to be traced. 3. All interpreter ACPI_LV_TRACE_POINT messages are collected for ACPI_EXECUTER layer. This patch also updates "trace" command to allow it to perform all Linux method tracing functionalities: 1. "trace aml" to always enable AML execution trace messages (level=TRACE_POINT, layer=EXECUTER) for all control methods. 2. "trace aml \MTHD" to always enable AML execution trace messages for only \MTHD method. 3. "trace aml \MTHD once" to enable AML execution trace messages only once for only \MTHD method. 4. "trace enable" to always enable all trace messsages (level=ALL, layer=ALL) for all control methods. 5. "trace enable \MTHD" to always enable all trace messages for only \MTHD method. 6. "trace enable \MTHD once" to enable all trace messages only once for only \MTHD method. 7. "trace disable" to disable trace facility. The Makefiles of acpinames/iasl are also updated to include exdebug.o and the duplicated stubs are removed after that. Note that since this patch has enhanced the method tracing facility, Linux need also be updated after applying this patch. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
* AcpiHelp: Add option to display all known/supported ACPI tables.Robert Moore2015-05-131-0/+1
| | | | -t option displays all ACPI tables.
* iASL: Add support for Printf and Fprintf macros.Robert Moore2014-10-241-0/+1
| | | | | | | Printf stores to the debug object. Fprintf stores to any named object. %o is the main format specifier since only very limited typechecking can be performed at compile time.
* Disassembler: Add support for C-style operators and expressions.Robert Moore2014-10-241-8/+9
| | | | | Now emit ASL+ code which includes C-style operators. Optionally, legacy text ASL operators can still be emitted.
* iASL: Add option to "prune" parse tree for debug only.Robert Moore2014-10-081-0/+1
| | | | | | | Allows devices, methods, or if/else blocks to be removed from the parse tree in order to attempt to isolate a block of ASL code that is causing a problem. Debug enhancement. David E. Box.
* iASL/Disassembler: Add support for hardware summary mapfiles.Robert Moore2014-09-191-0/+3
| | | | | Adds support for both iASL and the disassembler to create a hardware and connection summary mapfile (via the -lm option.)
* iASL/Makefile/ProjectFile: Update dependencies.Robert Moore2014-09-171-1/+2
| | | | | Update .y file dependencies to correctly build iASL for any .y file changes.
* iASL: Split huge parser file into multiple subfiles. Uses M4.Robert Moore2014-08-081-3/+21
| | | | | | | | | | | Split the main aslcompiler.y file into a master file and 4 included subfiles, using the M4 macro processor to perform the actual include, since Bison does not provide this function. Makefiles/project files updated. M4 is typically included in the Bison package, for both Windows and Unix.
* iASL: Split ASCII support functions to a new file.Robert Moore2014-08-011-0/+1
| | | | New file is aslascii.c
* Makefiles/ProjectFiles: Update for new files.Robert Moore2014-07-181-0/+3
| | | | Update for new files created in the previous commit.
* Utilities: Introduce AcpiLogError() to improve portability.Lv Zheng2014-06-121-0/+2
| | | | | | | | | | | | | | | | | Invocations like fprintf(stderr) and perror() are not portable, this patch introduces AcpiLogError() as a replacement, it is implemented using new portable API - AcpiUtFileVprintf(). Some applications are already referencing utdebug.c, they now need to build utlibcfs.c/utprint.c as well. Note that though AcpiOsInitialize() need to be invoked prior than using this new API, since no users are introduced in this patch, such invocations are not added for applications that link utprint.c in this patch. Futher patches that introduce users of AcpiLogError() should take care of this. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
* Utilities: Cleanup use of ACPI_DEBUGGERLv Zheng2014-05-201-0/+1
| | | | | | | | | | | | | | | | | | The acpinames code defines ACPI_DEBUGGER in order to link AcpiDbReadTableFromFile(). This patch splits the AcpiDbReadTableFromFile() function from the debugger and implements it in a generic utilities API so that acpinames no longer needs to link the debugger for this. Because acpinames needs access to dump functions, ACPI_DEBUG_OUTPUT needs to be defined and AcpiDbgLevel needs to be set to maintain consistent behavior. This patch also cleans up ACPI_DEBUGGER for acpihelp. This patch is required for removing anstubs.c. Without doing this first, removing anstubs.c will lead to many link requirements to all debugger and disassembler objects for acpinames. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
* iASL: Improve handling of exception code blocks.Robert Moore2014-04-111-0/+1
| | | | | | | Split exception codes into three distinct blocks; for the main ASL compiler, Table compiler, and the preprocessor. This allows easy addition of new codes into each block without disturbing the others. Adds one new file, aslmessages.c
* Table Manager: Split tbinstal.c into two files.Robert Moore2014-03-201-0/+1
| | | | | New file is tbdata.c -- management functions for ACPICA table manager data structures.
* Disassembler: Add support to decode _HID and _CID values.Robert Moore2014-02-281-0/+1
| | | | | | | For _HID and _CID, the disassembler will emit a string that describes the device if the _HID/_CID value is recognized. AcpiHelp updated also. AcpiHelp will now search for a specific ID as well as displaying the list of "known" (to ACPICA) IDs.
* ACPICA tools: Add common function to get file size.Robert Moore2014-02-181-0/+1
| | | | | Replaces 7 separate instances of this common function, with full exception handling. One new file, common/cmfsize.c
* iASL/Makefile: Add parallel compilation support.Robert Moore2013-09-181-37/+24
| | | | | | This patch enables parallel compilation for iASL. Fixes issues caused by the YACC header generation. Reported by Andrew McDermott, fixed by Lv Zheng.
* Makefiles: Update to improve portability.Robert Moore2013-06-181-6/+6
| | | | | | 1) Use $(MAKE) instead of naked make. 2) Consistently use braces instead of parentheses. Jung-uk Kim <jkim@FreeBSD.org>
* iASL: Split large main module into two files.Robert Moore2013-05-071-0/+1
| | | | | Adds a new file, asloptions.c, that contains the command-line option processing.
* Update makefiles and project files for new file.Robert Moore2013-04-301-0/+1
| | | | Add tbprint.c
* Update makefiles and project files for new file.Robert Moore2013-04-191-0/+1
| | | | Add uterror.c
* Update makefiles and project files for new file.Robert Moore2013-04-191-0/+1
| | | | Add utbuffer.c
* iASL: Add support for an "offset table" output file.Robert Moore2013-03-151-0/+2
| | | | | | The -so option will create a C table containing offsets of various named objects so that BIOS code can modifiy them easily at boot time. Simplifies BIOS code and provides greater reliability.
* Makefiles and project files: update for new source file.Robert Moore2013-02-271-0/+1
| | | | New file is utilities/utpredef.c
* iASL: Add validation of predefined name package objects.Robert Moore2013-02-121-0/+1
| | | | | | | This change adds validation of static package objects returned by the various predefined names. Object types and package lengths are validated. The code is similar to the repair mechanism within the interpreter, and uses the common predefined name table.
* Update the generic Unix makefiles.Robert Moore2013-01-241-183/+183
| | | | | | 1) Add OPT_CFLAGS to allow the warning flags to by overriden by the command line. Thomas Renninger (trenn@suse.de) 2) Eliminate extraneous spaces from the makefile execution output.
* Makefiles/projectfiles: Update for new files.Robert Moore2012-12-141-0/+5
| | | | Five new iASL files added.
* Unix makefiles: Update for new files.Robert Moore2012-12-121-0/+4
| | | | Eight new files.