Skip to contentSkip to conversation

Denys Dmytriyenko : linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel

PATCH Arago Project git 1 participant 1 message May 11, 2012

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: master
Commit: a623c766f2ea8e022d216d281301919ee0cdd3fb
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=a623c766f2ea8e022d216d281301919ee0cdd3fb
Author: Denys Dmytriyenko <[email protected]>
Date:   Thu May 10 21:55:15 2012 -0400

linux-ti33x-psp 3.2: avoid gold linker for Thumb2 kernel

BeagleBone kernel is required to be built in Thumb2 mode for fast boot. Gold linker is not yet perfect for this, giving an internal error:

| arm-linux-gnueabi-ld: internal error in thumb_branch_common, at .../binutils-cross-2.22-r6/binutils-2.22/gold/arm.cc:4149

While this fix can be put in generic linux.inc for all the kernels, it's better to test the Gold linker out as much as possible and only disable it for known issues, like this one (until it gets fixed, of course).

---

 recipes-kernel/linux/linux-ti33x-psp_3.2.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +2 -0
index d1dfaaf..0f44a95 100644
@@ -22,6 +22,8 @@ SRC_URI += "git://arago-project.org/git/projects/linux-am33x.git;protocol=http;b
 
 SRC_URI_append_beaglebone = " file://logo_linux_clut224.ppm"
 
+KERNEL_LDSUFFIX_beaglebone = "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '.bfd', '', d)}"
+
 do_compile_prepend() {
 	cp ${WORKDIR}/am335x-pm-firmware.bin ${S}/firmware/
 }