From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.6112.1645151475685665381 for ; Thu, 17 Feb 2022 18:31:16 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=eHvyfP2m; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: guomin.jiang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645151475; x=1676687475; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ox0VuLFNbTre9xFYcoDnEkWufQbyFAQTjkQXAUyOcxo=; b=eHvyfP2mv4a5pJ/0noi9ZDslNUMWwXlZ9SkRYQ6Klx9n7Zxx2MtfrUm0 a/MI8XtR6gq0msFIOOMoG9GWOie4Dyma3d6r4LlnpClBgDCLZe4LehukP IL1vA2HjUALmwfkULWv7sOAKArx8+lYYe7B/GzQpxcBA0UjrzwchD7uTZ 96i8lSKRxmnPwIOtWzQs2lwHbX/msF7Cji4WidJr6KXlF+R/ewFN+KsFx Qg+vCdIMF4xIWJBy+DrixANudPtS+87hKEkaTNxl0drSiAcIhsiAIa1is xJFJwQvJ4QvAXXyIabnY3rq6Z/YwhwTLgCdSWbTjX2u1ilQhNOb8tJj87 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="250789688" X-IronPort-AV: E=Sophos;i="5.88,377,1635231600"; d="scan'208";a="250789688" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 18:31:15 -0800 X-IronPort-AV: E=Sophos;i="5.88,377,1635231600"; d="scan'208";a="590004669" Received: from guominji-mobl1.ccr.corp.intel.com ([10.238.15.53]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 18:31:14 -0800 From: "Guomin Jiang" To: devel@edk2.groups.io Subject: [PATCH 0/2] Reduce the ASSERT patch to save the binary size Date: Fri, 18 Feb 2022 10:30:06 +0800 Message-Id: <20220218023008.1347-1-guomin.jiang@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3840 1. Use DEBUG_FILE to control ASSERT path 2. Default use file name as ASSERT path Motivation and Goal: 1. The path will occupy many size in DEBUG build when file path is long 2. We hope can reduce the size but not impact the debug capability 3. If only use filename, we can search the filename to locate file. It can save many size meanwhile. Guomin Jiang (2): BaseTools/Conf: Reduce the ASSERT patch to save the binary size MdePkg/Include: Define new DEBUG_FILE to specify path. BaseTools/Conf/build_rule.template | 10 ++++---- MdePkg/Include/Library/DebugLib.h | 39 +++++++++++++++++++++--------- 2 files changed, 33 insertions(+), 16 deletions(-) -- 2.35.1.windows.2