From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.92.20.78]) by mx.groups.io with SMTP id smtpd.web12.417.1594338613104155203 for ; Thu, 09 Jul 2020 16:50:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=ZXG+kGQI; spf=pass (domain: outlook.com, ip: 40.92.20.78, mailfrom: spbrogan@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G/+xPW+4spcP0GWzdZLiW/Kwzpl2+5HEqJRIsZz8xvr7jjNczD2dIDVNMnxpDtp/CyHO3bNK0PKwGWa4ph+W/2yceeL1i0WQu++E+rrM7O0OJnFwRranJtR8fNWFUWy0q13pi7Pl8MGgUR0oYiBNAHHrmRES042radzcKrTo+N1PNZB4QAOs/Cf+7kq1Xi5QG+ZWM/00KDrXLNH+Rj44vLQrgSgAbD0zWrI8uoeV9vCl1b+LSovsbdkKCko6Ual2Vai2FLkBXfDrrL5+t4a08YMgtjOC4fD0IeA8myMEsN+oR2XzbV513PQB5VXbVJ/HryakE5CJqcQ6qe6BincRCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o7tiP1q8Ni9AmLTHiS9E4hlODJ16H14qlFUoC4TdII8=; b=mYEPmRwPbgCSTJLe7AwbtHuQea6aEZxWEP9Tv/qq8npR9RGGqEC8iZ+GJe2bWBpXVoMBP/+UDOEyZqUqrhXXBUDcpjSvQSJqqkw+HsWLNPJtXTAs3UJptd59gfZLfJOqjTnBYb+VG5z/KU7WbaYs0MuU5GUrvUbMqvFXe4j1QrT0S1FlL64Hid7LAnLfOYfc88YjAWg5WJjU6NNrReu2nHo3lMWHUJxAHWbIdB4WoZuiYEKdWllPe6CkCzrbqLi11RsB0F8JjAzsupFnmZ8ZoWpYJ5cOn+xPwgxOYiZFNgt1pEXku2yDKEoaR4wdkAxXfHnB5t8bskcIj3ELG/vQig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o7tiP1q8Ni9AmLTHiS9E4hlODJ16H14qlFUoC4TdII8=; b=ZXG+kGQIT+t4JvJAgxdOsMysg/CGIIsFtM4Ix1men4OClUru7x3Tg1yGpb2LPUmZftCXQLvfwBPsHuDA2Wy7ywsSeZXkDn3FcJ/pwAa7CS6Z9yL0Y+4KyEi3lymf6PJuMDxw9jvMQDjJWNPiQ+/Y5sKmlQFoDJ7xtJBxc9KmeorRTNIVBktr7GTCCOuK9Jr/VixwRXqPpS5wyqxade2Q9gVHzdiWwzcZQDeS07lwBFJ3ahpp9JcjH9J1xbliLJN3BwRaI2TDnwLTmXjMumUGVvgjdf2+nQJWP0NScbyzt5ftES4eDYX1mAgPPz4vM2fafm1qpF2/A6EYvHTNJoZSAQ== Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::4f) by BN8NAM11HT066.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4b::212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 9 Jul 2020 23:50:11 +0000 Received: from BN8PR07MB6962.namprd07.prod.outlook.com (2a01:111:e400:fc4b::48) by BN8NAM11FT036.mail.protection.outlook.com (2a01:111:e400:fc4b::424) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Thu, 9 Jul 2020 23:50:11 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:EAF5194A9671D92A0646FA8C5A8BC34647DE0390FC216E9F68F2AA514148B5D9;UpperCasedChecksum:32E738EF2B76E875BD2CBFFDB772CCC4A2CCD8C70A386296AFB142555C0A8F4E;SizeAsReceived:9037;Count:49 Received: from BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::4115:2eac:5a88:50b9]) by BN8PR07MB6962.namprd07.prod.outlook.com ([fe80::4115:2eac:5a88:50b9%7]) with mapi id 15.20.3174.023; Thu, 9 Jul 2020 23:50:11 +0000 Subject: Re: [edk2-devel] [Patch v2 01/16] BaseTools/Python: Allow HOST_APPLICATION to use NULL libraries To: devel@edk2.groups.io, michael.d.kinney@intel.com Cc: Bob Feng , Liming Gao , Sean Brogan , Bret Barkelew , Jiewen Yao References: <20200709040521.3748-1-michael.d.kinney@intel.com> <20200709040521.3748-2-michael.d.kinney@intel.com> From: "Sean" Message-ID: Date: Thu, 9 Jul 2020 16:50:07 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20200709040521.3748-2-michael.d.kinney@intel.com> X-ClientProxiedBy: MWHPR12CA0055.namprd12.prod.outlook.com (2603:10b6:300:103::17) To BN8PR07MB6962.namprd07.prod.outlook.com (2603:10b6:408:d6::11) Return-Path: spbrogan@outlook.com X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.2.78] (50.47.113.221) by MWHPR12CA0055.namprd12.prod.outlook.com (2603:10b6:300:103::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22 via Frontend Transport; Thu, 9 Jul 2020 23:50:09 +0000 X-Microsoft-Original-Message-ID: X-TMN: [pd6iDKjY/izGGp+J9O6KTzdyCY/124M9] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 82828602-9f83-46bd-8c03-08d82462d0ef X-MS-TrafficTypeDiagnostic: BN8NAM11HT066: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bLCwt2jv+Lva8nxUrWj/286teVIHyLRGhvSG/dyE2hwnz/rGC1T0880MuJf5GKGQUOa63imrqrQvIZ5+NoAITzKk0SL01qur1TE20W7imgS5JeyMfpoS81SxiZToQZf9ENDnASs81cqEPqt9x5299/1ZayWgQl/r7SBCinAH3jASpJCuUkACjFab0A0N6SG/34lgLfRErlOBamJNK1irh+xOluJVfjq3me4MQy1fQ9L9J2XvA9jknyT193R2aOji X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR07MB6962.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: clYuQglMr0ltvJEJdztbXLZojcQiC15B7yyTmD1ISw6ttk2FrqJEp379GYOV0i2Obtr+HTVxbWAerlKUCijS2vnSlP2ln/GL8rrfPNGkKJN0R3cfaRJ5iZ/idfuS2diId/1dVv7mTD9YPjgfodqCcg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82828602-9f83-46bd-8c03-08d82462d0ef X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2020 23:50:11.5448 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM11HT066 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Reviewed-by: Sean Brogan On 7/8/2020 9:05 PM, Michael D Kinney wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2797 > > Update HOST_APPLICATION module type to use NULL library instances. > > Cc: Bob Feng > Cc: Liming Gao > Cc: Sean Brogan > Cc: Bret Barkelew > Cc: Jiewen Yao > Signed-off-by: Michael D Kinney > --- > BaseTools/Source/Python/Workspace/WorkspaceCommon.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py b/BaseTools/Source/Python/Workspace/WorkspaceCommon.py > index 913e710fd9..53027a0e30 100644 > --- a/BaseTools/Source/Python/Workspace/WorkspaceCommon.py > +++ b/BaseTools/Source/Python/Workspace/WorkspaceCommon.py > @@ -1,7 +1,7 @@ > ## @file > # Common routines used by workspace > # > -# Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
> +# Copyright (c) 2012 - 2020, Intel Corporation. All rights reserved.
> # SPDX-License-Identifier: BSD-2-Clause-Patent > # > > @@ -100,7 +100,7 @@ def GetModuleLibInstances(Module, Platform, BuildDatabase, Arch, Target, Toolcha > # If a module has a MODULE_TYPE of USER_DEFINED, > # do not link in NULL library class instances from the global [LibraryClasses.*] sections. > # > - if Module.ModuleType != SUP_MODULE_USER_DEFINED and Module.ModuleType != SUP_MODULE_HOST_APPLICATION: > + if Module.ModuleType != SUP_MODULE_USER_DEFINED: > for LibraryClass in Platform.LibraryClasses.GetKeys(): > if LibraryClass.startswith("NULL") and Platform.LibraryClasses[LibraryClass, Module.ModuleType]: > Module.LibraryClasses[LibraryClass] = Platform.LibraryClasses[LibraryClass, Module.ModuleType] >