From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6E3921A1E46 for ; Wed, 26 Oct 2016 18:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1477530511; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yh+UjJV9P30Dulch84j4dRknqyREiWGfAsxyeqRqRrY=; b=MnmSNdPZSULgEFCVEs/GMr3O9y0ZhoB+EhfhDA0oCn8oDdKovS7PS4HYnOrlr90t 9rA5zq5fsg4u2Ci8VU67EDV3PXZUjfHlywhaXTXV3EXiX3MR0ISDfg7R4q1kk25K lTEFecDiwS2eGk0PAGRvALc4ZJQHAekS0Zt7aq3ArjZQc5KjOhOK1cHov2BHRnPx NkcAcPo1ao5PovP3k6fxUnxrPrzUOYUoRhuKl9auD5GVJ3qB3nmRD++IXBw4gB00 K9uWt5mxp9PNCnFA04Bhw+a8G5mrafBEWpfFuDpyIhzRWeo9GUsZJzHowLqGtuwe osqwml35ZeCgaSLeVCPkkA==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id 64.05.32245.E8351185; Wed, 26 Oct 2016 18:08:31 -0700 (PDT) X-AuditID: 11973e16-f7e959a000007df5-13-5811538fd2d4 Received: from nwk-mmpp-sz12.apple.com (nwk-mmpp-sz12.apple.com [17.128.115.204]) by relay2.apple.com (Apple SCV relay) with SMTP id 54.B5.09148.E8351185; Wed, 26 Oct 2016 18:08:30 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.69.177] by nwk-mmpp-sz12.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OFO00E5GLU5B570@nwk-mmpp-sz12.apple.com> for edk2-devel@lists.01.org; Wed, 26 Oct 2016 18:08:30 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <497D3E4E-A601-476E-897C-78F3ED389C46@apple.com> Date: Wed, 26 Oct 2016 18:08:29 -0700 To: edk2-devel X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMLMWRmVeSWpSXmKPExsUi2FDorNsfLBhh8HAru8WeQ0eZHRg9umf/ YwlgjOKySUnNySxLLdK3S+DKOPd1JVPB42bGiiP7WxkbGD8UdjFyckgImEjsftPM3MXIxSEk sJdR4tW7XcwwiVs9s9hAbCGBQ4wSZyYpgdi8AoISPybfYwGxmQXCJK7e7GeEaO5ikrj4u4kV JCEsIC7x7swmsEFsAsoSK+Z/YIeI20ucuLoCyOYAGmQjMb/fGyTMIqAq8ePNGkYQW0RAQ2Jr dyszSImEgKzE7F9eEOfMYZPonqg+gZF/FpIrZiG5AsLWkvj+qBUozgFky0scPC8LEdaUeHbv EzuErS3x5N0F1gWMbKsYhXITM3N0M/PM9RILCnJS9ZLzczcxgkJ1up3YDsaHq6wOMQpwMCrx 8BpsEogQYk0sK67MPcQozcGiJM67JhUoJJCeWJKanZpakFoUX1Sak1p8iJGJg1OqgZHr5i6m nhqmSw8+1H+Y+MpVr8fwUGEF/6qjFyc0GEjvrM189jLZnsWs3nAWU+/GolnSS7mkatZsuaor pGC5QX72wqU9TuoLfTU6km7792fJXsyLmlo1paLkJ+dtn041PdFNaw6csfb/vMLykv9tvaeR WT8THO4+mM9YovL8XjiL0v9nIRnTRZRYijMSDbWYi4oTAW7VfAc2AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsUi2FB8RrcvWDDCYMlDNYs9h44yOzB6dM/+ xxLAGMVlk5Kak1mWWqRvl8CVce7rSqaCx82MFUf2tzI2MH4o7GLk5JAQMJG41TOLDcIWk7hw bz2YLSRwiFHizCQlEJtXQFDix+R7LCA2s0CYxNWb/YxdjFxANV1MEhd/N7GCJIQFxCXendnE DGKzCShLrJj/gR0ibi9x4uoKIJsDaJCNxPx+b5Awi4CqxI83axhBbBEBDYmt3a3MICUSArIS s395TWDknYVk8ywkmyFsLYnvj1qB4hxAtrzEwfOyEGFNiWf3PrFD2NoST95dYF3AyLaKUaAo NSex0kgvsaAgJ1UvOT93EyM46AqddzAeW2Z1iFGAg1GJh7dji0CEEGtiWXFlLtD3HMxKIrwL gwQjhHhTEiurUovy44tKc1KLDzFOZAS6fyKzlGhyPjAm8kriDU1MDEyMjc2Mjc1NzGkprCTO eyAU6EiB9MSS1OzU1ILUIpijmDg4pRoYU9fXK75x2rz8+nlpXZv0NyI72TtnCi/VsGLeZKm+ Ml7Us2JqyI7Uw4lTNucH7PldN6fQxa30sWmwtc2zZH2JsLUrXu2IsftofWp10em8xWsuPt2U 4BDGeEC8vnZPsI+84C6pjXlhYREX6g9lezxqaTVl3nFOXmGm4Zr3M3dlt9/Rq6qVTQ5RYinO SDTUYi4qTgQAt8lpZ60CAAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: [BaseTools] Library GUIDs missing from Guid.xref file. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 01:08:31 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT I noticed if a GUID (PPI & Protocol) was only used via a library it does not end up in the Guid.xref file. It looks to me like this code is only extracting the GUIDs from the Drivers INF file and the GUIDs defined in dependent libraries are skipped? https://github.com/tianocore/edk2/blob/master/BaseTools/Source/Python/GenFds/GenFds.py#L701 for Arch in ArchList: PlatformDataBase = BuildDb.BuildObject[GenFdsGlobalVariable.ActivePlatform, Arch, GenFdsGlobalVariable.TargetName, GenFdsGlobalVariable.ToolChainTag] for ModuleFile in PlatformDataBase.Modules: Module = BuildDb.BuildObject[ModuleFile, Arch, GenFdsGlobalVariable.TargetName, GenFdsGlobalVariable.ToolChainTag] GuidXRefFile.write("%s %s\n" % (Module.Guid, Module.BaseName)) for key, item in Module.Protocols.items(): GuidDict[key] = item for key, item in Module.Guids.items(): GuidDict[key] = item for key, item in Module.Ppis.items(): GuidDict[key] = item Does anyone know how to extract the info from the dependent libs? I have an lldb type formatter for EFI_GUID that will print out the GUID C name so I noticed when some of them went missing. Thanks, Andrew Fish