[edk2-devel] Overriding of linker in ed2 build system

Andrew Fish via groups.io afish=apple.com at groups.io
Wed Oct 21 14:05:33 UTC 2020



> On Oct 20, 2020, at 11:44 AM, Prabin CA <prabin.ca at arm.com> wrote:
> 
> Hi All,
> I'm trying to build edk2 source code using clang, I see that linker used by edk2 build system is dependent on "-target <triplet>" defined in "BaseTools/Conf/tools_def.template". 
> I wish to use llvm provided linker, I had tried appending  "-fuse-ld=lld" option to  "_CLANG38_AARCH64_DLINK_FLAGS" . But I still see the target specific linker being used by edk2 build system.
> Any advice what could be the right way of overriding with llvm based ld.
> 

Prabin,

When you run edksetup.sh that copies  BaseTools/Conf/tools_def.template to Conf/tools_def.txt. So you need to edit the Conf/tools_def.txt file. 

Thanks,

Andrew Fish

> Thanks and Best Regards
> Prabin CA
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#66492): https://edk2.groups.io/g/devel/message/66492
Mute This Topic: https://groups.io/mt/77702121/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20201021/9bb8d73f/attachment.htm>


More information about the edk2-devel-archive mailing list