Skip to content

Commit c0ecf8b

Browse files
committed
move set TOP to family_support.cmake
1 parent 23c8670 commit c0ecf8b

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

hw/bsp/family_support.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ include_guard()
22

33
include(CMakePrintHelpers)
44

5+
# TOP is path to root directory
6+
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../..")
7+
58
# Default to gcc
69
if (NOT DEFINED TOOLCHAIN)
710
set(TOOLCHAIN gcc)

hw/bsp/imxrt/family.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ if (NOT BOARD)
44
message(FATAL_ERROR "BOARD not specified")
55
endif ()
66

7-
# TOP is path to root directory
8-
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
9-
107
# toolchain set up
118
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
129
set(CMAKE_TOOLCHAIN_FILE ${TOP}/tools/cmake/toolchain/arm_${TOOLCHAIN}.cmake)

hw/bsp/lpc18/family.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if (NOT BOARD)
44
message(FATAL_ERROR "BOARD not specified")
55
endif ()
66

7-
# TOP is path to root directory
8-
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
97
set(SDK_DIR ${TOP}/hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx)
108

119
# toolchain set up

hw/bsp/lpc55/family.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if (NOT BOARD)
44
message(FATAL_ERROR "BOARD not specified")
55
endif ()
66

7-
# TOP is path to root directory
8-
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
97
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
108
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
119

hw/bsp/mcx/family.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if (NOT BOARD)
44
message(FATAL_ERROR "BOARD not specified")
55
endif ()
66

7-
# TOP is path to root directory
8-
set(TOP ${CMAKE_CURRENT_LIST_DIR}/../../..)
97
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
108
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
119

hw/bsp/nrf/family.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ if (NOT BOARD)
44
message(FATAL_ERROR "BOARD not specified")
55
endif ()
66

7-
# TOP is path to root directory
8-
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
97
set(NRFX_DIR ${TOP}/hw/mcu/nordic/nrfx)
108
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
119

hw/bsp/rp2040/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
1616
include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake)
1717

1818
# 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)
2121

2222
if (NOT PICO_TINYUSB_PATH)
2323
set(PICO_TINYUSB_PATH ${TOP})

0 commit comments

Comments
 (0)