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.web12.5385.1585019570089707420 for ; Mon, 23 Mar 2020 20:12:50 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: bob.c.feng@intel.com) IronPort-SDR: leX9pNpfprfvJjpaQxS/pb0dUE3JW517Eq3425t1aBFVxL58FmaZ2mbZdLO8w+UJm69G2D17VE 0vYwGqcoeCPw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 20:12:48 -0700 IronPort-SDR: cmlc9OtBXYfhVp5yA2IPULCVB6xehFyiILs1hIk/QhMiT/nvifZ/m3nKFm949iqB26Ltlzu7bJ 2KKJsdWDQfYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,298,1580803200"; d="scan'208";a="270193945" Received: from shwdepsi1121.ccr.corp.intel.com ([10.239.158.66]) by fmsmga004.fm.intel.com with ESMTP; 23 Mar 2020 20:12:47 -0700 From: "Bob Feng" To: devel@edk2.groups.io Cc: Liming Gao , Bret Barkelew Subject: [Patch 1/1] BaseTools: Add .map file as a target in makefile Date: Tue, 24 Mar 2020 11:12:39 +0800 Message-Id: <20200324031239.13084-1-bob.c.feng@intel.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2624 The .map file may not exist, adding .map as a target with empty dependency and command will avoid build failure. Signed-off-by: Bob Feng Cc: Liming Gao Cc: Bret Barkelew --- BaseTools/Source/Python/AutoGen/GenMake.py | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py index bbb3c29446f5..f09a0b88297e 100755 --- a/BaseTools/Source/Python/AutoGen/GenMake.py +++ b/BaseTools/Source/Python/AutoGen/GenMake.py @@ -731,10 +731,11 @@ cleanlib: if Dst not in self.ResultFileList: self.ResultFileList.append(Dst) if '%s :' %(Dst) not in self.BuildTargetList: self.BuildTargetList.append("%s : %s" %(Dst,Src)) self.BuildTargetList.append('\t' + self._CP_TEMPLATE_[self._Platform] %{'Src': Src, 'Dst': Dst}) + self.BuildTargetList.append("%s :" %(Src,)) FfsCmdList = Cmd[0] for index, Str in enumerate(FfsCmdList): if '-o' == Str: OutputFile = FfsCmdList[index + 1] -- 2.20.1.windows.1