From nobody Mon May 6 08:17:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62597+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62597+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=outlook.com Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1594803299465893.2855988818071; Wed, 15 Jul 2020 01:54:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nxfeYY1788612xYRCFbuYfnE; Wed, 15 Jul 2020 01:54:59 -0700 X-Received: from APC01-HK2-obe.outbound.protection.outlook.com (APC01-HK2-obe.outbound.protection.outlook.com [40.92.255.23]) by mx.groups.io with SMTP id smtpd.web11.1285.1594793127898165814 for ; Tue, 14 Jul 2020 23:05:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=icQ43EVxOTSD2khNikqj18FWWHRoQyKpaPBj4CTQyTfsuX6JhYcxgajFiLDupcrXWhB+HKJdT/3LEOvWDEFa3kIiIgLFVCUbxXfEA8SU1V1X189ARx0RhckgBpzdZClSDxyMwnMWDvwMAn8qDfnv8cfcMtmoiw3/ieU+zZaWGfioh+KuaqES3S7pQ3gLWzJotAo9neiRCHZcbp9TlkhbHAZXKlKPNq8NWIUnY4cbforNG4KzHEAG2ASitAEwamtLUF/MUPqLfItlB94rKEPYhDoRP9fNEFMZl2BRLkItBAH/Oc3kzfA3Zp3u+fmmRoQTvUW7aYnJ0MRgHgqYbi1paQ== 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=MxMB9ejXILneF8PzSZHDwWsJdb3DFC87MDKlnDTXgeA=; b=Xz/Zi924okLVJnEJY61rpVSbMuEDwq047SwCy3qdzL5J5vPM9wzY5IXr85q1NMAi5or1ylRcN8fD+6tj46UF417/If25tz06P8M1AAgSgYXFhqFNsXjaMDM+w0EDXHce+sFKGq153Ggsi8LKyjVFoPtho2vSHLjPcc9PO0reWZcksa93mMD7C4rKUeiE9C/6KId4O2chRl3cSK3weN4kld5+yesUKSoAvCTptZm3t1BF6HOyPHHXa+lScvswZlkKiW6RK/j1tvOhdwfkdbJOvE9IZV6g5HpbE+KS986oPqputK1tKMNeR1L/CqSTJKz2in1PKSJb9yn4V0VFHjwEGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none X-Received: from SG2APC01FT042.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::48) by SG2APC01HT025.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::426) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Wed, 15 Jul 2020 06:05:24 +0000 X-Received: from SL2PR03MB4442.apcprd03.prod.outlook.com (2a01:111:e400:7ebd::43) by SG2APC01FT042.mail.protection.outlook.com (2a01:111:e400:7ebd::274) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21 via Frontend Transport; Wed, 15 Jul 2020 06:05:24 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3BAC95D8AAB2D612397AE14FF847E9BEFDB2BAAFB1075145BD95BE32CBE070A9;UpperCasedChecksum:A3C33DD08C519E0778B337043B0D20123C6F8974F44D9EAAB6EF95DE89573A57;SizeAsReceived:7439;Count:47 X-Received: from SL2PR03MB4442.apcprd03.prod.outlook.com ([fe80::6887:4d23:2904:f332]) by SL2PR03MB4442.apcprd03.prod.outlook.com ([fe80::6887:4d23:2904:f332%7]) with mapi id 15.20.3195.017; Wed, 15 Jul 2020 06:05:24 +0000 From: Vin Xue To: devel@edk2.groups.io Cc: Leif Lindholm , Michael D Kinney Subject: [edk2-devel] [edk2-platforms][PATCH] Readme.md: Update cross compiling section Date: Wed, 15 Jul 2020 14:05:03 +0800 Message-ID: X-ClientProxiedBy: HK2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:202:2e::13) To SL2PR03MB4442.apcprd03.prod.outlook.com (2603:1096:100:5b::18) X-Microsoft-Original-Message-ID: <20200715060503.915-1-vinxue@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from SHA-D10WENXIXUE.amd.com (58.247.170.242) by HK2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:202:2e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Wed, 15 Jul 2020 06:05:23 +0000 X-Microsoft-Original-Message-ID: <20200715060503.915-1-vinxue@outlook.com> X-TMN: [QKTNkv/FMSQgn1r4f0dKmJyxXQ9relvN] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2598374e-bdc7-4c5d-ccb1-08d82885102d X-MS-TrafficTypeDiagnostic: SG2APC01HT025: X-Microsoft-Antispam-Message-Info: 7DLZuHIaefY60uwzImrhOaX+t1DsGL0xnuAff+TVNb7IYOXAR2JScUvME8PTwkz+IqboZUH8zVtelZQ4YwEq6i7XvlDfczBaAwj8GKCiiEa5wDIRwycuAQP71uKanH1MvZsiAM7xqBZXtqbi97O0FqSrnVB1mojdz4wTgyVITvqEF0hLZF0qhfbtKL6I4hTyZFsW3j//lZLjj8fkk0DX5pr1WU1JL7uGJD00hKgz7RfXxg/RGD55kStEZ0hm8gcN X-MS-Exchange-AntiSpam-MessageData: ysgBuY1eteBaB4GepV25TLIyfV9eyNsiK0Ma7ALOjIa+hPNpBJhuhdfY8/hVYZqwNi88S1qQLc7X/7I6rp9fhffvmH/CFnTu3OPg2ept27cdSvPKDzEeBvYtXwdmSEvZ+lS9uirwk8O8DEPuGq17Kw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2598374e-bdc7-4c5d-ccb1-08d82885102d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2020 06:05:24.5160 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT042.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT025 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,vinxue@outlook.com X-Gm-Message-State: B3q3QnkM5DhTOkSaWbxUukLXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594803299; bh=yYDjiNEHiJ9lV5Yn7cOGPAuh96q7cFFKUwaSs8apkkg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=HeQXQuW8PD4eozPkodN8cGjts7qrKJEBKMInE88xoxHSrXW/qVLU2QSPP24wprh4bmY Pjb5lmhx1oTaHNjKKSdIbmJVBxxjUew+DikN2KaNVAP2SQdQqhEslsdNCEwayZglUkrzX eu8pjUBNgXGeOI0qvDLzb4UxV5YOLTWhyrQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 1. Update invalid URL link of Linaro GCC toolchains. 2. Add build command example for cross compiling. Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: Vin Xue --- Readme.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index ea9492240a..2e30f672cc 100644 --- a/Readme.md +++ b/Readme.md @@ -57,10 +57,13 @@ X64 | x86_64-linux-gnu- =20 ### GCC Linaro provides GCC toolchains for -[aarch64-linux-gnu](https://releases.linaro.org/components/toolchain/binar= ies/latest/aarch64-linux-gnu/) -and [arm-linux-gnueabihf](https://releases.linaro.org/components/toolchain= /binaries/latest/arm-linux-gnueabihf/) -compiled to run on x86_64/i686 Linux and i686 Windows. Some Linux distribu= tions -provide their own packaged cross-toolchains. +[aarch64-linux-gnu](https://releases.linaro.org/components/toolchain/binar= ies/latest-7/aarch64-linux-gnu/) +and [arm-linux-gnueabihf](https://releases.linaro.org/components/toolchain= /binaries/latest-7/arm-linux-gnueabihf/) +compiled to run on x86_64/i686 Linux and i686 Windows. + +Some Linux distributions provide their own packaged cross-toolchains. e.g.= Install AArch64 GCC toolchain on Ubuntu (x86_64) with: + +`sudo apt install gcc-aarch64-linux-gnu` =20 ### clang Clang does not require separate cross compilers, but it does need a @@ -160,6 +163,9 @@ variable `{TOOL_CHAIN_TAG}_{TARGET_ARCH}_PREFIX` - in t= he case above, **GCC5_AARCH64_PREFIX**. =20 So, referring to the cross compiler toolchain table above, we should prepe= nd the `build` command line with `GCC5_AARCH64_PREFIX=3Daarch64-linux-gnu-`. +``` +$ GCC5_AARCH64_PREFIX=3Daarch64-linux-gnu- build -n $NUM_CPUS -a AARCH64 -= t GCC5 -p Platform/ARM/JunoPkg/ArmJuno.dsc +``` =20 ## Using uefi-tools helper scripts uefi-tools is a completely unofficial set of helper-scripts developed by L= inaro. --=20 2.27.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62597): https://edk2.groups.io/g/devel/message/62597 Mute This Topic: https://groups.io/mt/75516874/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-