Solved Which binutils to use on aarch64?

devel/binutils uses flavors and I am having trouble figuring out what these do:
  • aarch64: aarch64-binutils
  • aarch64_none_elf: aarch64-none-elf-binutils
I want to compile u-boot native on aarch64 and was researching my needed toolchain.

What is the difference with these two flavors?
 
When I look at the deleted page for the old port I get a clue.


GNU Compiler Collection for bare metal aarch64 cross-development
So is this a binutils to compile amd64 code from aarch64? An arm64 to amd64 cross compiler?

Whereas the aarch64-binutils is for native aarch64 on aarch64 compiling.

Do I have that right?

Deleted page from port before flavors this don't help.
 
compile u-boot native on aarch64
For native compilation you should use native binutils, all others are for cross-compilation. In other words, on aarch64 you use its native binutils.
It doesn't matter how you compile u-boot ― it runs on bare metal anyway. E.g. I compile u-boot in FreeBSD to boot BBB into Linux.
 
Back
Top