From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 3B46A2202E4BB for ; Wed, 14 Mar 2018 19:24:47 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2018 19:31:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,308,1517904000"; d="scan'208";a="42155201" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 14 Mar 2018 19:31:10 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 14 Mar 2018 19:31:10 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.226]) by shsmsx102.ccr.corp.intel.com ([169.254.2.80]) with mapi id 14.03.0319.002; Thu, 15 Mar 2018 10:31:05 +0800 From: "Gao, Liming" To: david moheban , "edk2-devel@lists.01.org" Thread-Topic: [edk2] To save size, use NULL library for DebugLib and ReportStatusCodeLib Thread-Index: AQHTu+pQdPCorX+xc0umzkBQVYR6G6PQks9Q Date: Thu, 15 Mar 2018 02:31:05 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1E6DC4@SHSMSX104.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: To save size, use NULL library for DebugLib and ReportStatusCodeLib 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: Thu, 15 Mar 2018 02:24:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Here is NULL DebugLib and ReportStatusCodeLib instance. They are dummy impl= ementation. They will not take the image size, and remove the debug message= and ASSERT code from the image. So, they can help to save the image size. MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf Thanks Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of da= vid moheban > Sent: Thursday, March 15, 2018 7:15 AM MdePkg/Library/BaseReportStatusCod= eLibNull/BaseReportStatusCodeLibNull.inf > To: edk2-devel@lists.01.org > Subject: [edk2] To save size, use NULL library for DebugLib and ReportSta= tusCodeLib >=20 > What does that mean?? >=20 > Sorry for asking beginner questions but was just wondering. Trying to > shrink the size of the Duet image. >=20 > Thank you > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel