From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.1549.1687834414613945551 for ; Mon, 26 Jun 2023 19:53:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=dNHdEnYv; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: yuwei.chen@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687834414; x=1719370414; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QviIl4Vrpc/e4c/R61Ganayu4/gkNGHzA1BPF2cYLq0=; b=dNHdEnYv9oEboLyboU9eKNrSEUL+otcxDD/zaO1TGAmFRfkw1vv5KDB4 zjh/uXZOjWL6oi/3TEJqhWeoVVcnAgNqZEwfXcrSGeRKcqcSOt7aFBJ8j tBudv5yA58t/xZPNYN8QoMQpvchjflR/rbHxuznStsdN5hUgxOwlesvxG WnIZcqvIk9Z4uLGfRBvHQ484isEFTGylp9N/Bs+jFSJAc9OnrHyJPNSie fc3LXb89E4p4guqzMQjlaFhFzvP/HNmCMuRhbwgvjq7F9jd8zKedt0n2x /pJx77b6tpgFrH+fFrRoD7QXl5tzgC4gdwnMJAYsFX1bOoe5gWCyHGmjQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="360318943" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="360318943" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 19:53:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="1046739407" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="1046739407" Received: from yuweipc.ccr.corp.intel.com ([10.239.158.24]) by fmsmga005.fm.intel.com with ESMTP; 26 Jun 2023 19:53:32 -0700 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng Subject: [Patch V3] [edk2-staging] BaseTools/FMMT: C FMMT match new version machine defines Date: Tue, 27 Jun 2023 10:53:30 +0800 Message-Id: <20230627025330.1579-1-yuwei.chen@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable BaseTools have switch from EFI_IMAGE_MACHINE_* to IMAGE_FILE_MACHINE_*. Thus, match the FCE & FMMT tool in edk2-staging repo with the new version define. Cc: Rebecca Cran Cc: Liming Gao Cc: Bob Feng Signed-off-by: Yuwei Chen ---=0D V3 modify the patch with the correct define BaseTools/Source/C/FMMT/Rebase.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BaseTools/Source/C/FMMT/Rebase.c b/BaseTools/Source/C/FMMT/Reb= ase.c index d32217d18c..20f8e5a3fc 100644 --- a/BaseTools/Source/C/FMMT/Rebase.c +++ b/BaseTools/Source/C/FMMT/Rebase.c @@ -159,8 +159,8 @@ EFI_NOT_FOUND No compressed sections could be= found. return Status;=0D }=0D =0D - //if ((ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_ARMT) ||=0D - // (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_AARCH64)) {=0D + //if ((ImageContext.Machine =3D=3D IMAGE_FILE_MACHINE_ARMTHUMB_MIXED) = ||=0D + // (ImageContext.Machine =3D=3D IMAGE_FILE_MACHINE_ARM64)) {=0D // mArm =3D TRUE;=0D //}=0D =0D @@ -435,8 +435,8 @@ EFI_NOT_FOUND No compressed sections could be= found. return Status;=0D }=0D =0D - //if ((ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_ARMT) ||=0D - // (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_AARCH64)) {=0D + //if ((ImageContext.Machine =3D=3D IMAGE_FILE_MACHINE_ARMTHUMB_MIXED) = ||=0D + // (ImageContext.Machine =3D=3D IMAGE_FILE_MACHINE_ARM64)) {=0D // mArm =3D TRUE;=0D //}=0D =0D @@ -835,8 +835,8 @@ Returns: //=0D // Verify machine type is supported=0D //=0D - if ((*MachineType !=3D EFI_IMAGE_MACHINE_IA32) && (*MachineType !=3D EFI= _IMAGE_MACHINE_X64) && (*MachineType !=3D EFI_IMAGE_MACHINE_EBC) &&=0D - (*MachineType !=3D EFI_IMAGE_MACHINE_ARMT) && (*MachineType !=3D EFI= _IMAGE_MACHINE_AARCH64)) {=0D + if ((*MachineType !=3D IMAGE_FILE_MACHINE_I386) && (*MachineType !=3D IM= AGE_FILE_MACHINE_X64) && (*MachineType !=3D IMAGE_FILE_MACHINE_EBC) &&=0D + (*MachineType !=3D IMAGE_FILE_MACHINE_ARMTHUMB_MIXED) && (*MachineTy= pe !=3D IMAGE_FILE_MACHINE_ARM64)) {=0D Error (NULL, 0, 3000, "Invalid", "Unrecognized machine type in the PE3= 2 file.");=0D return EFI_UNSUPPORTED;=0D }=0D --=20 2.27.0.windows.1