653 Commits

Author SHA1 Message Date
Robert Moore
2f6f0d2f4a iASL: Improve handling of exception code blocks.
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
2014-04-11 14:47:23 -07:00
Lv Zheng
3c1fecab89 acpidump: Update new structures and add missing file.
This patch updates release automation with new structures and files that
are used by the newly released acpidump.  Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2014-04-10 09:55:21 +08:00
Robert Moore
9d278086a1 Makefiles: Add additional automatic host detection.
Adds auto-detect for FreeBSD and MacOSx.
Ronnie Dilli, Jung-uk Kim.
2014-04-03 11:42:04 -07:00
Robert Moore
7f27ee779a Update acpisubsystem MS project file.
Adds a new file, tbdata.c
2014-03-25 09:30:17 -07:00
Robert Moore
f7009bfa08 AcpiDump: Add support to generate acpidump release.
This pactch adds AcpiDump release automation support. Lv Zheng.
2014-03-25 07:58:36 -07:00
Robert Moore
e7818427a2 Table Manager: Split tbinstal.c into two files.
New file is tbdata.c -- management functions for ACPICA table
manager data structures.
2014-03-20 14:12:15 -07:00
David E. Box
54cfe2454d Modify instructions for updating release version on acpica.org.
acpica.org now supports using a token to modify all page references to the
release version. Updates the instructions in build.txt.
2014-03-12 20:20:43 -07:00
Robert Moore
fe1009618e Disassembler: Add support to decode _HID and _CID values.
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.
2014-02-28 14:51:56 -08:00
Robert Moore
1824846998 ACPICA tools: Add common function to get file size.
Replaces 7 separate instances of this common function, with
full exception handling. One new file, common/cmfsize.c
2014-02-18 13:18:17 -08:00
Robert Moore
221fcf4bb3 Unix makefiles: Add a few new compile time warning options.
Some additional gcc 4+ warnings are now enabled.
2014-02-14 09:44:44 -08:00
Robert Moore
548bef3d1a iASL: Remove -g option (get ACPI tables from registry).
This option was only available on Windows. It has been made obsolete
by the acpidump utility, so it is removed from iASL.
2014-02-13 09:23:19 -08:00
Robert Moore
2171e9bafb Update ACPICA build/release instructions.
Add additional info about accounts and documentation.
2014-01-15 12:16:06 -08:00
Robert Moore
2bfdbca305 Update acpica library project file for new debugger file.
Adds dbtest.c
2014-01-14 09:25:56 -08:00
Robert Moore
3f4da4257d AcpiSrc: Add support for patch files.
This change add support to invoke necessary conversions on patch
descriptions in the release process so that human intervention can be reduced.

After applying, data types/structures and mixed case words will be
converted.  It reduces human intervention greatly but we still need to
check the URL address fields (From/Signed-off-by/Buglink/Reported-by/
Tested-by/Original-by/etc.) after conversion as there are low
possibilities that they are matched to the target conversion types.
Lv Zheng.
2014-01-10 14:06:33 -08:00
Robert Moore
360c69d564 Debugger: Add new command to read/write/compare all namespace objects.
This command "test objects" will exercise the entire namespace by
writing new values to each data object, and ensuring that the write
was successful. The original value is then restored and verified.
2014-01-10 09:42:57 -08:00
Robert Moore
41711e6686 Build script: Add example program makefile.
The example code is now a working program, add it to the unix
makefile tree.
2013-12-19 07:42:30 -08:00
Robert Moore
40bbabbc18 Linuxize: Cleanup format conversions.
As AcpiSrc supports the case that the input/output files are the same file,
ACPICA_TMP is not useful for divergence.sh any more.
This patch cleans up ACPICA_TMP by invoking new linuxize_format() function
provided by libacpica.sh.  A similar cleanup is also done in gen-repo.sh in
this patch. Lv Zheng.
2013-12-17 13:30:25 -08:00
Robert Moore
da63493b97 Examples: Update makefiles and project files.
Update for recent changes to the example ACPICA code.
2013-12-13 14:19:26 -08:00
Robert Moore
5465b066f8 Update master build file for ACPICA release packages.
Use quiet mode for dos2unix, unix2dos and pkzip25. This makes the
output of the build much easier to read.
2013-12-09 13:30:06 -08:00
Robert Moore
64a2d59ee9 Update the various ACPICA build readme files.
Miscellaneous fixes and clarifications to help new users generate
the ACPICA code from source.
2013-12-09 13:28:57 -08:00
Robert Moore
4b0367593e Unix makefiles: Add option to disable optimizations and _FORTIFY_SOURCE
Some older compilers have problems compiling ACPICA with optimizations
(reportedly, gcc 4.4 for example). This change adds a command line
option for make (NOOPT) that disables all compiler optimizations and
the _FORTIFY_SOURCE compiler flag. The default optimization is -O2
with the _FORTIFY_SOURCE flag specified. ACPICA BZ 1034.
Lv Zheng, Bob Moore.
2013-11-14 13:37:02 -08:00
Robert Moore
04c53d76ff Update ACPICA build instruction file (build.txt).
Add more detail to the "required tools" section to clarify not
only what tools are needed, but why they are needed, and add pointers
to additional instruction readme files in ACPICA.
2013-11-14 10:31:01 -08:00
Robert Moore
1097e067b9 Linux: Consistently use the bash shell for linuxize scripts.
This patch changes "sh" to "bash" as there are only limitted
shell clones tested for the linuxize scripts.  Lv Zheng.
2013-11-14 08:43:05 -08:00
Robert Moore
ef9997164a Update scripts to use "." instead of "source".
Improves portability of the various scripts. Lv Zheng.
2013-11-08 08:11:48 -08:00
Robert Moore
b018dde949 Tests/ASLTS: Enable CHECKSUM_ABORT to allow feature to be tested properly.
This patch fixes the failure reported for the following ASLTS test:
 exceptions:exc_tbl:TLD1.tstf

