All functions defined for the linuxizing scripts lack "local"
declarations. This patch adds "local" for all such variables. No
functional changes. Lv Zheng.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.