File tree Expand file tree Collapse file tree 7 files changed +5
-13
lines changed Expand file tree Collapse file tree 7 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ include_guard()
2
2
3
3
include (CMakePrintHelpers )
4
4
5
+ # TOP is path to root directory
6
+ set (TOP "${CMAKE_CURRENT_LIST_DIR} /../.." )
7
+
5
8
# Default to gcc
6
9
if (NOT DEFINED TOOLCHAIN )
7
10
set (TOOLCHAIN gcc )
Original file line number Diff line number Diff line change @@ -4,9 +4,6 @@ if (NOT BOARD)
4
4
message (FATAL_ERROR "BOARD not specified" )
5
5
endif ()
6
6
7
- # TOP is path to root directory
8
- set (TOP "${CMAKE_CURRENT_LIST_DIR} /../../.." )
9
-
10
7
# toolchain set up
11
8
set (CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor" )
12
9
set (CMAKE_TOOLCHAIN_FILE ${TOP} /tools/cmake/toolchain/arm_${TOOLCHAIN}.cmake )
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ if (NOT BOARD)
4
4
message (FATAL_ERROR "BOARD not specified" )
5
5
endif ()
6
6
7
- # TOP is path to root directory
8
- set (TOP "${CMAKE_CURRENT_LIST_DIR} /../../.." )
9
7
set (SDK_DIR ${TOP} /hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx )
10
8
11
9
# toolchain set up
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ if (NOT BOARD)
4
4
message (FATAL_ERROR "BOARD not specified" )
5
5
endif ()
6
6
7
- # TOP is path to root directory
8
- set (TOP "${CMAKE_CURRENT_LIST_DIR} /../../.." )
9
7
set (SDK_DIR ${TOP} /hw/mcu/nxp/mcux-sdk )
10
8
set (CMSIS_DIR ${TOP} /lib/CMSIS_5 )
11
9
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ if (NOT BOARD)
4
4
message (FATAL_ERROR "BOARD not specified" )
5
5
endif ()
6
6
7
- # TOP is path to root directory
8
- set (TOP ${CMAKE_CURRENT_LIST_DIR} /../../.. )
9
7
set (SDK_DIR ${TOP} /hw/mcu/nxp/mcux-sdk )
10
8
set (CMSIS_DIR ${TOP} /lib/CMSIS_5 )
11
9
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ if (NOT BOARD)
4
4
message (FATAL_ERROR "BOARD not specified" )
5
5
endif ()
6
6
7
- # TOP is path to root directory
8
- set (TOP "${CMAKE_CURRENT_LIST_DIR} /../../.." )
9
7
set (NRFX_DIR ${TOP} /hw/mcu/nordic/nrfx )
10
8
set (CMSIS_DIR ${TOP} /lib/CMSIS_5 )
11
9
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
16
16
include (${CMAKE_CURRENT_LIST_DIR} /boards/${BOARD}/board.cmake )
17
17
18
18
# TOP is absolute path to root directory of TinyUSB git repo
19
- set (TOP "${CMAKE_CURRENT_LIST_DIR} /../../.." )
20
- get_filename_component (TOP "${TOP} " REALPATH )
19
+ # set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
20
+ # get_filename_component(TOP "${TOP}" REALPATH)
21
21
22
22
if (NOT PICO_TINYUSB_PATH )
23
23
set (PICO_TINYUSB_PATH ${TOP} )
You can’t perform that action at this time.
0 commit comments