From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 658D4D8007D for ; Sat, 24 Feb 2024 18:37:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uicbETpJz6fAU9tUXttNBO9TwaCN2y4HVi5p9z0YiNA=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708799866; v=1; b=I1CTCRdrjQRbh8o7M0I3SBQifxFWp99vjMzGfFaOOBmpEGmgGnC4T0AFoRtGkBTAK+92yiW4 7Wc7vOkdtwM4KvsKeB+fUZbgFS0xZo4eKyN2OvidQOtIOw6cAA/zjZXdvyvfxpXz6zQnyziYzec jQtvqMgup4SMUwW5o+E/gwZo= X-Received: by 127.0.0.2 with SMTP id rZ3fYY7687511xT2Oxrd33eU; Sat, 24 Feb 2024 10:37:46 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.24608.1708799866180617201 for ; Sat, 24 Feb 2024 10:37:46 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-20-HtFwke8GOamPStb1NHpPqA-1; Sat, 24 Feb 2024 13:37:43 -0500 X-MC-Unique: HtFwke8GOamPStb1NHpPqA-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D4B7F82DFE9; Sat, 24 Feb 2024 18:37:40 +0000 (UTC) X-Received: from [10.39.192.11] (unknown [10.39.192.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 61302C185C0; Sat, 24 Feb 2024 18:37:33 +0000 (UTC) Message-ID: Date: Sat, 24 Feb 2024 19:37:32 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] BaseTools/AutoGen: declare ProcessLibraryConstructorList() for SEC modules To: devel@edk2.groups.io, michael.d.kinney@intel.com Cc: Abdul Lateef Attar , Abner Chang , "Warkentin, Andrei" , Andrew Fish , Ard Biesheuvel , "S, Ashraf Ali" , Bibo Mao , "Feng, Bob C" , "West, Catharine" , Chao Li , "Chiu, Chasel" , "Duggapu, Chinni B" , Duke Zhai , "Aktas, Erdem" , Eric Xing , Gerd Hoffmann , "Guo, Gua" , "Dong, Guo" , Igniculus Fu , "Lu, James" , "Yao, Jiewen" , Kelly Steele , Ken Yao , Leif Lindholm , Liming Gao , Michael Roth , "Xu, Min M" , "Desimone, Nathaniel L" , Paul Grimes , "Kumar, Rahul R" , "Ni, Ray" , Rebecca Cran , "Chaganty, Rangasai V" , Sami Mujawar , "Rhodes, Sean" , "Zeng, Star" , Sunil V L , "Mohapatra, Susovan" , "Kuo, Ted" , Tom Lendacky , USER0FISH , Xianglai li , "Chen, Christine" , caiyuqing379 , dahogn , meng-cz References: <36593e23-d3e8-b71a-808d-ef94260b5fd0@redhat.com> <17be8fb9-914b-d428-6db4-dcd4d108932e@redhat.com> From: "Laszlo Ersek" In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: CLM65aogk0hKgM2I3X18BYgWx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=I1CTCRdr; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none) On 2/15/24 18:29, Michael D Kinney wrote: > The current INF Spec uses INF_VERSION of 1.27. Side topic: the build spec says in 8.7: https://tianocore-docs.github.io/edk2-BuildSpecification/draft/8_pre-buil= d_autogen_stage/87_generated_asbuilt_inf_files.html that the build tool will *downgrade* the INF_VERSION value from the source module INF to the most recent version that the build tools know about, in the AsBuilt INF files. This is generally confusing and potentially wrong (regardless of what I'm trying to do here). The latest released version of the INF spec is 1.27 (as you say), but in edk2 (as of commit edc6681206c1), the file "BaseTools/Source/Python/AutoGen/ModuleAutoGen.py" contains: gInfSpecVersion =3D "0x00010017" which, IIUC, means that the tools will downgrade the AsBuilt INF files that originally (in source form) comply with version 1.27, to 1.23. How is that not a bug? ... Well, in fact I wanted to check this in action, and so I picked "OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf". The source INF file has INF_VERSION=3D1.29. The AsBuilt INF file however contains INF_VERSION=3D0x00010035, which corresponds to "1.53" (1.29 would be 0x0001001D). Now I'm even more confused: 0x00010035 is *neither* the original value *nor* the downgraded value that I'd expect from "gInfSpecVersion". What's happening here? What are the AsBuilt INF files used for? Thanks! Laszlo -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115908): https://edk2.groups.io/g/devel/message/115908 Mute This Topic: https://groups.io/mt/104210524/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-