Hi
I'm trying to cross compile the linux code for a Technologic TS-7250 arm board. Has anyone done this or tried something similar? I tried creating a special cmake file ts72xx.cmake with the following:
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/local/ts72xx/arm/bin/arm-oe-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/ts72xx/arm/bin/arm-oe-linux-gnueabi-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/local/ts72xx/arm)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
[ends]
then from the directory where I unzipped the source, I ran
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=./ts72xx.cmake ..
make && make install
but it doesn't result in a cross-compile, just a standard compile.
Any ideas?
thanks Dominic
cross compiling for arm
Moderator: Telldus
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: cross compiling for arm
If you set VERBOSE_MAKEFILE till YES (easiest done with ccmake) you can see which tools cmake calls.
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies