building angstrom with uclibc fails

Theodore A. Roth taroth at gmail.com
Thu Feb 19 00:58:02 UTC 2009


Hi,

I have been trying to build an initramfs image using angstrom for an
ARM based board. If I set ANGSTROMLIBC = "uclibc" in my local.conf,
the build failes exactly like this:

  http://tinderbox.openembedded.net/packages/339702/

When I manually changed conf/distro/include/angstrom.inc so that
ANGSTROM_ARM_INSTRUCTION_SET_armv5te = "arm" instead of "thumb", then
the build is ok.

In googling for a fix, I came across a reference which suggested
compiling uclibc as arm and then using thumb interworking for
applications. I was unable to figure out how to do this via a change
to some recipes or setting of some variable. Is this possible?

Also, it appears that I can not override the
ANGSTROM_ARM_INSTRUCTION_SET_armv5te variable without a patch like
this:

diff --git a/conf/distro/include/angstrom.inc b/conf/distro/include/angstrom.inc
index 60f2e55..50f15d4 100644
--- a/conf/distro/include/angstrom.inc
+++ b/conf/distro/include/angstrom.inc
@@ -31,9 +31,9 @@ require conf/distro/include/angstrom-${ANGSTROMLIBC}.inc

 # We can't do ARM_INSTRUCTION_SET_armv4t since that will
un-overridable in recipes like gcc
 ANGSTROM_ARM_INSTRUCTION_SET ?= "arm"
-ANGSTROM_ARM_INSTRUCTION_SET_armv4t = "thumb"
-ANGSTROM_ARM_INSTRUCTION_SET_armv5te = "thumb"
-ANGSTROM_ARM_INSTRUCTION_SET_armv5teb = "thumb"
+ANGSTROM_ARM_INSTRUCTION_SET_armv4t ?= "thumb"
+ANGSTROM_ARM_INSTRUCTION_SET_armv5te ?= "thumb"
+ANGSTROM_ARM_INSTRUCTION_SET_armv5teb ?= "thumb"


 ARM_INSTRUCTION_SET = "${ANGSTROM_ARM_INSTRUCTION_SET}"
(END)

So, this post boils down to two questions:

1: Should I just build all of angstrom with uClibc as arm by changing
the instruction set variable?

2: Is there a fix to allow building of uClibc as thumb?

My local setup is available here:
  http://github.com/troth/oe-setup/tree/master

My branch of org.openembedded.dev for the ts7800 board I am working
with is here:
  http://github.com/troth/oe-ts7xxx/tree/ts7800

Thanks,

Ted Roth




More information about the Openembedded-users mailing list