public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: david moheban <moheban79@gmail.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: To save size, use NULL library for DebugLib and ReportStatusCodeLib
Date: Thu, 15 Mar 2018 02:31:05 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1E6DC4@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <CADxnD1yOSMDu8yFbi03nkfMT2Me_ETAvEyKAeF2javDg-BS-8w@mail.gmail.com>

Here is NULL DebugLib and ReportStatusCodeLib instance. They are dummy implementation. 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 david moheban
> Sent: Thursday, March 15, 2018 7:15 AM MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
> To: edk2-devel@lists.01.org
> Subject: [edk2] To save size, use NULL library for DebugLib and ReportStatusCodeLib
> 
> What does that mean??
> 
> Sorry for asking beginner questions but was just wondering. Trying to
> shrink the size of the Duet image.
> 
> Thank you
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


  reply	other threads:[~2018-03-15  2:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14 23:15 To save size, use NULL library for DebugLib and ReportStatusCodeLib david moheban
2018-03-15  2:31 ` Gao, Liming [this message]
2018-03-15 22:12   ` david moheban
  -- strict thread matches above, loose matches on Subject: below --
2018-03-15 21:22 David Moheban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E1E6DC4@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox