On Wed, Apr 20, 2016 at 11:07 PM, Mike Frysinger <vap...@gentoo.org> wrote:
> On 20 Apr 2016 13:52, Leno Hou wrote: > > Authored-by: Linda Jiang <linda.q...@gmail.com> > > --- > > eclass/toolchain-binutils.eclass | 1 + > > 1 file changed, 1 insertion(+) > > when you submit a patch that is not extremely obvious, you must provide > details/justification in the commit message. otherwise we're forced to > try and guess what/why it is you want to do things, and ultimately we > tend to start of just saying "no". > Sorry, We describes details/justification in Gentoo Bugzilla#580614 <https://bugs.gentoo.org/show_bug.cgi?id=580614>. Explain here again. 1) When use CHOST="powerpc64le-unknown-linux-gnu" (active host?) to build binutils. there is no birch support. See current supported emulations#powerpc64le-unknown-linux-gnu-ld -V leno@localhost ~ $ powerpc64le-unknown-linux-gnu-ld -V GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 Supported emulations: elf64lppc elf32lppc elf32lppclinux elf32lppcsim But we want elf64ppc for building grub2. If we there is no elf64ppc emulation, we can't compiling grub2 and grub2-install for ppc64le platform. 2) Following are the emulations what we want leno@localhost ~ $ powerpc64le-unknown-linux-gnu-ld -V GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 Supported emulations: elf64lppc elf32lppc elf32lppclinux elf32lppcsim elf32ppclinux elf32ppc elf32ppcsim elf64ppc 3) Linda Jiang found that *--enable-targets=all *make on sense to build the above emulations what we want. But *--enable-targets="powerpc-linux-gnu" *built the targets we want. If there is no other arch-specific handled like this, Is there another can handle this case? where is the file you attached ? and indeed, when i query a default ppc64 linker, it says it already > supports both 32bit & 64bit targets: > $ powerpc64-unknown-linux-gnu-ld --help | grep supported > powerpc64-unknown-linux-gnu-ld: supported targets: elf64-powerpc > elf64-powerpcle elf32-powerpc elf32-powerpcle aixcoff-rs6000 > aixcoff64-rs6000 aix5coff64-rs6000 elf64-little elf64-big elf32-little > elf32-big plugin srec symbolsrec verilog tekhex binary ihex > powerpc64-unknown-linux-gnu-ld: supported emulations: elf64ppc elf32ppc > elf32ppclinux elf32ppcsim > > it would have to of course in order for biarch support (which works) > which is how we build 64-bit kernels in a 32-bit userland. > -mike >