From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.151.62.28; helo=mail-in6.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (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 B63FD2249273A for ; Thu, 1 Mar 2018 21:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1519970119; x=2383883719; 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=dXFRRoJ4SwrqYlv4wQyh8aez/bmiuJXjv6elyiYcspQ=; b=ljIKh69pV1HKmEj6BINcsyAr+bsPdmARGbg/FzCnzSPz0cZ48Vnbhfap57B7/gGF 6hWo5oW2I/4VrbdIHKnHBJC7Q7BYQJNS2sc4NPC70UZb06XbHEw/JzDDEGFPkMXk S6VdpCmv4VQ+ivYX/zfuLiCqBbRhsOYV0h4KWvfQawVZu8vnYykmSy7QIDsx30hd ga0t/BOkXKyaEzRTjprDZfRHnXwcvGETdrkMKpKSxR1A3uheXXzDmbHJpr/wS5gK kDlib9crxc3OrT/clpp2q81g/eDg8Vxp3GaiNBcTpNgYcyXs7OYRjqClOaO9g7Mo aADY0HfBp6cDl9CUFz1Z0g==; Received: from relay27.apple.com (relay27.apple.com [17.171.128.108]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 92.41.28259.747E89A5; Thu, 1 Mar 2018 21:55:19 -0800 (PST) X-AuditID: 11973e15-9f3ff70000006e63-28-5a98e74689e7 Received: from ma1-mmpp-sz09.apple.com (ma1-mmpp-sz09.apple.com [17.171.128.183]) by relay27.apple.com (Apple SCV relay) with SMTP id C3.23.11541.647E89A5; Thu, 1 Mar 2018 21:55:18 -0800 (PST) MIME-version: 1.0 Received: from [17.234.212.20] by ma1-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.2.20180130 64bit (built Jan 30 2018)) with ESMTPSA id <0P4Y009BA8G1KA40@ma1-mmpp-sz09.apple.com>; Thu, 01 Mar 2018 21:55:18 -0800 (PST) Sender: afish@apple.com From: Andrew Fish Message-id: <2068B7CB-24DD-4189-AF42-1E141E99E4A7@apple.com> Date: Thu, 01 Mar 2018 21:54:26 -0800 In-reply-to: Cc: edk2-devel To: Mike Kinney References: <5C025CD1-FA46-4B9F-AD2C-5420910D80CF@apple.com> <77C6F255-0102-4E4B-8D80-1748FD79A617@apple.com> X-Mailer: Apple Mail (2.3445.5.20) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsUiuLohR9f9+Ywog9cr1S32HDrKbNHR8Y/J gclj8Z6XTB7ds/+xBDBFcdmkpOZklqUW6dslcGXMOdLKXvDLrqLn8wfWBsZHZl2MnBwSAiYS 0xZ/YOti5OIQEljHJPFm/QbGLkYOsETfdU+I+GFGifVXL7CCNPAKCEr8mHyPBaSGWSBMYuZx L4iar4wSX7bOZgapERYQl3h3ZhOYzSagLLFi/gd2kHpeARuJRat4IUrcJRpWPWEDsVkEVCVW rmwDG88JNLJv/mkwm1lAQ+Lr6u1grSICOhLdK6MhVu1klHj2dz07xP1KEtO/3wa7X0JgDpvE 5Xm/mCcwCs1CcuoshFNngY3Vkvj+qBUqLC9x8LwsRFhT4tm9T+wQtrbEk3cXWBcwsq1iFMpN zMzRzcwz00ssKMhJ1UvOz93ECIqC6XaiOxjPrLI6xCjAwajEwyvAMyN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subject: Re: Can you set a PCD value DSC default per ModuleType? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 05:49:12 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Mar 1, 2018, at 9:43 PM, Kinney, Michael D wrote: > > Andrew, > > DSC does not support module type specific syntax. > Just arch specific syntax. > > https://edk2-docs.gitbooks.io/edk-ii-dsc-specification/content/2_dsc_overview/29_pcd_sections.html#29-pcd-sections > Mike, I understand. My question is why? Actually I have a module with some shared code and a shared INF and I was looking at a way of conditionally including code. So I tried this. Which I notice is no longer in the tree. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf:40: X64/VirtualMemory.c ||||gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode The reason for conditionally including the code is the library can run in a lot of different module types, but I need to call one line that is module specific and I was trying to figure out if I could do that conditionally? Do I really need a new Library class to abstract one line of code? Or do I need to clone the INF. The problem is my library gets include in the DXE CORE and SMM CORE and I'm have one line of DXE CORE only magic I was trying to abstract. Is there a way short of a new library class for one line of code to do this? The PCD worked, but I had to use the <> override to every place the DXE Core was referenced, which is not ideal. Thanks, Andrew Fish > Mike > >> -----Original Message----- >> From: edk2-devel [mailto:edk2-devel- >> bounces@lists.01.org] On Behalf Of Andrew Fish >> Sent: Thursday, March 1, 2018 8:07 PM >> To: edk2-devel >> Subject: Re: [edk2] Can you set a PCD value DSC default >> per ModuleType? >> >> Sorry for a FeatureFlag, obviously anything dynamic >> needs to be generic. >> >> Thanks, >> >> Andrew Fish >> >>> On Mar 1, 2018, at 8:05 PM, Andrew Fish >> wrote: >>> >>> Can you set a PCD value DSC default per ModuleType? >> If not why not? >>> >>> Thanks, >>> >>> Andrew Fish >>> _______________________________________________ >>> edk2-devel mailing list >>> edk2-devel@lists.01.org >>> https://lists.01.org/mailman/listinfo/edk2-devel >> >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel