845 Commits

Author SHA1 Message Date
Robert Moore
a57482fea5 MSVC project files - remove trailing spaces
Remove trailing spaces from each of the .dsp files
From: ehaouas@noos.fr
2019-11-07 12:55:19 -08:00
Robert Moore
98fc399943 acpinames: Update unix makefile
Adds new files required for module-level code support.
2019-09-25 12:35:36 -07:00
Robert Moore
e0662494d0 acpinames: Update msvc project files for new data files
Add in most of the AML interpreter, etc., to handle
module-level code execution.
2019-09-25 12:34:29 -07:00
Robert Moore
48b54bc7d8 iASL: Update MSVC 2017 project file
Prevent always rebuilding the flex/bison files.
2019-08-30 08:35:57 -07:00
Robert Moore
6d2d9a2328 MSVC project files: Add unix makefiles as a project
Add the unix makefiles as a project to the solution file.
Aids/simplifies editing of the makefiles -- they are not
used during the generation of the MSVC builds.
2019-08-22 12:15:51 -07:00
Robert Moore
512cae4b39
Merge pull request #494 from SchmErik/dt-asl-compile
multiple data table and ASL file compilation
2019-08-15 13:13:08 -07:00
Robert Moore
c3db173766 MSVC project files - fix some warning messages
Cleanup some straggling warnings.
2019-08-14 13:53:08 -07:00
Erik Schmauss
a7a2de9b80 Makefile: add debug flag
Debug flag is set for CFLAGS and LDFLAGS if make is invoked with the
DEBUG flag set to TRUE (make DEBUG=TRUE).

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 13:59:15 -07:00
Robert Moore
ad0022c3f4 iASL: Remove definition of __STDC__ from generation
Caused a couple of warnings with utmisc.c
2019-08-02 13:34:07 -07:00
Robert Moore
182910f78a iASL: change warning level for intermediate files
Change from warn 4 to warn 3 for files generated by bison
(.y.c) to eliminate some warnings about dead code.
2019-08-02 10:09:35 -07:00
Erik Schmauss
7581fee190 adding flex bison files to visual studio
Signed-off-by: Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:54 -07:00
Erik Schmauss
36037bdaf0 iASL: add data table prototype flag
This flag enables the the new flex/bison prototype front-end of the
data table compiler.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:23 -07:00
Robert Moore
f08ef3bebf Update iASL project file
Increase warning level to 4 (from 3).
2019-07-31 14:17:12 -07:00
Robert Moore
a36cc3f864 Remove more vs2017 temp files 2019-07-16 12:22:58 -07:00
Robert Moore
71b9e3834c Remove additional files that are vs2017 temp files
under v15 subdirectory.
2019-07-16 12:20:37 -07:00
Robert Moore
b28401bfae Remove parts of the MSVC2017 build that are temp files
.vs subdirectory.
2019-07-10 13:48:36 -07:00
Robert Moore
8fd3088aa9 Update msvc2017 project file for iASL compiler
Fixes a reference to "msvc" instead of "msvc2017".
2019-07-10 13:32:04 -07:00
Robert Moore
945c9c2196 Tools: update project files to msvc2017
Note: this change deprecates the project files found in
msvc9.
2019-07-03 09:34:34 -07:00
Erik Schmauss
ff5a9c5437 Trivial: fix spelling mistakes
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-14 15:14:57 -08:00
Robert Moore
9104715b26 Build instructions
Small update.
2019-01-15 08:08:08 -08:00
Erik Schmauss
feca5d3bd1 iASL: Makefile: support parent directories with spaces
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-01-09 16:42:31 -08:00
Robert Moore
80ccda56bd Split large interpreter file
New file: exserial.c
2018-09-07 13:32:52 -07:00
Robert Moore
44cd14f169 VC project files: Update for acpiexec
Add source/tools/acpiexec to the include file search path.
2018-08-08 08:43:49 -07:00
Robert Moore
1f78b218f4 Update ACPICA build instructions
Release build instruction file.
2018-06-07 07:13:08 -07:00
Robert Moore
17ec2f46a6 Update for ACPICA build/release instructions
some small changes.
2018-02-14 13:57:06 -08:00
Erik Schmauss
b527d868b8 Linuxize script: ignore actbinfo.h 2018-01-25 09:56:13 -08:00
Robert Moore
a025731aec Restructure ACPI table files
Split/restructure:
Table headers (actbl1*.h)
disassembler table info files (dmtbinfo*.c)
disassembler table dump files (dmtbdump*.c)

