From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx.groups.io with SMTP id smtpd.web12.4405.1594811345196595633 for ; Wed, 15 Jul 2020 04:09:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=zCHJYFSM; spf=pass (domain: nuviainc.com, ip: 209.85.221.66, mailfrom: leif@nuviainc.com) Received: by mail-wr1-f66.google.com with SMTP id r12so2119428wrj.13 for ; Wed, 15 Jul 2020 04:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+kWcKPrHZA+i47Rw4Y1RjKD47BOdaEyclk7oLQHv3zU=; b=zCHJYFSMd5e93/rgnzhxwdvCNGIY2NfGWY5NgXM4oE+6YRl857HZFQ45iEKlAHSsw3 +7+6aDCB6F4pZtDHUi+NNg1VtiksP3G8rofMo1mJdx7Cg8BBpbRaWSUrbhf94ElpPB1P 1pTt6HPQoV7NNWvLxcyU0sNq6heirV5bBlCi731w+rLGRMJPXgbGVKtqRL7Jvxrq2YmW mZwrbvPfvSO2sy9R8YXrVGgoh/ingpuW/qWp0VklT7Cc6/gH9HHffLuSAaA3FJBklcye CKh0MtysX3ygFCy7DFTHJRrkUl+ANflZmNVhFaISHlYBvhTXnjZPwCdrMEE10jZe8/Hz U7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+kWcKPrHZA+i47Rw4Y1RjKD47BOdaEyclk7oLQHv3zU=; b=J46WsdOmippWV9MTfRJVXx3JB+HXPLYoRzLipx4tR/ad3gH+hjp1+YElhtDXSQxswK 4cJwil0Y31lrHTf/TQwLWhXO2S2nPftBQTiqDK1ZYUWPfX34//UpRgwkxXRRz38yOe6Y eIHFARkxjEOx3Ffi4DGmyWaZNAVsQe+dczJT2RKq5uy1N47+GbeSbgjGCi7k5hxSyH+z qUUKdGpv50n1VZa5S6fEPnkCm6a/TQhHNUtrbzlpK6CPof7utY6IXsIY1F7BUG3PireF R0TSiXyy+4LdYSggeSv9dIICjrx1eYWFC919zU1W1OEVpvk66KaGCxAj5lgp8nVPk7Sm jUGA== X-Gm-Message-State: AOAM532kp7bevFjWUrVndGZhBA93OYQCSSzB05mUrSvYnXY1zZBXVazs pXwrkxRUkNIdRqFvZj4I79rn4Q== X-Google-Smtp-Source: ABdhPJz99h4Y5DG2/OI5TX9vgrcxOG5lwfPok0kBNMLLoErUi6LmmqHlRB7cRtjxg4/KbdWRUOlsqg== X-Received: by 2002:adf:e701:: with SMTP id c1mr11010661wrm.350.1594811343817; Wed, 15 Jul 2020 04:09:03 -0700 (PDT) Return-Path: Received: from vanye ([2001:470:1f09:12f0:b26e:bfff:fea9:f1b8]) by smtp.gmail.com with ESMTPSA id 133sm3169478wme.5.2020.07.15.04.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 04:09:03 -0700 (PDT) Date: Wed, 15 Jul 2020 12:09:01 +0100 From: "Leif Lindholm" To: Vin Xue Cc: "devel@edk2.groups.io" , Michael D Kinney Subject: Re: [edk2-platforms][PATCH] Readme.md: Update cross compiling section Message-ID: <20200715110901.GG12303@vanye> References: <20200715092654.GD12303@vanye> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Vin Xue, If the documentation can be improved, it should. I will propose an update to the cross-compilation section, thank you for reporting that the link had stopped working. On Wed, Jul 15, 2020 at 10:31:23 +0000, Vin Xue wrote: > Hi Lindholm, > > Thanks for your comments. > Usually, I am working on Windows PC for BIOS development. > Today I tried to build edk2-platform AAarch64 code, and found it's not > easy to follow readme document. So, I submitted the patch. > > Please drop the patch if there is a better update in the near future. > > > ### 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 the case above, > > **GCC5_AARCH64_PREFIX**. > > > > So, referring to the cross compiler toolchain table above, we should prepend the `build` command line with `GCC5_AARCH64_PREFIX=aarch64-linux-gnu-`. > > +``` > > +$ GCC5_AARCH64_PREFIX=aarch64-linux-gnu- build -n $NUM_CPUS -a AARCH64 -t GCC5 -p Platform/ARM/JunoPkg/ArmJuno.dsc > > +``` Actually, I misread this hunk since the context line before the addition is too long, wrapping unfortuinately in my email client; I read it as *replacing* the variable setting with the full usage example. Apologies for this. I have no objection to the addition of the full usage example. I will drop the other bits of this patch and send out a minor set of readme updates including the remainder of this patch. / Leif > > How to build a platform is already described in the section > immediately preceding this one. This paragraph tells you how to inform > the build system to apply a prefix for the compiler if cross compiling. > > Seprate note (to self, really): we don't need the -n thing anymore, > the 'build' command has been updated to figure this out for itself. > > / > Leif > > > > > ## Using uefi-tools helper scripts > > uefi-tools is a completely unofficial set of helper-scripts developed by Linaro. > > -- > > 2.27.0.windows.1 > >