From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=CfMqhoEq; spf=pass (domain: outlook.com, ip: 40.92.255.23, mailfrom: vinxue@outlook.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MxMB9ejXILneF8PzSZHDwWsJdb3DFC87MDKlnDTXgeA=; b=CfMqhoEqRaZ258C8vnRn/gnl1D3SbOUg5ski4T37vZcoPjjkS+hOLTR/fTlrdaBJ7TM2NTVhkiSkwWodKTvsPuEUks18Bv8p6Vz2Ujgum7SnpNME/rtXioRVF/pULYUJg8Eux6R+B/b4E3DJBx6CVn+4+XCpmdGZOKzXbhpOjW8sQ78DFXUiskRpXiJ8vtlRuah37fnlBpbUgtCbZRCBV1tQlxHf7aR3yU+ek2qcVwy9KpB55CMKtGkJUd0qwy77gMuTqrJpH3sWtegi+rgm+T6QrdUMmrYvqz2di1q28oORChDlM1v//2YD8Gf8KVT8OJPmyCQgkx32NK/ymcvSKQ== 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 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 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-platforms][PATCH] Readme.md: Update cross compiling section Date: Wed, 15 Jul 2020 14:05:03 +0800 Message-ID: X-Mailer: git-send-email 2.27.0.windows.1 X-ClientProxiedBy: HK2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:202:2e::13) To SL2PR03MB4442.apcprd03.prod.outlook.com (2603:1096:100:5b::18) Return-Path: vinxue@outlook.com X-Microsoft-Original-Message-ID: <20200715060503.915-1-vinxue@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 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-Mailer: git-send-email 2.27.0.windows.1 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: BCL:0; X-Microsoft-Antispam-Message-Info: 7DLZuHIaefY60uwzImrhOaX+t1DsGL0xnuAff+TVNb7IYOXAR2JScUvME8PTwkz+IqboZUH8zVtelZQ4YwEq6i7XvlDfczBaAwj8GKCiiEa5wDIRwycuAQP71uKanH1MvZsiAM7xqBZXtqbi97O0FqSrnVB1mojdz4wTgyVITvqEF0hLZF0qhfbtKL6I4hTyZFsW3j//lZLjj8fkk0DX5pr1WU1JL7uGJD00hKgz7RfXxg/RGD55kStEZ0hm8gcN X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:SL2PR03MB4442.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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- =0D ### GCC=0D Linaro provides GCC toolchains for=0D -[aarch64-linux-gnu](https://releases.linaro.org/components/toolchain/binar= ies/latest/aarch64-linux-gnu/)=0D -and [arm-linux-gnueabihf](https://releases.linaro.org/components/toolchain= /binaries/latest/arm-linux-gnueabihf/)=0D -compiled to run on x86_64/i686 Linux and i686 Windows. Some Linux distribu= tions=0D -provide their own packaged cross-toolchains.=0D +[aarch64-linux-gnu](https://releases.linaro.org/components/toolchain/binar= ies/latest-7/aarch64-linux-gnu/)=0D +and [arm-linux-gnueabihf](https://releases.linaro.org/components/toolchain= /binaries/latest-7/arm-linux-gnueabihf/)=0D +compiled to run on x86_64/i686 Linux and i686 Windows.=0D +=0D +Some Linux distributions provide their own packaged cross-toolchains. e.g.= Install AArch64 GCC toolchain on Ubuntu (x86_64) with:=0D +=0D +`sudo apt install gcc-aarch64-linux-gnu`=0D =0D ### clang=0D Clang does not require separate cross compilers, but it does need a=0D @@ -160,6 +163,9 @@ variable `{TOOL_CHAIN_TAG}_{TARGET_ARCH}_PREFIX` - in t= he case above, **GCC5_AARCH64_PREFIX**.=0D =0D So, referring to the cross compiler toolchain table above, we should prepe= nd the `build` command line with `GCC5_AARCH64_PREFIX=3Daarch64-linux-gnu-`= .=0D +```=0D +$ GCC5_AARCH64_PREFIX=3Daarch64-linux-gnu- build -n $NUM_CPUS -a AARCH64 -= t GCC5 -p Platform/ARM/JunoPkg/ArmJuno.dsc=0D +```=0D =0D ## Using uefi-tools helper scripts=0D uefi-tools is a completely unofficial set of helper-scripts developed by L= inaro.=0D --=20 2.27.0.windows.1