From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Tue, 21 May 2019 14:13:11 -0700 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8FFDF3688B; Tue, 21 May 2019 21:13:10 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-194.rdu2.redhat.com [10.10.120.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id DFCF4196F6; Tue, 21 May 2019 21:13:09 +0000 (UTC) Subject: Re: [edk2-devel] [Patch 0/7] Add new CLANG8ELF tool chain for new LLVM/CLANG8 To: devel@edk2.groups.io, liming.gao@intel.com References: <20190426144242.19024-1-liming.gao@intel.com> From: "Laszlo Ersek" Message-ID: Date: Tue, 21 May 2019 23:13:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190426144242.19024-1-liming.gao@intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 21 May 2019 21:13:10 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 04/26/19 16:42, Liming Gao wrote: > BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1603 > LLVM/CLANG8 formal release http://releases.llvm.org/download.html#8.0.0 > It can be downloaded and installed in Windows/Linux/Mac OS. > > CLANG8ELF tool chain is added to generate ELF image, and convert to PE/COFF. > On Windows OS, set CLANG_HOST_BIN=n, set CLANG8_BIN=LLVM installed directory > CLANG_HOST_BIN is used CLANG_HOST_PREFIX. Prefix n is for nmake. > For example: > set CLANG_HOST_BIN=n > set CLANG8_BIN=C:\Program Files\LLVM\bin\ > On Linux/Mac, export CLANG8_BIN=LLVM installed directory, CLANG_HOST_BIN is > not required, because there is no prefix for make. > For example: > export CLANG8_BIN=/home/clang8/bin/ > > This tool chain can be used to compile the firmware code. On windows OS, > Visual Studio is still required to compile BaseTools C tools and > provide nmake.exe for makefile. On Linux/Mac OS, gcc is used to compile > BaseTools C tools. make is used for makefile. > > This tool chain is verified on OVMF Ia32, X64 and Ia32X64 to boot Shell. > This tool chain is verified in Windows/Linux and Mac OS. > > Liming Gao (7): > BaseTools: Add ClangBase.lds for CLANG8 tool chain with max-page-size > BaseTools GenFw: Support CLANG8ELF with conversion ELF to PE/COFF > image > BaseTools: Update build_rule.template for ASLC rule with full C flags > BaseTools: Update build_rule to skip CLANG resource section generation > BaseTools: Update tools_def.template to directly refer to AutoGen.h > BaseTools: Add new CLANG8ELF tool chain for new LLVM/CLANG8 > OvmfPkg: Update DSC/FDF to support CLANG8ELF tool chain > > BaseTools/Source/C/GenFw/Elf32Convert.c | 12 +--- > BaseTools/Source/C/GenFw/Elf64Convert.c | 11 +-- > BaseTools/Conf/build_rule.template | 8 +-- > BaseTools/Conf/tools_def.template | 121 +++++++++++++++++++++++++++++--- > BaseTools/Scripts/ClangBase.lds | 79 +++++++++++++++++++++ > OvmfPkg/OvmfPkgIa32.dsc | 4 +- > OvmfPkg/OvmfPkgIa32.fdf | 2 +- > OvmfPkg/OvmfPkgIa32X64.dsc | 4 +- > OvmfPkg/OvmfPkgIa32X64.fdf | 2 +- > OvmfPkg/OvmfPkgX64.dsc | 4 +- > OvmfPkg/OvmfPkgX64.fdf | 2 +- > 11 files changed, 213 insertions(+), 36 deletions(-) > create mode 100644 BaseTools/Scripts/ClangBase.lds > This feature has missed edk2-stable201905. Please postpone the following BZ reference: https://bugzilla.tianocore.org/show_bug.cgi?id=1603 from https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Release-Planning#edk2-stable201905-tag-planning to https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Release-Planning#edk2-stable201908-tag-planning Thanks, Laszlo