822 Commits

Author SHA1 Message Date
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
Jung-uk Kim
79d463c63b Use "uname -p" instead of "uname -m" to detect 64-bit processors on FreeBSD. 2013-06-27 20:01:57 -04:00
Robert Moore
1ad15d5595 AcpiDump: Add preliminary support for FreeBSD.
Adds the OSL file for FreeBSD. Updates makefile.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 10:04:55 -07:00
Robert Moore
4cd5eb8593 Makefiles: Update flags for old GCC and other compilers.
Adds support for FreeBSD, which uses old gcc 4.2
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-19 09:21:14 -07:00
Robert Moore
88982558e5 Makefiles: Update to improve portability.
1) Use $(MAKE) instead of naked make.
2) Consistently use braces instead of parentheses.
Jung-uk Kim <jkim@FreeBSD.org>
2013-06-18 12:34:01 -07:00
Robert Moore
3fc353da22 AcpiDump: Added full support for Linux.
Adds full support for linux platforms. Chao Guan, Bob Moore.
2013-05-31 17:42:48 -07:00
Robert Moore
0ac19a10da Build helpfile: update for new version of ACPICA website.
More instructions on how to update the website.
2013-05-24 14:34:40 -07:00
Robert Moore
6421b9db11 Makefiles: add some additional comments/whitespace.
Update for recent APPLE changes.
2013-05-16 09:41:02 -07:00
Liang Qi
b5de16bf4c Support Mac OS X in Makefile
* gcc and clang both works.
* make install works.
* support PREFIX and HOST.
2013-05-11 22:09:10 +02:00
Robert Moore
3d39b6d688 Tests/ASLTS: Update master script for recent makefile changes.
bin32/bin64 changed to simple "bin".
2013-05-09 09:21:59 -07:00
Robert Moore
11e9350597 Build instructions: Update for new ACPICA website.
New instructions to update the website for a new release.
2013-05-08 13:12:10 -07:00
Robert Moore
f559452036 Unix makefiles: Remove unused cross-platform support.
No longer support generation of 32-bit versions of the ACPICA
applications on a 64-bit platform. This was unused and causes
problems with some compilers due to the use of -m32 and -m64 flags.
2013-05-08 12:42:22 -07:00
Robert Moore
1553228079 iASL: Split large main module into two files.
Adds a new file, asloptions.c, that contains the command-line
option processing.
2013-05-07 13:40:23 -07:00
Robert Moore
d6c105ae00 Update release build script for acpidump.
Add new utility to the ACPICA release script.
2013-05-03 07:48:55 -07:00
Robert Moore
1cf06395c0 Update makefiles and project files for new acpidump utility.
Add acpidump utility.
2013-05-02 09:32:44 -07:00
Robert Moore
2dbd8e17fb Update makefiles and project files for new file.
Add tbprint.c
2013-04-30 08:26:20 -07:00
Robert Moore
fddb804e32 Unix makefile: Abort top-level make on any sub-component error.
Add immediate abort on any errors from any of the sub-components
(AcpiExec, iASL, etc.). Chao Guan. ACPICA BZ 1007.
2013-04-29 09:40:23 -07:00
Robert Moore
a9d8bd031d Update makefiles and project files for new file.
Add uterror.c
2013-04-19 14:15:32 -07:00
Robert Moore
3cc4aaba03 Update makefiles and project files for new file.
Add utbuffer.c
2013-04-19 10:05:13 -07:00
Robert Moore
4cdb22f2d7 Unix/Linux makefiles: Remove use of -O2 flag that causes problems.
For older versions of gcc, -O2 can cause a warning/error concerning
strchr(). This was fixed in gcc 4.5. Chao Guan.
2013-04-16 13:40:11 -07:00
Robert Moore
ad314879f7 Update makefiles and project files for new file.
Add nsarguments.c
2013-04-12 14:32:07 -07:00
Robert Moore
223f4d39c5 Update Linux-specific script files.
Changes for divergence/patch scripts. Lv Zheng.
2013-03-27 11:36:31 -07:00
Robert Moore
c79891a16a iASL: Add support for an "offset table" output file.
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.
2013-03-15 09:27:23 -07:00
Robert Moore
cd230d278a Makefiles and project files: update for new source file.
New file is utilities/utpredef.c
2013-02-27 13:41:51 -08:00
Robert Moore
73fd636107 iASL: Add validation of predefined name package objects.
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.
2013-02-12 13:03:47 -08:00
Robert Moore
c51e7d4ee1 Split object conversion functions to a new file.
New file, nsconvert.c, for return object conversion functions.
Created in preparation for new conversion functions forthcoming.
2013-02-06 10:29:31 -08:00
Robert Moore
711adab7d4 Linux scripts: Make AcpiSrc utility compile optional.
The enhancement of AcpiSrc generation per-commit could not meet
all requirements of the monthly ACPICA -> Linux release process.
This patch allows the per-commit generation to be selected by the
users. Lv Zheng.
2013-02-06 09:35:40 -08:00
Robert Moore
dfa12e559e Makefiles: Change link sequence for better compatibility.
Some compilers need the link flags to be last on the command line.
2013-02-01 09:00:09 -08:00
Robert Moore
fd2161a3c8 Windows project files: Add Makefile/script subprojects.
Add these subprojects to simplify access to the various makefiles
and script files throughout the project.
2013-01-30 12:10:56 -08:00
Robert Moore
3e45e0f238 Update the generic Unix makefiles.
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.
2013-01-24 13:52:41 -08:00
Robert Moore
a37301083f Linuxize: Move acpisrc generation from make-patch.pl to linuxize.sh.
This fix can help to generate correct linuxized patch where the
version of the acpisrc is critical. Lv Zheng.
2013-01-16 09:40:46 -08:00
Robert Moore
f8873db6c0 Linuxize: Add patch header fields for linuxized patches.
Linuxized patches lack patch headers, thus can not be
directly applied to the Linux source codes. This patch updates
the scripts to allow patch headers to be generated for the
linuxized patches. Lv Zheng.
2013-01-16 09:38:17 -08:00