Tool/software: TI C/C++ Compiler
Hello,
I am trying to compile an application using CMake to run on the DRA80xM running TI Linux. I am unsure about a few settings in the Toolchain file that I should be using.
# this one is important SET(CMAKE_SYSTEM_NAME Linux) #this one not so much SET(CMAKE_SYSTEM_VERSION 1) # specify the cross compiler SET(CMAKE_C_COMPILER /home/prateek/ti-processor-sdk-linux-am65xx-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc) SET(CMAKE_CXX_COMPILER /home/prateek/ti-processor-sdk-linux-am65xx-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-g++) # where is the target environment SET(CMAKE_FIND_ROOT_PATH ????????) # 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)
What should CMAKE_FIND_ROOT_PATH be set to for processor SDK? Any other changes I should make for creating this file? Please advise.
Note: I am trying to build https://github.com/advancedtelematic/aktualizr
Also, is it possible to build it using bitbake? I am not entirely sure if I can, since I don't see any Bitbake configurations in the processor SDK directory. (ref: https://docs.ota.here.com/quickstarts/adding-ats-garage-updating-to-an-existing-yocto-project.html)
Sorry if I asked any newbie questions, I am new to the world of Embedded Linux.
Thanks,
Prateek