The "FAIL" is emitted due to the lackness of AE_BAD_CHECKSUM exception
generation which can be fixed by compiling acpiexec to generate a different
version for ASLTS environment.  Lv Zheng.

The command to confirm this test:
 aslts.sh -c exc_tbl -t
The result in __STATUS_OF_TESTS before applying this fix:
 ":STST:exceptions:exc_tbl:TLD1.tstf:FAIL:Errors # 02 00 00 00:"
The result in __STATUS_OF_TESTS after applying this fix:
 ":STST:exceptions:exc_tbl:TLD1.tstf:PASS:"
2013-11-07 13:57:37 -08:00
Robert Moore
37910d344c Fix some miscellaneous Linux generation issues.
Fixes some issues detected by the divergences check step of the ACPICA
20130927 release QA process:

1. AcpiSrc -i mode is not executed for divergence.sh.
2. 2 files containing ACPI_EXPORT_SYMBOL are not marked with
   EXPORT_ACPI_INTERFACES.
Lv Zheng.
2013-11-07 12:54:59 -08:00
Robert Moore
969f84309d Add required tools to ACPICA build instructions.
Add the various required tools used to generate the ACPICA release
packages.
2013-11-07 12:53:44 -08:00
Robert Moore
e5db7558da ACPICA build: Include "makefile.config" in all source code packages.
This file was missing in all of the acpica source code packages because
it starts with a lower case m instead of upper case.
2013-10-05 17:55:30 -07:00
Robert Moore
b14456e34e Update ACPICA build instruction file (build.txt).
Clarify some steps.
2013-09-27 13:21:30 -07:00
Robert Moore
bffc163770 AcpiSrc: Add support to modify include file paths/names.
This change adds support to enable AcpiSrc to modify include file
pathnames and/or filenames. This is useful for linuxization.
Lv Zheng.
2013-09-27 08:27:15 -07:00
Robert Moore
b83c59cdca Linuxize: Add local declarations for script subfunctions.
All functions defined for the linuxizing scripts lack "local"
declarations.  This patch adds "local" for all such variables.  No
functional changes.  Lv Zheng.
2013-09-27 08:10:00 -07:00
Robert Moore
d09bc88ad2 AcpiSrc: Fix indentation issues for macro invocations.
During the linuxizing process, some extra white spaces are added by the
"indent" program at the beginning of the line which is an invocation of a
macro and there is no ";" at the end of the line.

This patch adds new mode to AcpiSrc to remove extra spaces inserted before
invoking such macros and add an empty line between the invocations of such
macros (like the other function declarations).  This new mode is executed
after executing "indent" during the Linux release process.

The affected macros and files are:
 1. ACPI_HW_DEPENDENT_RETURN (acpixf.h):
    This macro is used as a wrapper for hardware dependent APIs to offer a
    stub when the reduced hardware is configured during compilation.
 2. ACPI_EXPORT_SYMBOL (utglobal.c):
    This macro is used by Linux to export symbols to be found by Linux
    modules.  All such invocations are well formatted except those exported
    as global variables.

