Cross compiling for ARM
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
@@ -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
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]
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
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.