From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.3321.1618279608033260217 for ; Mon, 12 Apr 2021 19:06:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=e/KXliLa; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0737d9f25c=abner.chang@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13D23css009724; Tue, 13 Apr 2021 02:06:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=FPhhYDN67otTUe8rs1d9+NCN/PGXT8piUga1a/CwyKA=; b=e/KXliLatIGOIHYKws3MPyk6fLRzERfHvZ6k8S+dplfT2sEqZPhWsBtCMcAfdXujjo55 ShS44KEUBy+Uuru9iqpG8sHwFA8AHmc3uNyJm3V1EIwPYDGpUdqClfTXb5mwhtJbAJf9 CldZDcNrzPCFFaGq7CVPXhclsfoQPXGqIaTdiviYrlQ9338XTsplPlaFrhcpwyjUp1nV BfsHiOsOrqajGoVgO03s5RI04MCtGX/9UvODIH7eAKK5bZU5cbKMUHczY9VmGMmQ8Klf uPSdUHp+IfXmpdTK4Q83G+NAa4QTSuGAASLlOGtzevkxBFdheEO42gvOmRQb30e+gxcn OQ== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 37vjmwq9v2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Apr 2021 02:06:38 +0000 Received: from G4W9119.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.20.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2352.austin.hpe.com (Postfix) with ESMTPS id A09B263; Tue, 13 Apr 2021 02:06:37 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 02:06:37 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (15.241.52.10) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 13 Apr 2021 02:06:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CTDHS5RNW6/QbWB6jIBbAxFUps+aeL8v+g4jj6aRvnah1fi7O7h5a6sQ0HhxbjuW6ldNxDBxk9+9OtHbnoUV6kdEO0rYRNPsvOamhAdKpBP3PmTnestb1lNEzcxrplQ63iPMJqH8GYhAOtcE5VRShcsWrpUI/1b9h9UT+xNSG2JX2jR8C7H8sqalm7xMM7CR7OP4VjGWxodjDsKFH4FJVWS5qnLuq91/oKyGYIqEsceplMQqHMZR7VfTRhw53wy8eZWlmu/tpbM7PwL0pmy4XtZBqnT0iZ5UMiSl6YNWFywEL10Ws6TQMEgdjcdUlaaB11KvZNA2jo0Of9rTyE9qTw== 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=FosuKqvI0nRYvyggn2ZNhde59jHNKXGtfjD3TmoCYVw=; b=m3r4ZFw86OSRwgepkyePKaUwdHVj2QJdEVitnvJiIVNiSHVBJocLRIcdT8RUlE6A564U1ha9Bq4GrF/InrVRu0LW39Y72NJokB9B2Bnpwq9ItOydlcnGS75tGuL7Ti74Yuqn5WhSFxQW3OZzi3khBYw2PnjPxu1v2IIE3aiz9Dx2irdux1wDfiqbhW1/4qXvrqHGs4chGSuJm3R3c3oHSawUbekhRZFiYqUz32nFGcrjL4DOy4+emSY2nLpHO30Nre9lCHt1NTSuotqOzcptP1QlRlk35g5RuOwXrwGgZzMls5dC7C0umH5frKFA+xGqXw4RNbz/hLOn6SdPxEQU6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::16) by CS1PR8401MB0951.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7510::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16; Tue, 13 Apr 2021 02:06:36 +0000 Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::28f5:3e45:17cf:9231]) by CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::28f5:3e45:17cf:9231%10]) with mapi id 15.20.4020.022; Tue, 13 Apr 2021 02:06:36 +0000 From: "Abner Chang" To: Michael D Kinney , "devel@edk2.groups.io" CC: Bob Feng , Liming Gao , Yuwei Chen , Andrew Fish Subject: Re: [Patch 3/3] BaseTools/Source: Remove CPU architecture assumptions Thread-Topic: [Patch 3/3] BaseTools/Source: Remove CPU architecture assumptions Thread-Index: AQHXLEEKCNdiBvKNYEmdRuxPZ32imaqxuaAg Date: Tue, 13 Apr 2021 02:06:35 +0000 Message-ID: References: <20210408063240.877-1-michael.d.kinney@intel.com> <20210408063240.877-4-michael.d.kinney@intel.com> In-Reply-To: <20210408063240.877-4-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [16.242.247.131] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 832e1505-c941-438a-a79f-08d8fe20c46a x-ms-traffictypediagnostic: CS1PR8401MB0951: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AiIAWogaSK8xwLtgfewPJXWIcgBz5/3yIuOyiB1eUhKV/dYS9T3OmaY2xrKDTr8SE/vY0tNQYfC5Do+Zb+IXMkh4rbx6ng/T72vcjf5cHzvRuUscV+S8/SdsCkZBMFb7Kya36HaMaxu5Cn+cLA3tu5f/chK5u2KDvagdFzHB/jb9bC18tVqFRHLjC7ebw+FKWbZtdaKnA4PySTY5vQD9aZxYdupNIxlcCEtZHbWgd3IDg2dAW6dy/F7OwJyEVqAYBpUnkCAer9jztj2QnqdkC6HUAfvJ1at7wn1LbUCu+DPrFPnAtNXINSK39k99aLAfaINcadD7/CDb3GB8D3muhkEtrdCpMcg502tJkxLf/SCCRE406WtynHlWM9WgJhLZoxIQVjeJ8Ymy3pyE3uVHMYPVTDmlWvWr7ykkFpMbhJgf4jn+oxw1thZN5xN/ScRqdnq8fxCfyTt3nmoehEDIS2LIh2Usi+iNQxpUdj9kX3UUHgceP2yuE9JNejjNHYtQqf87FDbiYPLI214kRDLcQBEHSdzLw6nGUdwCNUs0i1jejp3d+h3rd/Q6kibNYTU+NkbIwgukWxb07MTuTMTcC8dz4hEj0ZJ1ix/EHP8+zZBho39bC9qlvZUxaefy+/DXbrhrVceYNMW4CKemcdgF/nUuRCbWTsHLs7F1H87jXvzII8RjW0A0tLehQZMRY2Dg8Ej3fGQM5bBtAu84o/k3wKysJcNUA1k7rL300SxlZgo= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(396003)(136003)(366004)(376002)(346002)(39860400002)(186003)(54906003)(19627235002)(8676002)(2906002)(66476007)(316002)(110136005)(26005)(71200400001)(4326008)(55016002)(9686003)(53546011)(86362001)(83380400001)(52536014)(33656002)(38100700002)(64756008)(478600001)(66556008)(8936002)(6506007)(5660300002)(76116006)(966005)(7696005)(66946007)(122000001)(66446008)(460985005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?73fYwO6m4Qvw7DgjBbUJ+GGSX+3muTLaRZ57fex1XK8mlzxugsub4jNY15sP?= =?us-ascii?Q?8JQ9EvRtfsmJPWwRlY/R8UeRFbkcNOGn2an3WdJH5iDQhU44Alx3xo2nikG9?= =?us-ascii?Q?nDcKqoGDeIzDHciXsTKWahK1GjG2Cru/56U5rN7Z4b9KgN0SvKfYh5kBLFgu?= =?us-ascii?Q?vFaZmpjlx0nY6FdB81WxE50TFfztKp6ylsLTcYs97YbN0zYeN0axQXrSI0RB?= =?us-ascii?Q?v2BsqLSaFptXID7LSzjA7+YDpdck1FTnJgsq0RR5z4v3OmqT+LTNsQMmBJwc?= =?us-ascii?Q?NixizW7JB1c5Paey0H58oE2He1dYkkDW6oKK5RQ7G16s2PrzOoyLnr0kDJF7?= =?us-ascii?Q?unLmLScuc91Xi+igG+MgBxQzRxvL3Yc0I17R7sUz/Hi0MDxABQTJAiqAELem?= =?us-ascii?Q?w2DKZG3Vks6M3D//+OW0aUDtu5xSpPAehw5JIzfVE2kDoOuQlZdR52gE6zxe?= =?us-ascii?Q?cTDyArihWxCFeV7jRuo4U6O4m4X5GCeXYviS1BcVcBPE3TiMKbNUKCJq2Snk?= =?us-ascii?Q?GA7L6THttJDR+jXiwWgGj/OWqof/vC7dIuG50nLBCQ9v/DDOjm5qsttsKjO6?= =?us-ascii?Q?mwXAcSFjl2Uxm+yW9XY3/Sm2E5hBZtknvWYbitAOZa0se1ktVlAGjY76D6or?= =?us-ascii?Q?eo1kl/eJ5KcF5tRjZBrII3FF3lfzlpEQXMIT2Dp6M+SI5x27VbACgo0yq3fT?= =?us-ascii?Q?EnwYE0ezAOXkdi2yn1D+jaPDCM9F95OnwEBs/oqClcfvIaqjd4hoSJnebJHN?= =?us-ascii?Q?BtcfmEib12cfzizcP90/zJhN5+HzFp8xBRkSZHU5iE9UgsyS8JcJZwM4Mm+n?= =?us-ascii?Q?BgveRkjRDg+MWEd99/Uw4Yliioj4+DNnEfERV2vvMfkN7QHMebrouwQM4FpN?= =?us-ascii?Q?mzoQwQwY48f4acGqRdnoKWgRoK6q+0Mh3RG5OsnDR02CN7QsFkgj1NXYktla?= =?us-ascii?Q?HWztu0pCL6/LXhssw5jgywRCrqdMs5+/+NA1j//EOPfQE1tKBj1YVCnZGcjV?= =?us-ascii?Q?JVy1+AqHcUqkx8N3fLbz/kdk6LtyiVnKQ3l/bj2dagM1E4nkV5Mx/LWeV8Mo?= =?us-ascii?Q?455cWwkWiWYe1uttyDOcx7J//+m36mDVuEwkanaATVdbTrP1OEwOR2OAgfG6?= =?us-ascii?Q?0itBr2wLNexJs5+oSyV1hZBAuB18ltzC2tzJ+qeibJ+6VuPJeItTgbgTwWRI?= =?us-ascii?Q?xfjf4ZUBBmrnpjXh4HJnVcp3lHEAg09yZNK4DrrnBGMY3gr50auk043iprNF?= =?us-ascii?Q?+vcKNfhyIumrkgom/hewYIY1wX1qED7LiDfweiQtZz2lDQ/VLhpQpwcaMnkv?= =?us-ascii?Q?aU3WWxHGMz0VA9/Yljug05EH?= x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 832e1505-c941-438a-a79f-08d8fe20c46a X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2021 02:06:35.9198 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6gQKgDlocDT3u6L5+sI+bjlajOssQjpQuHrqMuAXMmIo3C/21OJYsKmFoF/QFjCJKoUj66iKigRb/fhpaBkdYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0951 X-OriginatorOrg: hpe.com X-Proofpoint-ORIG-GUID: lwd-wpAE3FXbqdjSjkBtfz3iu7JPCy9A X-Proofpoint-GUID: lwd-wpAE3FXbqdjSjkBtfz3iu7JPCy9A X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-12_15:2021-04-12,2021-04-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104130012 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Michael D Kinney [mailto:michael.d.kinney@intel.com] > Sent: Thursday, April 8, 2021 2:33 PM > To: devel@edk2.groups.io > Cc: Bob Feng ; Liming Gao > ; Yuwei Chen ; > Andrew Fish ; Chang, Abner (HPS SW/FW Technologist) > > Subject: [Patch 3/3] BaseTools/Source: Remove CPU architecture > assumptions >=20 > REF: > INVALID URI REMOVED > d=3D3308__;!!NpxR!y1a0Mm0__hLCGUN_tBqH8jshZ_739mOBXcCvlT6o_WQKy > YICmQVJg5Wjl1Gr4vc$ >=20 > The EDK II Build Specifications do not restrict the set of > CPU architectures that can be supported. Remove places in > the EDK II that assume a fixed set of CPU architectures. >=20 > Remove build breaks in the following tools when a check against > a fixed set of CPU architectures is made. >=20 > * Build > * GenFds > * TargetTool > * GenFw >=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen > Cc: Andrew Fish > Cc: Abner Chang > Signed-off-by: Michael D Kinney > --- > BaseTools/Source/C/GenFw/Elf32Convert.c | 5 ++--- > BaseTools/Source/C/GenFw/Elf64Convert.c | 5 ++--- > BaseTools/Source/Python/GenFds/FdfParser.py | 4 +--- > BaseTools/Source/Python/TargetTool/TargetTool.py | 4 ++-- > BaseTools/Source/Python/build/buildoptions.py | 4 ++-- > 5 files changed, 9 insertions(+), 13 deletions(-) >=20 > diff --git a/BaseTools/Source/C/GenFw/Elf32Convert.c > b/BaseTools/Source/C/GenFw/Elf32Convert.c > index 7f351287a93c..2485b2cb7ad9 100644 > --- a/BaseTools/Source/C/GenFw/Elf32Convert.c > +++ b/BaseTools/Source/C/GenFw/Elf32Convert.c > @@ -1,7 +1,7 @@ > /** @file > Elf32 Convert solution >=20 > -Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
> +Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.
> Portions copyright (c) 2013, ARM Ltd. All rights reserved.
> Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. = All > rights reserved.
>=20 > @@ -143,8 +143,7 @@ InitializeElf32 ( > return FALSE; > } > if (!((mEhdr->e_machine =3D=3D EM_386) || (mEhdr->e_machine =3D=3D EM_= ARM) > || (mEhdr->e_machine =3D=3D EM_RISCV))) { > - Error (NULL, 0, 3000, "Unsupported", "ELF e_machine is not Elf32 > machine."); > - return FALSE; > + Warning (NULL, 0, 3000, "Unsupported", "ELF e_machine is not Elf32 > machine."); > } > if (mEhdr->e_version !=3D EV_CURRENT) { > Error (NULL, 0, 3000, "Unsupported", "ELF e_version (%u) not > EV_CURRENT (%d)", (unsigned) mEhdr->e_version, EV_CURRENT); > diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c > b/BaseTools/Source/C/GenFw/Elf64Convert.c > index 4ed6b4477ea9..d097db863243 100644 > --- a/BaseTools/Source/C/GenFw/Elf64Convert.c > +++ b/BaseTools/Source/C/GenFw/Elf64Convert.c > @@ -1,7 +1,7 @@ > /** @file > Elf64 convert solution >=20 > -Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
> +Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.
> Portions copyright (c) 2013-2014, ARM Ltd. All rights reserved.
> Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. = All > rights reserved.
>=20 > @@ -162,8 +162,7 @@ InitializeElf64 ( > return FALSE; > } > if (!((mEhdr->e_machine =3D=3D EM_X86_64) || (mEhdr->e_machine =3D=3D > EM_AARCH64) || (mEhdr->e_machine =3D=3D EM_RISCV64))) { > - Error (NULL, 0, 3000, "Unsupported", "ELF e_machine is not Elf64 > machine."); > - return FALSE; > + Warning (NULL, 0, 3000, "Unsupported", "ELF e_machine is not Elf64 > machine."); > } > if (mEhdr->e_version !=3D EV_CURRENT) { > Error (NULL, 0, 3000, "Unsupported", "ELF e_version (%u) not > EV_CURRENT (%d)", (unsigned) mEhdr->e_version, EV_CURRENT); > diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py > b/BaseTools/Source/Python/GenFds/FdfParser.py > index ea2401b0e4fc..5c8263f9bcc9 100644 > --- a/BaseTools/Source/Python/GenFds/FdfParser.py > +++ b/BaseTools/Source/Python/GenFds/FdfParser.py > @@ -1,7 +1,7 @@ > ## @file > # parse FDF file > # > -# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
> +# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
> # Copyright (c) 2015, Hewlett Packard Enterprise Development, L.P.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > @@ -3504,8 +3504,6 @@ class FdfParser: > raise Warning.Expected("'.'", self.FileName, self.CurrentLin= eNumber) >=20 > Arch =3D self._SkippedChars.rstrip(TAB_SPLIT) > - if Arch.upper() not in ARCH_SET_FULL: > - raise Warning("Unknown Arch '%s'" % Arch, self.FileName, > self.CurrentLineNumber) >=20 > ModuleType =3D self._GetModuleType() >=20 > diff --git a/BaseTools/Source/Python/TargetTool/TargetTool.py > b/BaseTools/Source/Python/TargetTool/TargetTool.py > index 8e0ca387c356..71222e3cc899 100644 > --- a/BaseTools/Source/Python/TargetTool/TargetTool.py > +++ b/BaseTools/Source/Python/TargetTool/TargetTool.py > @@ -1,7 +1,7 @@ > ## @file > # Target Tool Parser > # > -# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
> +# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -197,7 +197,7 @@ def RangeCheckCallback(option, opt_str, value, > parser): >=20 > def MyOptionParser(): > parser =3D OptionParser(version=3D__version__, prog=3D"TargetTool.ex= e", > usage=3D__usage__, description=3D__copyright__) > - parser.add_option("-a", "--arch", action=3D"append", type=3D"choice", > choices=3D['IA32', 'X64', 'EBC', 'ARM', 'AARCH64', '0'], dest=3D"TARGET_A= RCH", Not quite sure what's the impact on Basetool if this is removed, leave this= to owner to review. Acked-by: Abner Chang > + parser.add_option("-a", "--arch", action=3D"append", > dest=3D"TARGET_ARCH", > help=3D"ARCHS is one of list: IA32, X64, ARM, AARCH64 or EBC, wh= ich > replaces target.txt's TARGET_ARCH definition. To specify more archs, plea= se > repeat this option. 0 will clear this setting in target.txt and can't com= bine with > other value.") > parser.add_option("-p", "--platform", action=3D"callback", type=3D"s= tring", > dest=3D"DSCFILE", callback=3DSingleCheckCallback, > help=3D"Specify a DSC file, which replace target.txt's ACTIVE_PL= ATFORM > definition. 0 will clear this setting in target.txt and can't combine wit= h other > value.") > diff --git a/BaseTools/Source/Python/build/buildoptions.py > b/BaseTools/Source/Python/build/buildoptions.py > index 094af4e2a8dd..39d92cff209d 100644 > --- a/BaseTools/Source/Python/build/buildoptions.py > +++ b/BaseTools/Source/Python/build/buildoptions.py > @@ -2,7 +2,7 @@ > # build a platform or a module > # > # Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
> -# Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
> +# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.
> # Copyright (c) 2018 - 2020, Hewlett Packard Enterprise Development, > L.P.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > @@ -40,7 +40,7 @@ class MyOptionParser(): >=20 > def GetOption(self): > Parser =3D OptionParser(description=3D__copyright__, version=3D_= _version__, > prog=3D"build.exe", usage=3D"%prog [options] > [all|fds|genc|genmake|clean|cleanall|cleanlib|modules|libraries|run]") > - Parser.add_option("-a", "--arch", action=3D"append", type=3D"cho= ice", > choices=3D['IA32', 'X64', 'EBC', 'ARM', 'AARCH64', 'RISCV64'], dest=3D"Ta= rgetArch", > + Parser.add_option("-a", "--arch", action=3D"append", dest=3D"Tar= getArch", > help=3D"ARCHS is one of list: IA32, X64, ARM, AARCH64, RISCV= 64 or EBC, > which overrides target.txt's TARGET_ARCH definition. To specify more arch= s, > please repeat this option.") > Parser.add_option("-p", "--platform", action=3D"callback", type= =3D"string", > dest=3D"PlatformFile", callback=3DSingleCheckCallback, > help=3D"Build the platform specified by the DSC file name ar= gument, > overriding target.txt's ACTIVE_PLATFORM definition.") > -- > 2.31.1.windows.1