From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, abhishek.shah@broadcom.com
Subject: Re: [edk2-devel] Question: GenSec: Generating EFI_SECTION_RAW section
Date: Thu, 28 Jan 2021 18:49:00 +0100 [thread overview]
Message-ID: <a9f1f2d9-e4d1-a111-d6ee-68e949dc9353@redhat.com> (raw)
In-Reply-To: <CAKUFe6Zng_nVyDReJvS7zpBQzVVUhWGtwyRbFH7nskvQ-WNrwA@mail.gmail.com>
On 01/28/21 12:49, Abhishek Shah via groups.io wrote:
> Hi All
>
> I have an INF file included in top level dsc and fdf files.
> When I compile them, I see output files .pe32/.depex/.ui (under
> Output/FV/FFs/)
> corresponding to one of the source files (namely AcpiPlatform.c).
>
> For the other source file, which is an asl file (namely SSDT/Ssdt_Sdio.asl);
> corresponding aml file is generated, but "GenSec" is not running for that
> file.
>
> Expectation is that for the generated aml file, GenSec should generate a
> raw section (under Output/FV/FFs/) ,
> so that I could use "GetSectionFromFv" API and get the table.
> Anything needed to be specified in INF file to generate EFI_SECTION_RAW
> section
> or Am I missing something here?
>
> Below is the INF file:
> ---------------------------------------------------------------------------------
> [Defines]
> INF_VERSION = 0x00010005
> BASE_NAME = AcpiPlatfromDxe
> FILE_GUID = 875bd6b6-606f-11eb-bc63-1fc511f35cd9
> MODULE_TYPE = DXE_DRIVER
> VERSION_STRING = 1.0
> ENTRY_POINT = AcpiPlatformEntryPoint
>
> [Sources]
> AcpiPlatform.c
> SSDT/Ssdt_Sdio.asl
>
> [Packages]
> ArmPkg/ArmPkg.dec
> MdePkg/MdePkg.dec
> MdeModulePkg/MdeModulePkg.dec
>
> [LibraryClasses]
> UefiLib
> PcdLib
> DebugLib
> DxeServicesLib
> MemoryAllocationLib
> UefiBootServicesTableLib
> UefiDriverEntryPoint
>
> [Protocols]
> gEfiAcpiTableProtocolGuid ## ALWAYS_CONSUMED
>
> [Depex]
> gEfiAcpiTableProtocolGuid
> ---------------------------------------------------------------------------------
Do you have something like this in your FDF file:
INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
[Rule.Common.USER_DEFINED.ACPITABLE]
FILE FREEFORM = $(NAMED_GUID) {
RAW ACPI |.acpi
RAW ASL |.aml
}
(This is not an exact answer, just a guess.)
Laszlo
next prev parent reply other threads:[~2021-01-28 17:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 11:49 Question: GenSec: Generating EFI_SECTION_RAW section Abhishek Shah
2021-01-28 17:49 ` Laszlo Ersek [this message]
2021-01-28 18:10 ` [edk2-devel] " Abhishek Shah
2021-01-28 18:29 ` Abhishek Shah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9f1f2d9-e4d1-a111-d6ee-68e949dc9353@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox