Hi Andrew,
  Thanks! I have already tried all variation of depex (i.e. replace SMM_DEPEX 
with DXE_DEPEX in all four possible cases) and all leads to the exact same 
error. From the error it does look like tool can't find SectionType (i.e. line 
number matches) but I don't know why..

Unfortunately the build scripts are not so easy to follow by just reading it 
(due to my limited understanding); I was thinking of adding some debug 
statement to spit out information from the tool but I can't rebuild tools 
either. (a separate email send to this group)

I am assuming you all are able to compress the SMM drivers in your build 
environment and don't see this issue. Correct?

Thanks
-Alok Pant

i.e. tried all the combination & all fails; from the documentation it's not 
clear what the first & second reference of AAA_DEPEX means ; Do you?
SMM_DEPEX    SMM_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
SMM_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
DXE_DEPEX    SMM_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex

From: Andrew Fish [mailto:[email protected]]
Sent: Tuesday, September 11, 2012 6:06 PM
To: Pant, Alok
Cc: [email protected]
Subject: Re: [edk2-buildtools] EDKII build issue: Can SMM driver be compressed 
using current toolset

The COMPRESS section, is a standard encapsulation section type, so it should 
not matter what the module type is.

I notice in your working example you are using DXE_DEPEX and your failing 
example is using SMM_DEPEX. You may want to try using SMM_DEPEX in the working 
case to see if that is it.

The error reporting from the Python tools is not the greatest and some times it 
is good to look at the line before and the line after the error.

Andrew Fish


On Sep 11, 2012, at 3:56 PM, Pant, Alok wrote:


Hi all,
I am using UDK.SPI.UP1 source code to build some SMM drivers. Everything is 
fine as long as drivers are uncompressed; but when I change the fdf file as 
below to attempt to compress the SMM driver binary, I get the following error. 
Any suggestion on what I may be doing wrong. Does the tool support SMM driver 
compression?


Thanks
-Alok Pant

Change in FDF file

[Rule.Common.DXE_SMM_DRIVER]
  FILE SMM = $(NAMED_GUID) {
    SMM_DEPEX    SMM_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
    COMPRESS PI_STD {
      GUIDED {
        PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi
      }
    }
  }

#[Rule.Common.DXE_SMM_DRIVER] <== (If I uncomment this section that the build 
works fine but drivers are not compressed)
#  FILE SMM = $(NAMED_GUID) {
#    DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex
#    PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi
#  }



Result in following error


GenFds.EXE...
: error C0DE: Tools code failure
                Please send email to 
[email protected]<mailto:[email protected]>
 for help, attaching following call stack trace!

Traceback (most recent call last):
  File "GenFds.py", line 256, in main
  File "GenFds.py", line 366, in GenFd
  File "Fd.py", line 93, in GenFd
  File "Region.py", line 105, in AddToBuffer
  File "Fv.py", line 111, in AddToBuffer
  File "FfsInfStatement.py", line 279, in GenFfs
  File "FfsInfStatement.py", line 673, in __GenComplexFileSection__
AttributeError: CompressSection instance has no attribute 'SectionType'
..


build...
: error 7000: Failed to execute command
..
(Python 2.5.4 on win32) Traceback (most recent call last):
  File "build.py", line 1824, in Main
  File "build.py", line 1591, in Launch
  File "build.py", line 1505, in _MultiThreadBuildPlatform
  File "build.py", line 288, in LaunchCommand
  File "C:\NightlyTest\FreezeTool\BaseTools\Source\Python\Common\EdkLogger.py", 
line 198, in error
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
edk2-buildtools-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to