This can help to reduce the source code differences between Linux and
ACPICA, and also help to automate the release process.  Lv Zheng.
2013-09-26 08:33:05 -07:00
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
Robert Moore
3262a4bfb0 Linuxize: Change indentation of C labels.
It is reported by kernel build test systems that all ACPICA linuxized
files have incorrect label indentation.  This patch changes default indent
option to fix this bug.  Lv Zheng.
2013-09-19 07:58:02 -07:00
Robert Moore
d8a0e964dd iASL/Makefile: Add parallel compilation support.
This patch enables parallel compilation for iASL. Fixes issues
caused by the YACC header generation.
Reported by Andrew McDermott, fixed by Lv Zheng.
2013-09-18 13:15:38 -07:00
Robert Moore
c0671907c6 Linuxize: Fix several issues in libacpica.sh
This patch includes the following fixes:
1. removes non-Linux header files from release process.
2. makes the path names in the generated divergences diff to be relative
   path names.
These changes affect the scripts in the generate/linux folder.  Lv Zheng.
2013-09-18 12:46:01 -07:00
Robert Moore
a7b23d6256 Linuxize: Split git-extract.sh into two scripts.
This patch splits git-extract.sh so that the changes made in the
scripts can be linuxized into patches. Lv Zheng.
2013-09-18 12:41:12 -07:00
Robert Moore
93c1c10009 iASL: Implement wildcard support for -e option (get external tables).
This change implements wildcard support for this option. It also
removes the local implementation of wildcard expansion. This part
affects the windows version only. Windows version is now linked
to the setargv.obj library to get this support.
2013-08-30 13:05:16 -07:00
Robert Moore
1ce28e58d5 AcpiExec: Remove local wildcard support.
This change affects windows version only; AcpiExec now is linked
to the windows setargv.obj which implements wildcards. So, all
code related to wildcards is now removed.
2013-08-30 13:02:21 -07:00
Robert Moore
b53ee89773 Update ACPICA build instruction file (build.txt).
Fix some missing steps.
2013-08-23 13:21:52 -07:00
Robert Moore
ac4b505600 Linux scripts: Update file permissions to add execute.
Simple change to add execute permission as the default.
2013-08-23 08:19:18 -07:00
Robert Moore
181e81c61a AcpiDump: Update for windows OSL and project file.
Port windows version to the recent AcpiDump changes.
2013-08-22 09:31:27 -07:00
Robert Moore
4805c565d8 AcpiDump: Cleanup directory/mapping functions.
This patch splits file mapping implementation from AcpiDump to form a new
OSL osunixmap.c.
The invocations of AcpiOsMap/UnmapMemory are split into the table related
mappings and the memory related mappings in this patch.
This patch also cleans up opendir/readdir/closedir in AcpiDump by replacing
them with OSL directory iteration implementation.  Lv Zheng.
2013-08-22 09:04:55 -07:00
Robert Moore
e4eeff5dba Linuxize scripts: Add an ACPICA release library.
This patch removes deprecated generate/linux/patches folder, moves useful
release scripts to the generate/linux folder, reduces code redundancy by
creating a script library libacpica.sh file under generate/linux folder.
Lv Zheng.
2013-08-22 08:33:00 -07:00
Robert Moore
2160740a2d Linux patch makefiles: Improve patch generation.
The make-patches.pl will generate patches with broken patch descriptions.  This
is because the script is written to generate Linuxized patches for CVS commits.
The complexity in the make-patches.pl is not needed as GIT has offered many
features to let the patch descriptions to be extracted correctly from the
command line.
The new make-patches.sh script invokes git-extract.sh to provide equivalent
functionalities as make-patches.pl for ACPICA release.  This patch also modifies
the git-extract.sh to allow generation of patches that can be used as a part of
an ACPICA release patch set.  Lv Zheng.
2013-07-31 14:52:18 -07:00
Robert Moore
8751a199dc Add new linux generation script for ACPICA.
git-extract.sh: can extract:
1. Linux source tree at a specified commit point
2. Linux patch for a specified commit From ACPICA repository
Lv Zheng.
2013-07-24 09:37:27 -07:00
Robert Moore
7d16594c20 Linux scripts: Update acpisrc generation script.
bin32 and bin64 are now obsolete, update script.
2013-07-19 09:43:58 -07:00
Robert Moore
58bcc6c515 Merge pull request #16 from juikim/master
AcpiDump: tidy up for FreeBSD
2013-07-03 13:44:19 -07:00
Robert Moore
d1aadfc5f0 Update ACPICA build instructions.
Small fix for updating the website.
2013-07-03 12:08:15 -07:00
Jung-uk Kim
6d2f24b8c6 Fix binary installations for FreeBSD.
Also strip binaries and set mode by default.
2013-06-27 20:03:09 -04:00