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.
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>
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.
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>
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.
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
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.
/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>
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>
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>
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.
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>
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.
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>
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>