Open michael-ring opened 9 years ago
Looks ok tbh, the cool thing about the oe/yocto toolchain is that it comes with it's own 'env' file so that compiler paths etc don't have to be hard set. Does the linaro toolchain not come with something like this?
I today discovered the directory cmake/Toolchains, a nice place to put my cmake toolchain file for crosscompiling the arm targets.
I am not a cmake guru, perhaps you guys can have a look on how to better optimize the file so that it works for as much platforms as possible:
One easy thing to do is to remove the absolute paths to gcc and g++, I am not sure how to handle
SET(CMAKE_FIND_ROOT_PATH /usr/local/linaro/arm-linux-gnueabihf/) or SET(SYSTEM_USR_DIR /usr/local/linaro/arm-linux-gnueabihf/) in an (if possible) system independant way.
Michael