Hi Laszlo.
I've been looking at Trim.py.
It has interesting code to strip out some struct stuff from preprocessed files, 
and modify Hex numbers, etc.
Unfortunately, this is not currently done for .ASL, or would be wrong were it 
done (via options).

I assume the tool is intended for this sort of thing, but has not got the 
functionality we would like yet.
I'm told there is a seperate mailing group for edk2 tools, but I can't find it 
via SourceForge.
I assume you could suggest changes, or even submit patches to get Trim to do 
what you need.

I'd quite like to do that myself, but I'm caught up in other things right now.

One thing you could try is to have the .ASL in its own directory with its own 
.INF file, so only the required PCDs appear in AutoGen.h.

Sorry,
Ifan

PS: I top posted to save everyone the nause of reading the back story, 'cos I'm 
considerate.  :-)
      
----- Original Message -----
From: Laszlo Ersek <ler...@redhat.com>
To: edk2-devel@lists.sourceforge.net
Cc: Jordan Justen <jljus...@gmail.com>; Paolo Bonzini <pbonz...@redhat.com>; 
ifan.ll...@yahoo.co.uk
Sent: Tuesday, 31 July 2012, 13:22
Subject: Re: [edk2] using PCDs in ASL, try 2 [was: QEMU debug port]

On 07/30/12 12:16, Laszlo Ersek wrote:

> I tried to do it after consulting
> <http://sourceforge.net/mailarchive/message.php?msg_id=29533908> again
> (kudos Ifan); please see the first patch. The build failed.
> 
> I figured perhaps including AutoGen.h would help (second patch). It didn't.

"BaseTools/Conf/tools_def.template" defines

DEFINE MSFT_ASLPP_FLAGS        = /nologo /E /C /FIAutoGen.h
DEFINE ICC_WIN_ASLPP_FLAGS    = /nologo /E /C /FIAutoGen.h
DEFINE GCC_ASLPP_FLAGS            = -x c -E -P

If I add "-include AutoGen.h" to GCC_ASLPP_FLAGS (also in
"Conf/tools_def.txt"), then I don't have to #include the header
manually, but the resultant source fails the same to compile with iasl.

Thanks
Laszlo


------------------------------------------------------------------------------
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-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to