From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.6677.1589016848471079194 for ; Sat, 09 May 2020 02:34:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=QAqJk3PP; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: yunhuax.feng@intel.com) IronPort-SDR: BNqMMA3ZX24QBmAzWA6P+eP4Tstl3muo3EEJVuROFQRb+zIxqFAgHx15JEXMqePVCLswnYYp4Y aN0SBXDqfPqg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2020 02:34:07 -0700 IronPort-SDR: RS8DpDHAh3gaxFeUN1euTn7X9dRXYbelmy1tA4bj4Y3+baTr9WzDNp63AB+/oFBMXgi0UskrAC MKyXxARIus1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,371,1583222400"; d="scan'208";a="340046735" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 09 May 2020 02:34:07 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 9 May 2020 02:34:06 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.170) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 9 May 2020 02:34:06 -0700 Received: from BN8PR11MB3793.namprd11.prod.outlook.com (2603:10b6:408:86::23) by BN8PR11MB3844.namprd11.prod.outlook.com (2603:10b6:408:91::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Sat, 9 May 2020 09:34:05 +0000 Received: from BN8PR11MB3793.namprd11.prod.outlook.com ([fe80::6455:7f80:a3b2:730b]) by BN8PR11MB3793.namprd11.prod.outlook.com ([fe80::6455:7f80:a3b2:730b%5]) with mapi id 15.20.2979.033; Sat, 9 May 2020 09:34:05 +0000 From: "Feng, YunhuaX" To: "devel@edk2.groups.io" CC: "Feng, Bob C" , "Gao, Liming" Subject: [PATCH] BaseTools: Fix binary file not generate map file issue Thread-Topic: [PATCH] BaseTools: Fix binary file not generate map file issue Thread-Index: AdYl5PjqIQz7Q0UrTT6GMm5Gsdqf3Q== Date: Sat, 9 May 2020 09:34:04 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 47758deb-c652-49e7-d6c6-08d7f3fc1da7 x-ms-traffictypediagnostic: BN8PR11MB3844: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1122; x-forefront-prvs: 03982FDC1D x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iPXXQsYZPnhPScJdzWMJoKcn4UgpHLQCNI2fNrC4KSAbHU9i0uNxyupu49oNlaNU4Qv0wdglw6VRXhRjzW+yE4HLLy8mUCJb02iQFmdGSBp8kpaQe7tdjWkYl10LmqYDjmB+HGwLfI+6Rk9zYKHs0i8MTwz+Afs2IIcBJ4sDnnsl7j7ru6hFMY15RcirJpn4jjdi5mfxK88kUUSRvcaSkApr8TXmzgRKzTtfh0bHlNC2Qse4+b79c57ZrM+Rg6cw7IZItEVRgeWzp6vFW/vD79lSDr/D4A18oMI5LupKMqobmImgDVBmBF9Ibe1QXVIiJpYHdOFbEVCPt+tS7RlLX+KC9MJwXOMjPwR01EN9fP8WfvNHtEq8xlCCWlJ019DHYYq5V97BforE2rRyPd7+FRLxVferHiSFzPmrr+RwU2Ez0UgahBORTM1Ew46gkCFcIZw0/+DAFtKEQLqjny2Bkllq123zx1CEYqFG5uxvHVi2pk/fG/7O+c+CZ1CsvDUC1hzPI5U9myNOC72VkrpP7faOMvc1CJ9gtDYbUJ1OQiP9dVvojTaC/T3JD83ZwcqAFYzZWJlwX6bYres6BFdv/NikW8+8erQik/YyppNJOMk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3793.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(376002)(396003)(346002)(136003)(366004)(39860400002)(33430700001)(33656002)(478600001)(9686003)(8676002)(86362001)(107886003)(6916009)(8936002)(76116006)(4326008)(55016002)(52536014)(26005)(316002)(64756008)(66946007)(66476007)(33440700001)(71200400001)(7696005)(2906002)(966005)(54906003)(186003)(5660300002)(66446008)(6506007)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: brTDoUu22DGbJy2Sq/7dVuQNcSlAvabO19ieRe8wdnW2iFU0vldEUol4h1Z5M6Us/9Ipv68lgJVk4huFx6KPb00uvl2w5Ljg4t4/ttX4rTNckUmjRE1/Ou6jDAOjc4MJvF3ucXZgZl9RBcGpgasz6CWN2hyLdtN08dESTNBvkF+t+a8R+YMG1txsrPsXi6IfQ3Xefy9bBZBFjKjo0c++XN05CQmmiFIzwau38eqB9B3yU6HrDvMQFOzkKmHoR/YUXadwHO9HWrcPlDxkWMml/D6iSVNYleFwbdVnz0QnbQx5dwEhSZsnk8F5NPE1NuFhP10kwLRtAdStM0PR9oBycuEXy1qzH9Gp15Cz5e0e3LxpI0xeOcvK30SfvP7UWsFkeHAWBXGc5yKuNzlElxQA4Ozh6J9oZO9Nt6OTdRJCozkZhAF+agfYiBLTQgGevSTEiztZc3KFE9RtC9TCbpa7nLIbAO4UzXkji3Z0LNEGd4yX3f2w9cL5B6yzrQo6Wk9X arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J1DhNCZVDBAx7ulG/9ytFxI53+IXxfnqKb6wA2LK1IErP6nVJo5N0aG0tWhiFsL4bglE8EZD+RLBorDtKs4RhevyLmHbf6vcxrmIK5K0lcFxMLEb178Wzq75OU7n/Ca0bqxVfHYlYucM2wsUrXAScOPs9Ge+XXLbNLq+igA+i3lEZX5Bo0+Q5IJnLPZAPJqdrz1dU+iixho3T9r8WnjABVEGIhlQ5DdrMKRQvBabz+p+Ps7enDC1zbpO0AlzywFqiqgTjPTc12WthhqfNWQlRMCWXTGTvKsyXr3oQL7gHsLWIqTi0OQZkipadv/1eU5uh6UgDO5SnITG9EGOFFSmzw== 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=arr+Ju+urkxTCA/MYqfqiIk7EWvCK7ybYaC32tllsbE=; b=bykvO1MdoDDfLdys1FlefMMNaUbotCUoCE78h0UoNOV5H0Nfex9f2rXzjuZ7wd1fhDS007e+rrjYh5HIkNeNl/1QfySFDycit6/y1ZzEqe7QVZ4C2FNcZXiUP2bDY+zOFLfQJ5hgvbbw+d/9R6k359Cgplmy0NWnmRdJ/TZHIHrxTl5Esa/oabejGIOil3dCZe/fb+2eRS0HwDbOE23IHUYdfIfHu5UiUBp8UwMBVD2fHNt3jew60QGTPCbVYyyqsOaDedqP5C56dn/WiuA1EnOE31DUSWvHDb89VqY4b32ptf7zE5LkCGbgoTa6OdbF4TWzFzcXwG0mr2gc0ikYGw== arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=arr+Ju+urkxTCA/MYqfqiIk7EWvCK7ybYaC32tllsbE=; b=QAqJk3PPAvXjYrHMobN5eO+idB9odukL1asdwmkGvwViik5oYo2pYROoEDEF1I8oenxTTqygCmIU/+uAhBUYPtjILeOd3mGwapmjlv2TcICILbWKH+Wjqfu0Oasi4cdEfmBuy6kwn9i9oIKGA7CoYRIfdUbf4jc1b0VZprZWXn4= x-ms-exchange-crosstenant-network-message-id: 47758deb-c652-49e7-d6c6-08d7f3fc1da7 x-ms-exchange-crosstenant-originalarrivaltime: 09 May 2020 09:34:04.9722 (UTC) x-ms-exchange-crosstenant-fromentityheader: Hosted x-ms-exchange-crosstenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d x-ms-exchange-crosstenant-mailboxtype: HOSTED x-ms-exchange-crosstenant-userprincipalname: gBGbTUSx5p3Fnq0jxd7Ym+SfTWL5xr2E/y3y5Uzee9Jo/SBQA+iJ0uNp2BDl3aUhiRbRG2+G9BrR61P6Tu/C8g== x-ms-exchange-transport-crosstenantheadersstamped: BN8PR11MB3844 x-originatororg: intel.com MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2624 When EFI file come from binary file, not generate .map file, so need ignore= the map file. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Yunhua Feng --- BaseTools/Source/Python/GenFds/EfiSection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/GenFds/EfiSection.py b/BaseTools/Sourc= e/Python/GenFds/EfiSection.py index db892df345..e7d4639041 100644 --- a/BaseTools/Source/Python/GenFds/EfiSection.py +++ b/BaseTools/Source/Python/GenFds/EfiSection.py @@ -266,11 +266,11 @@ class EfiSection (EfiSectionClassObject): elif ImageObj.SectionAlignment < 0x100000: Align =3D str (ImageObj.SectionAlignment // 0x= 400) + 'K' else: Align =3D str (ImageObj.SectionAlignment // 0x= 100000) + 'M' - if File[(len(File)-4):] =3D=3D '.efi': + if File[(len(File)-4):] =3D=3D '.efi' and FfsInf.InfMo= dule.BaseName =3D=3D os.path.basename(File)[:-4]: MapFile =3D File.replace('.efi', '.map') CopyMapFile =3D os.path.join(OutputPath, ModuleNam= e + '.map') if IsMakefile: if GenFdsGlobalVariable.CopyList =3D=3D []: GenFdsGlobalVariable.CopyList =3D [(MapFil= e, CopyMapFile)] -- 2.12.2.windows.2