Skip to contentSkip to conversation

Cross compiling for ARM

Xenomai-core Jan Kiszka 3 participants 4 messages Oct 13, 2007 1 message not in the archive

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi all,

in order to build Xenomai's userland with a toolchain that is prefixed with "armv5l-linux-", I had to patch configure.in like this

configure.in +1 -1
Index: configure.in
===================================================================
@@ -83,7 +83,7 @@ case "$host" in
         XENO_LINUX_ARCH=bfinnommu
 	XENO_LINUX_INSTALL_TARGET=install
         ;;
- arm-*)
+ arm*-*)
  	XENO_TARGET_ARCH=arm
  	XENO_LINUX_ARCH=arm
 	XENO_LINUX_INSTALL_TARGET=install_image

in order to call "configure --host=armv5l-linux ...". Am I doing something crazy or is this really a required patch for Xenomai?

Jan

#1 lore raw

Hi Jan,

Quoted 17 lines · Jan Kiszka

in order to build Xenomai's userland with a toolchain that is prefixed with "armv5l-linux-", I had to patch configure.in like this

Index: configure.in
===================================================================

configure.in +1 -1
@@ -83,7 +83,7 @@ case "$host" in
         XENO_LINUX_ARCH=bfinnommu
 	XENO_LINUX_INSTALL_TARGET=install
         ;;
- arm-*)
+ arm*-*)
  	XENO_TARGET_ARCH=arm
  	XENO_LINUX_ARCH=arm
 	XENO_LINUX_INSTALL_TARGET=install_image
Quoted 2 lines

in order to call "configure --host=armv5l-linux ...". Am I doing something crazy or is this really a required patch for Xenomai?

I never had such problems compiling Xenomai for ARM. Our toolchains are generally prefixed with "arm-linux-". For the --host option I use "--host=arm-unknown-linux-gnu". It works without a flaw.

Signature · 1 line
Sebastian

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw
Quoted 20 lines · Sebastian Smolorz

Hi Jan,

Quoted 17 lines · Jan Kiszka

in order to build Xenomai's userland with a toolchain that is prefixed with "armv5l-linux-", I had to patch configure.in like this

Index: configure.in
===================================================================

configure.in +1 -1
@@ -83,7 +83,7 @@ case "$host" in
         XENO_LINUX_ARCH=bfinnommu
 	XENO_LINUX_INSTALL_TARGET=install
         ;;
- arm-*)
+ arm*-*)
  	XENO_TARGET_ARCH=arm
  	XENO_LINUX_ARCH=arm
 	XENO_LINUX_INSTALL_TARGET=install_image
Quoted 6 lines
Quoted 2 lines

in order to call "configure --host=armv5l-linux ...". Am I doing something crazy or is this really a required patch for Xenomai?

I never had such problems compiling Xenomai for ARM. Our toolchains are generally prefixed with "arm-linux-". For the --host option I use "--host=arm-unknown-linux-gnu". It works without a flaw.

That toolchain is provided by TimeSys, the official BSP provider for Atmel eval boards etc. So this issue could be a beginners trap...

Jan

#4 lore raw
In reply to Jan Kiszka
Quoted 19 lines · Jan Kiszka

Hi all,

in order to build Xenomai's userland with a toolchain that is prefixed with "armv5l-linux-", I had to patch configure.in like this

Index: configure.in
===================================================================

configure.in +1 -1
@@ -83,7 +83,7 @@ case "$host" in
         XENO_LINUX_ARCH=bfinnommu
 	XENO_LINUX_INSTALL_TARGET=install
         ;;
- arm-*)
+ arm*-*)
  	XENO_TARGET_ARCH=arm
  	XENO_LINUX_ARCH=arm
 	XENO_LINUX_INSTALL_TARGET=install_image
Quoted 2 lines

in order to call "configure --host=armv5l-linux ...". Am I doing something crazy or is this really a required patch for Xenomai?

Yes, I guess this is required.

Signature · 1 line
					    Gilles Chanteperdrix.