From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web10.603.1611856146832997458 for ; Thu, 28 Jan 2021 09:49:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iM2YJhLb; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611856146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SRerb9N86eUfDEzBsl26F8d7s3PUPvpnYLEqJMj9vfU=; b=iM2YJhLbQ2mhTc/myG2yFCTW+zmkm3HCokUYFRcZLI2ouwcV++bH1P/scElgUHRZXy565v FRhdufUssjffMcI4qzqTwMYwntkuK9mjbDFkoL7APTNT3fW1TcUorIoCAQTEc86RYI/pW4 +6pVS1vqRklGk0yoI05TLkR2ZsHK0R4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-423-ekUMpwVqMZiFezui7uPj0g-1; Thu, 28 Jan 2021 12:49:03 -0500 X-MC-Unique: ekUMpwVqMZiFezui7uPj0g-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 83FCE59; Thu, 28 Jan 2021 17:49:02 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-24.ams2.redhat.com [10.36.112.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id D89D61A8A3; Thu, 28 Jan 2021 17:49:01 +0000 (UTC) Subject: Re: [edk2-devel] Question: GenSec: Generating EFI_SECTION_RAW section To: devel@edk2.groups.io, abhishek.shah@broadcom.com References: From: "Laszlo Ersek" Message-ID: Date: Thu, 28 Jan 2021 18:49:00 +0100 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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