Laszlo:
  ASLPP_FLAGS  is required to be updated. Please try it. 

[BuildOptions]
GCC:*_*_*_ASLPP_FLAGS         == -x c -E -include AutoGen.h

Thanks
Liming
-----Original Message-----
From: Laszlo Ersek [mailto:[email protected]] 
Sent: Tuesday, July 01, 2014 9:31 PM
To: [email protected]
Subject: Re: [edk2] Sync BaseTools Trunk (version r2669) to EDKII main trunk

The questionably intelligent sourceforge mail server rejected my first sending 
of this email due to "Blacklisted file extension detected". I had attached 
files with suffixes
- patch
- inf
- iii
- iiii
- lst

I can't see why those are offensive, but hey who said that a development 
mailing list daemon should be flexible and try to classify attachments based on 
contents.

Anyway I'm resending the msg body without any attachments, for any wider 
discussion. I addressed Liming directly in my first posting, so he likely got 
the full package.

Thanks
Laszlo

Hello Liming,

On 06/19/14 12:26, Gao, Liming wrote:
> Laszlo:
>   Yes. This patch fixes it. To let it work, you also need to configure
>   GCC:*_*_*_ASLPP_FLAGS to include AutoGen.h in Platform DSC file.
>
>   The default GCC ASLPP Flags in tools_def.txt is the below, which has
>   no '-include AutoGen.h'. But, PCD definition is generated in AutoGen.h.
>   DEFINE GCC_ASLPP_FLAGS             = -x c -E -P

I tried this, and it doesn't work. Please see the attached patch. (Not posting 
it for review right now, just explaining what I tried.)

I get the following build output:

> Build environment: 
> Linux-3.10.0-123.1.2.el7.x86_64-x86_64-with-redhat-7.0-Maipo
> Build start time: 12:29:39, Jul.01 2014
>
> WORKSPACE        = WS
> ECP_SOURCE       = WS/EdkCompatibilityPkg
> EDK_SOURCE       = WS/EdkCompatibilityPkg
> EFI_SOURCE       = WS/EdkCompatibilityPkg
> EDK_TOOLS_PATH   = WS/BaseTools
>
>
> Architecture(s)  = IA32
> Build target     = DEBUG
> Toolchain        = GCC48
>
> Active Platform          = WS/OvmfPkg/OvmfPkgIa32.dsc
> Active Module            = WS/OvmfPkg/AcpiTables/AcpiTables.inf
> Flash Image Definition   = WS/OvmfPkg/OvmfPkgIa32.fdf
>
> Processing meta-data ..... done!
> Generating code . done!
> Generating makefile . done!
> Building ... WS/OvmfPkg/AcpiTables/AcpiTables.inf [IA32] Trim 
> --asl-file -o 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.i -i 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/inc.lst WS/OvmfPkg/AcpiTables/Ssdt.asl "gcc" -x c -E -P -include 
> AutoGen.h -IWS/OvmfPkg/AcpiTables 
> -IWS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/DEB
> UG -IWS/MdePkg -IWS/MdePkg/Include -IWS/MdePkg/Include/Ia32 
> -IWS/OvmfPkg -IWS/OvmfPkg/Include -IWS/OvmfPkg/AcpiTables 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.i > 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.iii Trim --source-code -l -o 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.iiii 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.iii "iasl"  
> -pWS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUT
> PUT/./Ssdt.aml 
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPU
> T/./Ssdt.iiii Compiler aborting due to parser-detected syntax error(s)
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Ssdt.iiii
>       1:
>
> Intel ACPI Component Architecture
> Error    6126 - syntax error, unexpected PARSEOP_NAMESEG, expecting 
> PARSEOP_DEFINITIONBLOCK and premature End-Of-File
> ASL Optimizing Compiler version 20130823-64 [Jan 28 2014]
>
> Copyright (c) 2000 - 2013 Intel Corporation
> make: *** 
> [WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTP
> UT/Ssdt.aml] Error 255
>
> ASL Input:     
> WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Ssdt.iiii
>  - 1 lines, 6 bytes, 0 keywords
>
> Compilation complete. 1 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
>
>
> build.py...
>  : error 7000: Failed to execute command
>         make all 
> [WS/Build/OvmfIa32/DEBUG_GCC48/IA32/OvmfPkg/AcpiTables/AcpiTables]
> Build report can be found at /home/lacos/tmp/build.report
>
> - Failed -
> Build end time: 12:29:45, Jul.01 2014
> Build total time: 00:00:06

I'm also attaching the generated files from the Build directory in question. 
Note that "Ssdt.i" (the output of the first Trim command) is nowhere to find.

Thanks,
Laszlo


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse Turn 
processes into business applications with Bonita BPM Community Edition Quickly 
connect people, data, and systems into organized workflows Winner of BOSSIE, 
CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft 
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to