mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
move set TOP to family_support.cmake
This commit is contained in:
parent
23c8670e79
commit
c0ecf8b50f
@ -2,6 +2,9 @@ include_guard()
|
|||||||
|
|
||||||
include(CMakePrintHelpers)
|
include(CMakePrintHelpers)
|
||||||
|
|
||||||
|
# TOP is path to root directory
|
||||||
|
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../..")
|
||||||
|
|
||||||
# Default to gcc
|
# Default to gcc
|
||||||
if (NOT DEFINED TOOLCHAIN)
|
if (NOT DEFINED TOOLCHAIN)
|
||||||
set(TOOLCHAIN gcc)
|
set(TOOLCHAIN gcc)
|
||||||
|
@ -4,9 +4,6 @@ if (NOT BOARD)
|
|||||||
message(FATAL_ERROR "BOARD not specified")
|
message(FATAL_ERROR "BOARD not specified")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TOP is path to root directory
|
|
||||||
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
|
||||||
|
|
||||||
# toolchain set up
|
# toolchain set up
|
||||||
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
|
set(CMAKE_SYSTEM_PROCESSOR cortex-m7 CACHE INTERNAL "System Processor")
|
||||||
set(CMAKE_TOOLCHAIN_FILE ${TOP}/tools/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
|
set(CMAKE_TOOLCHAIN_FILE ${TOP}/tools/cmake/toolchain/arm_${TOOLCHAIN}.cmake)
|
||||||
|
@ -4,8 +4,6 @@ if (NOT BOARD)
|
|||||||
message(FATAL_ERROR "BOARD not specified")
|
message(FATAL_ERROR "BOARD not specified")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TOP is path to root directory
|
|
||||||
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
|
||||||
set(SDK_DIR ${TOP}/hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx)
|
set(SDK_DIR ${TOP}/hw/mcu/nxp/lpcopen/lpc18xx/lpc_chip_18xx)
|
||||||
|
|
||||||
# toolchain set up
|
# toolchain set up
|
||||||
|
@ -4,8 +4,6 @@ if (NOT BOARD)
|
|||||||
message(FATAL_ERROR "BOARD not specified")
|
message(FATAL_ERROR "BOARD not specified")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TOP is path to root directory
|
|
||||||
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
|
||||||
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
|
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
|
||||||
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@ if (NOT BOARD)
|
|||||||
message(FATAL_ERROR "BOARD not specified")
|
message(FATAL_ERROR "BOARD not specified")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TOP is path to root directory
|
|
||||||
set(TOP ${CMAKE_CURRENT_LIST_DIR}/../../..)
|
|
||||||
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
|
set(SDK_DIR ${TOP}/hw/mcu/nxp/mcux-sdk)
|
||||||
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@ if (NOT BOARD)
|
|||||||
message(FATAL_ERROR "BOARD not specified")
|
message(FATAL_ERROR "BOARD not specified")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TOP is path to root directory
|
|
||||||
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
|
||||||
set(NRFX_DIR ${TOP}/hw/mcu/nordic/nrfx)
|
set(NRFX_DIR ${TOP}/hw/mcu/nordic/nrfx)
|
||||||
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
set(CMSIS_DIR ${TOP}/lib/CMSIS_5)
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
|
|||||||
include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake)
|
||||||
|
|
||||||
# TOP is absolute path to root directory of TinyUSB git repo
|
# TOP is absolute path to root directory of TinyUSB git repo
|
||||||
set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
#set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
||||||
get_filename_component(TOP "${TOP}" REALPATH)
|
#get_filename_component(TOP "${TOP}" REALPATH)
|
||||||
|
|
||||||
if (NOT PICO_TINYUSB_PATH)
|
if (NOT PICO_TINYUSB_PATH)
|
||||||
set(PICO_TINYUSB_PATH ${TOP})
|
set(PICO_TINYUSB_PATH ${TOP})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user