Adds 6 new files.
2018-01-05 14:09:54 -08:00
Robert Moore
64ad9c69a1 Create and deploy safe version of strncpy. No functional change
AcpiUtSafeStrncpy - copy and terminate string. Strncpy is not
guaranteed to terminate the copied string if the input is longer
than the length of the target.
2017-12-08 07:35:29 -08:00
Erik Schmauss
0f64a8b94c Makefile: allow support for compilers other than gcc via CC environment variable
Patch credited to Nikolai SAOUKH

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-11-07 08:49:53 -08:00
Robert Moore
ecf9a5ea08 acpiexec: Split 2 large files, no functional change
New files: aeinstall.c aetests.c
2017-10-20 14:09:53 -07:00
Lv Zheng
dfebc3a7a4 EFI: Fix missing utstrsuppt.o build
The following commit added utstrsuppt.c but didn't update EFI build
files, and hence triggered build problems:
 Commit: 610046d444ad781cc36673bf1f030abe50cbc61f
 Subject: Restructure/cleanup all string-to-integer conversion functions
The following patch adds utstrsuppt.c build support to fix the issue.
Reported by Li, ZhijianX and Li, Philip, fixed by Lv Zheng.

Link: https://jira01.devtools.intel.com/browse/OLT-1390
Reported-and-tested-by: Li, ZhijianX <zhijianx.li@intel.com>
Reported-by: Philip Li <philip.li@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-09-20 12:42:46 +08:00
Robert Moore
391096bf3d acpiexec: Add hwtimer.c to the utility
This module was not being included in any ACPICA tool, and thus
not even built until it was included in a kernel.

Also add a few small tests in acpiexec that invoke the timer
interfaces in hwtimer.
2017-09-06 09:48:38 -07:00
Robert Moore
0d3a7f1d96 iASL: Move all allocation functions to new modules
Memory allocation functions are in aslallocate.c
Cache functions are in aslcache.c
2017-09-01 10:38:59 -07:00
Robert Moore
610046d444 Restructure/cleanup all string-to-integer conversion functions
Improve adherence to ACPI spec for implicit and explicit conversions
Adds octal support for constants in ASL code
Adds integer overflow errors for constants during ASL compilation
Eliminates most of the existing complex flags parameters
Simplify support for implicit/explicit runtime conversions
Adds one new file, utilities/utstrsuppt.c
2017-08-18 12:40:31 -07:00
Robert Moore
6cd1ba2619 Merge pull request #288 from zetalog/efi-stdlib
Edk2 stdlib/windows
2017-07-27 14:28:48 -07:00
Robert Moore
0c08790c56 Implement deferred resolution of reference package elements
This change defers the resolution of package elements that
are named references until after the entire namespace has been
loaded from the definition block. This allows such references
to be in fact forward references for both module level code
and control methods.
2017-07-27 13:22:15 -07:00
Lv Zheng
a7c6d65a5d EFI/EDK2: Enable /WX for MSVC builds
/WX turns warning into fatal erros for MSVC builds. We need /WX- during
EDK2 porting to allow agile development.

Now it is time to enable /WX. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:32:15 +08:00
Shao, Ming
f9450316d8 EFI/EDK2: Add support to compile acpidump.efi with StdLib
This patch ports acpidump EDKII build to the environment where EDKII
internal C-library StdLib is used. Shao Ming.

