mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-07 16:55:56 +00:00
Update the files which contain no license information with the 'Apache-2.0' SPDX license identifier. Many source files in the tree are missing licensing information, which makes it harder for compliance tools to determine the correct license. By default all files without license information are under the default license of Zephyr, which is Apache version 2. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
29 lines
738 B
CMake
29 lines
738 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set_ifndef(CC gcc)
|
|
|
|
find_program(CMAKE_C_COMPILER ${CROSS_COMPILE}${CC} PATH ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
|
|
if(CMAKE_C_COMPILER STREQUAL CMAKE_C_COMPILER-NOTFOUND)
|
|
message(FATAL_ERROR "Zephyr was unable to find the toolchain. Is the environment misconfigured?
|
|
User-configuration:
|
|
ZEPHYR_TOOLCHAIN_VARIANT: ${ZEPHYR_TOOLCHAIN_VARIANT}
|
|
Internal variables:
|
|
CROSS_COMPILE: ${CROSS_COMPILE}
|
|
TOOLCHAIN_HOME: ${TOOLCHAIN_HOME}
|
|
")
|
|
endif()
|
|
|
|
execute_process(
|
|
COMMAND ${CMAKE_C_COMPILER} --version
|
|
RESULT_VARIABLE ret
|
|
OUTPUT_QUIET
|
|
ERROR_QUIET
|
|
)
|
|
if(ret)
|
|
message(FATAL_ERROR "Executing the below command failed. Are permissions set correctly?
|
|
'${CMAKE_C_COMPILER} --version'
|
|
"
|
|
)
|
|
endif()
|