[meta-freescale] [meta-fsl-ppc][PATCH 01/16] use 64b toolchain binaries to build e6500 kernel

Otavio Salvador otavio.salvador at ossystems.com.br
Fri Jul 17 04:42:19 PDT 2015


On Fri, Jul 17, 2015 at 4:17 AM,  <b28495 at freescale.com> wrote:
> From: Ting Liu <ting.liu at freescale.com>
>
> e6500 only supports 64b kernel. When building 64b kernel + 32b rootfs,
> kernel build uses a hack previously, ie. append '-m64' and '-elf64ppc'
> to 32b toolchain binaries. This fails if kernel use some builtin functions:
> |   LINK    vmlinux
> |   LD      vmlinux.o
> | powerpc-fsl-linux-ld.bfd: Relocatable linking with relocations from
> | format elf32-powerpc (.../4.9.2/libgcc.a(_popcountdi2.o)) to format
> | elf64-powerpc (vmlinux.o) is not supported
> | make: *** [vmlinux] Error 1
> | ERROR: oe_runmake failed
>
> modify KERNEL_{CC,LD,AR} to use 64b toolchain binaries to avoid error.
>
> Signed-off-by: Ting Liu <ting.liu at freescale.com>


Acked-by: Otavio Salvador <otavio at ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list