1set( CMAKE_SYSTEM_NAME Linux ) 2set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE ) 3set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE ) 4set( CMAKE_SYSROOT $ENV{OECORE_TARGET_SYSROOT} ) 5 6set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} ) 7set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER ) 8set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) 9set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) 10set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY ) 11 12set(CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX "$ENV{OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX}") 13 14set( CMAKE_SYSTEM_PROCESSOR $ENV{OECORE_TARGET_ARCH} ) 15 16# Include the toolchain configuration subscripts 17file( GLOB toolchain_config_files "${CMAKE_CURRENT_LIST_FILE}.d/*.cmake" ) 18foreach(config ${toolchain_config_files}) 19 include(${config}) 20endforeach() 21 22unset(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES) 23unset(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES) 24