Commit Graph

136 Commits

Author SHA1 Message Date
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
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
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
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
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
223f4d39c5 Update Linux-specific script files.
Changes for divergence/patch scripts. Lv Zheng.
2013-03-27 11:36:31 -07: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
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
Robert Moore
cedd5d194a Update linux scripts.
Generation and divergence scripts. Lv Zheng.
2012-11-13 13:06:48 -08:00
Robert Moore
6c783a232a Update linux scripts.
Use the new generic makefiles for acpisrc utility.
Lv Zheng.
2012-09-21 10:34:30 -07:00
Robert Moore
dbf3ef2b43 Remove obsolete "Linux" makefiles.
These makefiles are obsolete and have been replaced by the generic
unix makefiles under acpica/generate/unix.
2012-09-06 08:49:17 -07:00
Robert Moore
6e0b539d0c Divergence script: Auto-select 32/64 versions of AcpiSrc utility.
Automatically determine the host bitwidth and generate the appropriate
version of the AcpiSrc conversion utility.
2012-07-31 10:07:21 -07:00
Robert Moore
4abb1d5754 Makefiles: Update for new file, utxfinit.c
New file created as a result of split of utxface.c
2012-07-19 10:47:55 -07:00
Robert Moore
5a77772e0d Update linux/ACPICA divergence script - add diffstat output.
Creates a diffstat.txt file
2012-07-17 15:08:17 -07:00
Robert Moore
b9058029d3 Linux/ACPICA divergence script: Add error checking.
Add some checks for input, etc.
2012-07-13 14:29:48 -07:00
Robert Moore
ff06513880 Update Linux/ACPICA divergence script.
Ensure operation on multiple types of hosts.
2012-07-13 10:22:24 -07:00
Robert Moore
91948ecb22 Add script to generate Linux/ACPICA divergences.
Simplify tracking of differences between Linux ACPICA code, and
the native ACPICA code.
2012-07-12 14:36:20 -07:00
Robert Moore
e4e99ffc4c Update for unix/linux makefiles.
1) Add -D_FORTIFY_SOURCE=2 to compile flags for Linux generation
2) Use "install" to install the utilities.
2012-07-11 13:50:33 -07:00
Robert Moore
83136604a9 Update makefiles/projectfiles for new file, tbxfload.c
updates all makefiles and MS project files.
2012-06-29 10:55:25 -07:00
Robert Moore
c725de3b1c AcpiHelp: Add new file (utexcep.c) to makefils and project files.
Adds support for the -e option to decode ACPICA exceptions.
2012-06-26 09:14:25 -07:00
Robert Moore
69823cf044 Update makefiles for new file, utexcep.c
Update the linux and unix makefiles.
2012-06-21 13:20:24 -07:00
Robert Moore
3773b5ac3e Project/Make files: Update for file move.
Moved ahpredef.c to the common directory for use by iASL
in addition to AcpiHelp.
2012-05-25 10:20:25 -07:00
Robert Moore
b99aec25a4 iASL: Update Linux/Unix makefiles for new file.
Add aslsupport.l
2012-04-02 14:52:16 -07:00
Robert Moore
c078edaa1c iASL: Update makefiles/project_files for the preprocessor.
New files added for the iASL preprocessor.
2012-03-15 13:48:53 -07:00
Robert Moore
aa4b5c6cfa Split sleep/wake functions into two files.
The functions for the original/legacy sleep/wake registers are
in hwsleep.c, and the functions for the new extended FADT V5
sleep registers are in hwesleep.c
2012-02-10 09:51:30 -08:00
Robert Moore
fe9c654a34 ACPI 5.0: Support for new FADT SleepStatus, SleepControl registers.
Adds sleep and wake support for systems with these registers.
One new file, hwxfsleep.c
2012-01-26 14:01:20 -08:00
Robert Moore
f44723d7e5 Linux makefiles: Update for new unix tarball directory structure.
Update the makefiles to match the updated tarball directory
structure -- which in turn was updated to match the ACPICA
git source tree.
2012-01-18 13:55:45 -08:00
Robert Moore
47f9c4c675 Update linux/unix makefiles for new source file.
Add utaddress.c to the various makefiles.
2011-12-21 13:29:28 -08:00
Robert Moore
a440cb215b ACPI 5.0: New interfaces to allow driver access to AML mutex objects.
Adds AcpiAcquireMutex, AcpiReleaseMutex external interfaces.
New file, utilities/utxfmutex.c.
Lin Ming, Bob Moore.
2011-11-10 10:10:25 +08:00
Robert Moore
b3415fdb2d ACPI 5.0/Makefiles: update for new resource manager file.
New file for new descriptor support.
2011-11-10 10:10:25 +08:00
Robert Moore
7f4d1050bf ACPI 5.0: Update makefiles for new disassembler file.
New file: dmresrcl.c
2011-11-10 10:10:24 +08:00
Robert Moore
59836be063 Update linux patch creation scripts.
Minor updates. Lin Ming.
2011-11-10 10:10:24 +08:00
Robert Moore
1661a43a4c ACPI 5.0: Split new descriptors to new file, aslrestype2s.c
Original file became too large.
2011-11-10 10:10:22 +08:00
Robert Moore
3d58a14139 Linux makefiles: Add header dependencies, simplify.
Add dependencies for ACPICA and local headers.
Simplify by using source directory search via "vpath" in order
to eliminate one explicit rule per object/source file.
2011-08-19 13:45:04 -07:00
Robert Moore
a31ff979a1 AcpiXtract: Port to standard ACPICA environment (adds 64-bit support also.)
Also split out the main() routine to a new file.
2011-06-24 10:36:40 -07:00
Robert Moore
c1a4e553db AcpiHelp: Add support to display non-operator ASL keywords.
Adds -k option to display ASL keywords (Space IDs, etc.)
2011-06-23 08:43:57 -07:00
Robert Moore
1d6a2cb464 Linux makefiles: add helper scripts to run linux makefiles from git tree.
The final linux tree is slightly different, these scripts allow testing
of the makefiles.
2011-06-22 14:02:00 -07:00
Robert Moore
8aa1e098b2 AcpiHelp: Major feature update (AML opcodes, predefined names).
Add additional capabilities.
Now finds AML opcode information (by name or by hex opcode),
and finds information about ACPI predefined names.
2011-06-17 12:47:34 -07:00
Robert Moore
4bcdec146b All makefiles: Remove optimize flags and unneeded defines.
Optimizations like -O2 are seen to cause issues with some compilers.
Remove unneeded defines like DEBUG, _CONSOLE, etc.
Add _GNU_SOURCE to the Linux makefiles.
2011-06-10 10:36:49 -07:00
Robert Moore
6f0bc401ca All makefiles: Cleanup use of command-line #defines.
Common defines now all appear in acenv.h. Simplifies all makefiles.
2011-06-08 15:00:21 -07:00
Robert Moore
fd3949f488 Unix/Linux makefiles: cleanup multithread support.
The only acpica tool that requires multithread support is
acpiexec. Along with previous changes to the actual source code,
this change removes unnecessary use of threading libraries.
2011-06-08 10:11:12 -07:00
Robert Moore
a94cd4cb17 Update linux/unix makefile readme files.
Update for new utilities and new information.
2011-06-07 12:43:15 -07:00
Robert Moore
c30da62310 Linux makefiles: rework and reformat the tool generation makefiles.
Add the same warning flags as the unix makefiles (except for
gcc4-specific warnings.) reformat the files.
2011-06-03 14:19:27 -07:00