Signed-off-by: "Shao, Ming" <smbest163@163.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:21:48 +08:00
Lv Zheng
4683013633 EFI/EDK2: Allow StdLib target to use different inf/dsc files
This patch adds support in edksetup.sh to allow StdLib build target to
use different inf/dsc files. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:14:26 +08:00
Shao Ming
43ff22215f EFI/EDK2: Add support to compile acpidump.efi on Windows
Several changes are needed to compile EDK-II port of acpidump on
Windows:
1. sort acpi.h inclusion: va_list is used before it's definition, we
   only need to ensure order of acenv.h/acenvex.h/actypes.h.
2. /GL-: enabling global optimization causes memset() to be linked by
   MSVC builds.
3. /DUSE_MS_ABI: to enable simpler uefi_call_wrapper().
4. /D__x86_64__|__i386__: they are strictly required by ACPICA headers,
   but not defined by MSVC.

Signed-off-by: "Shao, Ming" <smbest163@163.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:14:16 +08:00
Alex James
e79e1133a9 Unix makefiles: Add OPT_LDFLAGS and edit NOOPT parsing
Add OPT_LDFLAGS to be specified during compilation for custom linker
flags. Disable optimization (adding -O0) when NOOPT is set to true.
2017-07-11 08:54:58 -05:00
Robert Moore
5b16148558 iASL: Resolve some naming inconsistencies
Fix some confusion between "parse op" and "parse node".
Adds a new file, aslparseop.c
Consistently use "parse op" to describe the elements of the
parse tree data structure.
An "Op" is the primary data structure element, even though
it sounds odd.
2017-06-02 10:26:16 -07:00
Robert Moore
8fef392bf2 acpiexec: Split exception/signal handlers to new file
new file is aeexception.c
2017-05-24 13:35:34 -07:00
Robert Moore
cd816f3948 Merge pull request #255 from zetalog/acpica-1703
Acpica 1703
2017-04-27 14:45:05 -07:00
Lv Zheng
e30ebbb92f acpisrc: Fix linuxize conversion of converter structures
Converter related structures are released to Linux kernel while they
are not correctly linuxized. This patch fixes this issue. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-04-27 17:23:47 +08:00
Robert Moore
00906ae0af Split resource descriptor decode strings to a new file
There are enough of these strings to justify a separate file.
Also, these strings are only used for the disassembler and
the debugger. Thus, this change improves ACPICA modularity.
2017-04-14 09:16:27 -07:00
Robert Moore
335d5198f4 Makefiles: Add "make status" rule
Also some cleanup of output
2017-03-15 08:39:01 -07:00
David E. Box
3c36625def disassembler: improve Switch support
Changes the resource descriptor parse tree walk to a general
preprocessing walk and calls the Switch conversion code from here.
Move Switch code to new dmswitch.c file. Also improves algorithm to
handle multiple levels of Switch statements and perform legacy
disassembly for older or otherwise non-spec compliant Switch
implementations.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
2017-03-09 14:07:52 -08:00
Robert Moore
243bde6fb3 Reduce verbosity of the standard makefiles
Eliminate output of compile switches, etc. for every compiled file.
Cleans up output. Switches are almost always the same anyway,
2017-03-09 13:41:18 -08:00
Erik Schmauss
7dae4d8797 Makefile: enable compilation of ACPICA tools as 32-bit programs
This is to facilitate compiling ACPICA tools as 32-bit programs on 64-bit machines.

To build as 32 bit programs, set the M32 variable to true when running make

Example: make M32=TRUE

Note: if the above results in a compilation error, there is a possibility
that 32-bit libraries may not be installed. If this is the case, run the
following command (on Ubuntu compiling with gcc)

    sudo apt-get install g++-multilib libc6-dev-i386

and run make again.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-03-01 14:43:48 -08:00