Skip to content

Commit

Permalink
ARMGCC: Update CMakeLists.txt to use the ${SdkRootDirPath} variable
Browse files Browse the repository at this point in the history
 - Define a variable ${SdkRootDirPath} to easier SDK source reference.
 - Update CMakeLists.txt to use this newly defined variable.

Signed-off-by: Susan Su <[email protected]>
  • Loading branch information
mcuxsusan committed Apr 26, 2022
1 parent 54fc5f4 commit ed1fbc8
Show file tree
Hide file tree
Showing 9,024 changed files with 127,197 additions and 73,053 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -328,7 +334,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -398,11 +404,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -331,7 +337,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -401,11 +407,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -72,7 +78,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -140,11 +146,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -64,7 +70,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -116,9 +122,9 @@ include(CMSIS_Include_core_cm)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -69,7 +75,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -137,9 +143,9 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -76,7 +82,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -132,9 +138,9 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/guix ./CMakeFiles/libguix)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/guix ./CMakeFiles/libguix)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -66,7 +72,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -116,7 +122,7 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -72,7 +78,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -138,11 +144,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -70,7 +76,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -136,11 +142,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -335,7 +341,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -405,11 +411,11 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/netxduo ./CMakeFiles/libnetxduo)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/filex ./CMakeFiles/libfilex)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/filex ./CMakeFiles/libfilex)

add_subdirectory(${ProjDirPath}/../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
# CURRENT DIRECTORY
SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED ENV{SdkRootDirPath})
SET(SdkRootDirPath "$ENV{SdkRootDirPath}")
else()
SET(SdkRootDirPath "${ProjDirPath}/../../../../../..")
endif()

SET(EXECUTABLE_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})
SET(LIBRARY_OUTPUT_PATH ${ProjDirPath}/${CMAKE_BUILD_TYPE})

Expand Down Expand Up @@ -65,7 +71,7 @@ target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE

#path for entry cmake
set(CMAKE_MODULE_PATH
${ProjDirPath}/../../../../../../core
${SdkRootDirPath}/core
)

#Include Entry cmake component
Expand Down Expand Up @@ -115,7 +121,7 @@ include(utilities_misc_utilities)
include(device_system)


add_subdirectory(${ProjDirPath}/../../../../../../rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)
add_subdirectory(${SdkRootDirPath}/rtos/azure-rtos/threadx ./CMakeFiles/libthreadx)

TARGET_LINK_LIBRARIES(${MCUX_SDK_PROJECT_NAME} PRIVATE -Wl,--start-group)

Expand Down
Loading

0 comments on commit ed1fbc8

Please sign in to comment.