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 895BC820F6 for ; Thu, 16 Feb 2017 10:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1487268354; 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=I/fvdHmcnvGdMjRIfWqPwN+J7V/ND/10+4hZXVX7bHk=; b=uJlHmzaXUllGLCpXGpdU9wmJpO/21RxpZplp70FXK2zJ/UtNPTm1c7SLPEFQKEc4 r1Bsj7siCqctWWefX/V8HLNgPRSDuAuYvaO2mF+Ncp2udaWQoyrYRxDwSm/j1VT5 tPXbUafvjZyuQ4HjRragGrrZwKnbGsDj72femLCxvcNA9gnbp2QQY/U9p8H3Idy2 TWP1IpAqgTJSd/fUV2leneSkwq4gZc0N/cHboS1bAZulcmr0WmFecoiWCUPkkDfk kQXjLs2vGpjL05slQpc9y6CyYuCxQ/siDJmQeyyJu9t0diNIbWFZgvC60g7t1bUb bJDVzHbxfVBO+PrD9fNR3g==; Received: from relay6.apple.com (relay6.apple.com [17.128.113.90]) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id A9.F0.11829.20AE5A85; Thu, 16 Feb 2017 10:05:54 -0800 (PST) X-AuditID: 11973e16-99a309a000002e35-c9-58a5ea025284 Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by relay6.apple.com (Apple SCV relay) with SMTP id 02.97.04914.10AE5A85; Thu, 16 Feb 2017 10:05:54 -0800 (PST) MIME-version: 1.0 Received: from [17.153.47.250] (unknown [17.153.47.250]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OLH004NXBLJC310@nwk-mmpp-sz09.apple.com>; Thu, 16 Feb 2017 10:05:52 -0800 (PST) Sender: afish@apple.com From: Andrew Fish Message-id: Date: Thu, 16 Feb 2017 10:05:43 -0800 In-reply-to: Cc: "edk2-devel@lists.01.org" , Laszlo Ersek To: "David A. Van Arnem" References: <485eda84-7d3c-cbcf-6dbe-bc302aa8e3c0@redhat.com> <09003614-2953-3c06-2b7d-b0fdb81fd581@cmlab.biz> <8d78b23b-8b0a-399f-0f9f-014099ed545b@cmlab.biz> <2e03bfce-ef30-44cb-4da8-b90d23c6ec1b@cmlab.biz> X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsUi2FAYpcv0ammEweNlPBaL1khZrNvzjd1i 2bEdLA7MHie+BnhMuvCY2eP9vqtsAcxRXDYpqTmZZalF+nYJXBktDVNZC5q6GSs6505kbmDs r+xi5OSQEDCReLTkFSuILSSwl1Hi8ussmPjmc/sZIeIHGSW+HCwGsXkFBCV+TL7HAmIzC4RJ dN/ohOqdyCTx7a83iC0sIC7x7swmZhCbTUBZYsX8D+wQvTYSS34uYYGoqZbo+/eOrYuRg4NF QFXi4MdSkDCngJ3ExVefmCHGR0ksWfcCbLyIgJ7EkiVvgeJcQKs+sUj8fNYC1ishICsx+5cX SFxC4DabxI43X9gnMArNQnLqLCSnQthaEt8ftQLFOYBseYmD52UhwpoSz+59YoewtSWevLvA uoCRbRWjUG5iZo5uZp65XmJBQU6qXnJ+7iZGUFxMtxPbwfhwldUhRgEORiUe3oztSyOEWBPL iitzDzFKc7AoifPmCAGFBNITS1KzU1MLUovii0pzUosPMTJxcEo1MBYsXql8MfH03wslTSvZ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ERYRSBkcml2ZXI6IGNhbuKAmXQgbWFrZSBpdCB3b3JrIGluIFFFTVU=?= 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, 16 Feb 2017 18:05:54 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Feb 15, 2017, at 4:39 AM, Laszlo Ersek wrote: > > On 02/15/17 01:00, David A. Van Arnem wrote: >> >> >> On 02/14/2017 04:46 PM, Nikolay Bodunov wrote: >>> Hi >>> >>> I red this topic before asking the question in the maillist. Unfortunately, >>> it's not for DXE phase. >>> I even tried to use it and recieved expected compiler error: >>> >>> error 1001: Module type [PEIM] is not supported by library instance >>> [/home/nick/src/edk2/MdePkg/Library/UefiDebugLibConOut/ >>> UefiDebugLibConOut.inf] >>> consumed by [/home/nick/src/edk2/MdeModulePkg/Bus/Pci/ >>> SdMmcPciHcPei/SdMmcPciHcPei.inf] >> >> Hi, >> >> MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf lists >> DXE_DRIVER in its [Defines] section under LIBRARY_CLASS, so it is >> compatible with DXE_DRIVER module types (I have used it this way). >> However, if I'm reading your output correctly, you are trying to build a >> PEI module which is why you are getting the error. PEI is outside of my >> knowledge. > > In the PEI phase, no such thing exists as "system console" (that's a > UEFI construct), hence the fact that UefiDebugLibConOut (which prints to > said console) rejects being linked into PEIMs (PEI modules) is justified. > > Again, a suitable DebugLib instance should be chosen (in the DSC file > where the PEIM in question is listed too, resolving the DebugLib class > for PEIMs), and DEBUG() macros should be used for logging. > The build system is very flexible and can be a bit confusing. I find it useful to generate a report by passing --report-file=REPORTFILE to the build command. This will generate a report that will tell you per driver what libraries actually got linked (include libraries that libraries depend on). it will show all the fixed PCD settings as visible to the driver. If an FV was constructed it will also show the Depex that determines dispatch order, and again this can be changed by the libraries that get used. The idea behind the flexibility was that a chip or card vendor could write code using #include and link against DebugLib and it would work for any platform. Actually you could have multiple platforms in a single repository that share that code that all use different debug strategies, without the need to change chip or card vendor code. Thus we kind of had a push the configuration choices into the platform build kind of mind set. Well the problem with flexibility is complexity, and that is what the build logs help with. Thanks, Andrew Fish > Thanks > Laszlo > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel