[edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs

Ni, Ray posted 6 patches 2 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20210602074554.244-1-ray.ni@intel.com
There is a newer version of this series
BaseTools/Conf/build_rule.template      |   5 +-
BaseTools/Conf/tools_def.template       | 109 +++++++++++++++++++++++-
BaseTools/Scripts/ClangBase.lds         |  78 +++++++++++++++++
BaseTools/Source/C/GenFw/Elf32Convert.c |  12 +--
BaseTools/Source/C/GenFw/Elf64Convert.c |   5 +-
5 files changed, 192 insertions(+), 17 deletions(-)
create mode 100644 BaseTools/Scripts/ClangBase.lds
[edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs
Posted by Ni, Ray 2 years, 11 months ago
Universal payload requires its format in ELF format while today's EDKII
doesn't contain a cross OS toolchain that generates ELF images.

The patch set is based on Liming's work in year 2019 and some very minor
modifications are made:
1. Update toolchain name from CLANG8ELF to CLANGDWARF.
2. Update link script to keep dynamic section.

Liming Gao (4):
  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 to skip CLANG resource section generation
  BaseTools: Add new CLANG8ELF tool chain for new LLVM/CLANG8

Ray Ni (2):
  BaseTools: Update ClangBase.lds to keep dynamic section
  BaseTools: Change CLANG8ELF to CLANGDWARF

 BaseTools/Conf/build_rule.template      |   5 +-
 BaseTools/Conf/tools_def.template       | 109 +++++++++++++++++++++++-
 BaseTools/Scripts/ClangBase.lds         |  78 +++++++++++++++++
 BaseTools/Source/C/GenFw/Elf32Convert.c |  12 +--
 BaseTools/Source/C/GenFw/Elf64Convert.c |   5 +-
 5 files changed, 192 insertions(+), 17 deletions(-)
 create mode 100644 BaseTools/Scripts/ClangBase.lds

-- 
2.31.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75946): https://edk2.groups.io/g/devel/message/75946
Mute This Topic: https://groups.io/mt/83253702/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


回复: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs
Posted by gaoliming 2 years, 11 months ago
Ray:
  Thanks for your effort to integrate CLANGDWARF tool chain. Previous work
bases on CLANG8. Now, which version CLANG compiler is used?

  And, can you submit one BZ for this new feature? Then, I can add it to the
feature planning. 

  Besides, please remove conflict message in the commit message of patch
2~4.

Thanks
Liming
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Ni, Ray
> 发送时间: 2021年6月2日 15:46
> 收件人: devel@edk2.groups.io
> 主题: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal
> payload needs
> 
> Universal payload requires its format in ELF format while today's EDKII
> doesn't contain a cross OS toolchain that generates ELF images.
> 
> The patch set is based on Liming's work in year 2019 and some very minor
> modifications are made:
> 1. Update toolchain name from CLANG8ELF to CLANGDWARF.
> 2. Update link script to keep dynamic section.
> 
> Liming Gao (4):
>   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 to skip CLANG resource section generation
>   BaseTools: Add new CLANG8ELF tool chain for new LLVM/CLANG8
> 
> Ray Ni (2):
>   BaseTools: Update ClangBase.lds to keep dynamic section
>   BaseTools: Change CLANG8ELF to CLANGDWARF
> 
>  BaseTools/Conf/build_rule.template      |   5 +-
>  BaseTools/Conf/tools_def.template       | 109
> +++++++++++++++++++++++-
>  BaseTools/Scripts/ClangBase.lds         |  78 +++++++++++++++++
>  BaseTools/Source/C/GenFw/Elf32Convert.c |  12 +--
>  BaseTools/Source/C/GenFw/Elf64Convert.c |   5 +-
>  5 files changed, 192 insertions(+), 17 deletions(-)
>  create mode 100644 BaseTools/Scripts/ClangBase.lds
> 
> --
> 2.31.1.windows.1
> 
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#76000): https://edk2.groups.io/g/devel/message/76000
Mute This Topic: https://groups.io/mt/83274110/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs
Posted by Ni, Ray 2 years, 11 months ago
Liming,
I resent the V2 that removed the conflict messages and corrected your mail address.
I am using CLANG V11.
https://bugzilla.tianocore.org/show_bug.cgi?id=3431 was submitted.

Thanks,
Ray

> -----Original Message-----
> From: gaoliming <gaoliming@byosoft.com.cn>
> Sent: Thursday, June 3, 2021 9:18 AM
> To: devel@edk2.groups.io; Ni, Ray <ray.ni@intel.com>
> Subject: 回复: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs
> 
> Ray:
>   Thanks for your effort to integrate CLANGDWARF tool chain. Previous work
> bases on CLANG8. Now, which version CLANG compiler is used?
> 
>   And, can you submit one BZ for this new feature? Then, I can add it to the
> feature planning.
> 
>   Besides, please remove conflict message in the commit message of patch
> 2~4.
> 
> Thanks
> Liming
> > -----邮件原件-----
> > 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Ni, Ray
> > 发送时间: 2021年6月2日 15:46
> > 收件人: devel@edk2.groups.io
> > 主题: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal
> > payload needs
> >
> > Universal payload requires its format in ELF format while today's EDKII
> > doesn't contain a cross OS toolchain that generates ELF images.
> >
> > The patch set is based on Liming's work in year 2019 and some very minor
> > modifications are made:
> > 1. Update toolchain name from CLANG8ELF to CLANGDWARF.
> > 2. Update link script to keep dynamic section.
> >
> > Liming Gao (4):
> >   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 to skip CLANG resource section generation
> >   BaseTools: Add new CLANG8ELF tool chain for new LLVM/CLANG8
> >
> > Ray Ni (2):
> >   BaseTools: Update ClangBase.lds to keep dynamic section
> >   BaseTools: Change CLANG8ELF to CLANGDWARF
> >
> >  BaseTools/Conf/build_rule.template      |   5 +-
> >  BaseTools/Conf/tools_def.template       | 109
> > +++++++++++++++++++++++-
> >  BaseTools/Scripts/ClangBase.lds         |  78 +++++++++++++++++
> >  BaseTools/Source/C/GenFw/Elf32Convert.c |  12 +--
> >  BaseTools/Source/C/GenFw/Elf64Convert.c |   5 +-
> >  5 files changed, 192 insertions(+), 17 deletions(-)
> >  create mode 100644 BaseTools/Scripts/ClangBase.lds
> >
> > --
> > 2.31.1.windows.1
> >
> >
> >
> > 
> >
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#76006): https://edk2.groups.io/g/devel/message/76006
Mute This Topic: https://groups.io/mt/83277797/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 0/6] Add CLANGDWARF toolchain for universal payload needs
Posted by Ni, Ray 2 years, 11 months ago
V2 is at https://edk2.groups.io/g/devel/message/75955?p=,,,20,0,0,0::Created,,CLANGDWARF,20,2,0,83253912


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#76007): https://edk2.groups.io/g/devel/message/76007
Mute This Topic: https://groups.io/mt/83277797/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-