]> code.ossystems Code Review - meta-freescale.git/commit
use 64b toolchain binaries to build e6500 kernel
authorTing Liu <ting.liu@freescale.com>
Fri, 17 Jul 2015 07:17:37 +0000 (15:17 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 02:26:58 +0000 (23:26 -0300)
commit4746fc1cb8d90dbeea36c1743315923e2184bf26
tree4266716044adb70965657fdd47a551a8e5dc1d0c
parentdf14a6c4b12a3129463f5ac4e265e3df90ee97f6
use 64b toolchain binaries to build e6500 kernel

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@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass