From 4b8b69cfe64a4cf65a701f7921aaa664aa1afd71 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Thu, 22 Aug 2024 18:04:35 +0200 Subject: [PATCH] chore(cmake): update with STM32U0xx variants Signed-off-by: Frederic Pillon --- cmake/boards_db.cmake | 560 ++++++++++++++++++ .../STM32U0xx/U031C(6-8)(T-U)/CMakeLists.txt | 31 + .../STM32U0xx/U031F(4-6-8)P/CMakeLists.txt | 31 + variants/STM32U0xx/U031G(6-8)Y/CMakeLists.txt | 31 + .../STM32U0xx/U031K(4-6-8)U/CMakeLists.txt | 31 + .../STM32U0xx/U031R(6-8)(I-T)/CMakeLists.txt | 31 + .../CMakeLists.txt | 31 + .../U073H(8-B-C)Y_U083HCY/CMakeLists.txt | 31 + .../U073K(8-B-C)U_U083KCU/CMakeLists.txt | 31 + .../U073M(8-B-C)I_U083MCI/CMakeLists.txt | 31 + .../U073M(8-B-C)T_U083MCT/CMakeLists.txt | 31 + .../CMakeLists.txt | 31 + 12 files changed, 901 insertions(+) create mode 100644 variants/STM32U0xx/U031C(6-8)(T-U)/CMakeLists.txt create mode 100644 variants/STM32U0xx/U031F(4-6-8)P/CMakeLists.txt create mode 100644 variants/STM32U0xx/U031G(6-8)Y/CMakeLists.txt create mode 100644 variants/STM32U0xx/U031K(4-6-8)U/CMakeLists.txt create mode 100644 variants/STM32U0xx/U031R(6-8)(I-T)/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073C(8-B-C)(T-U)_U083CC(T-U)/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073H(8-B-C)Y_U083HCY/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073K(8-B-C)U_U083KCU/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073M(8-B-C)I_U083MCI/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073M(8-B-C)T_U083MCT/CMakeLists.txt create mode 100644 variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)/CMakeLists.txt diff --git a/cmake/boards_db.cmake b/cmake/boards_db.cmake index 8fe5ac87da..62d7034911 100644 --- a/cmake/boards_db.cmake +++ b/cmake/boards_db.cmake @@ -97862,6 +97862,566 @@ target_compile_options(GENERIC_NODE_SE_TTI_serial_none INTERFACE "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" ) +# GENERIC_U073R8IX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073R8IX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073R8IX_MAXSIZE 65536) +set(GENERIC_U073R8IX_MAXDATASIZE 40960) +set(GENERIC_U073R8IX_MCU cortex-m0plus) +set(GENERIC_U073R8IX_FPCONF "-") +add_library(GENERIC_U073R8IX INTERFACE) +target_compile_options(GENERIC_U073R8IX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073R8IX_MCU} +) +target_compile_definitions(GENERIC_U073R8IX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073R8IX" + "BOARD_NAME=\"GENERIC_U073R8IX\"" + "BOARD_ID=GENERIC_U073R8IX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073R8IX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073R8IX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073R8IX INTERFACE + "LINKER:--default-script=${GENERIC_U073R8IX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=65536" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073R8IX_MCU} +) + +add_library(GENERIC_U073R8IX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073R8IX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073R8IX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073R8IX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073R8IX_serial_none INTERFACE) +target_compile_options(GENERIC_U073R8IX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073R8IX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073R8IX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073R8IX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073R8IX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073R8IX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073R8IX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073R8IX_usb_none INTERFACE) +target_compile_options(GENERIC_U073R8IX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U073R8TX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073R8TX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073R8TX_MAXSIZE 65536) +set(GENERIC_U073R8TX_MAXDATASIZE 40960) +set(GENERIC_U073R8TX_MCU cortex-m0plus) +set(GENERIC_U073R8TX_FPCONF "-") +add_library(GENERIC_U073R8TX INTERFACE) +target_compile_options(GENERIC_U073R8TX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073R8TX_MCU} +) +target_compile_definitions(GENERIC_U073R8TX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073R8TX" + "BOARD_NAME=\"GENERIC_U073R8TX\"" + "BOARD_ID=GENERIC_U073R8TX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073R8TX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073R8TX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073R8TX INTERFACE + "LINKER:--default-script=${GENERIC_U073R8TX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=65536" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073R8TX_MCU} +) + +add_library(GENERIC_U073R8TX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073R8TX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073R8TX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073R8TX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073R8TX_serial_none INTERFACE) +target_compile_options(GENERIC_U073R8TX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073R8TX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073R8TX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073R8TX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073R8TX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073R8TX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073R8TX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073R8TX_usb_none INTERFACE) +target_compile_options(GENERIC_U073R8TX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U073RBIX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073RBIX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073RBIX_MAXSIZE 131072) +set(GENERIC_U073RBIX_MAXDATASIZE 40960) +set(GENERIC_U073RBIX_MCU cortex-m0plus) +set(GENERIC_U073RBIX_FPCONF "-") +add_library(GENERIC_U073RBIX INTERFACE) +target_compile_options(GENERIC_U073RBIX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073RBIX_MCU} +) +target_compile_definitions(GENERIC_U073RBIX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073RBIX" + "BOARD_NAME=\"GENERIC_U073RBIX\"" + "BOARD_ID=GENERIC_U073RBIX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073RBIX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073RBIX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073RBIX INTERFACE + "LINKER:--default-script=${GENERIC_U073RBIX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=131072" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073RBIX_MCU} +) + +add_library(GENERIC_U073RBIX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073RBIX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073RBIX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073RBIX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073RBIX_serial_none INTERFACE) +target_compile_options(GENERIC_U073RBIX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073RBIX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073RBIX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073RBIX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073RBIX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073RBIX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073RBIX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073RBIX_usb_none INTERFACE) +target_compile_options(GENERIC_U073RBIX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U073RBTX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073RBTX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073RBTX_MAXSIZE 131072) +set(GENERIC_U073RBTX_MAXDATASIZE 40960) +set(GENERIC_U073RBTX_MCU cortex-m0plus) +set(GENERIC_U073RBTX_FPCONF "-") +add_library(GENERIC_U073RBTX INTERFACE) +target_compile_options(GENERIC_U073RBTX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073RBTX_MCU} +) +target_compile_definitions(GENERIC_U073RBTX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073RBTX" + "BOARD_NAME=\"GENERIC_U073RBTX\"" + "BOARD_ID=GENERIC_U073RBTX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073RBTX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073RBTX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073RBTX INTERFACE + "LINKER:--default-script=${GENERIC_U073RBTX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=131072" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073RBTX_MCU} +) + +add_library(GENERIC_U073RBTX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073RBTX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073RBTX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073RBTX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073RBTX_serial_none INTERFACE) +target_compile_options(GENERIC_U073RBTX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073RBTX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073RBTX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073RBTX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073RBTX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073RBTX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073RBTX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073RBTX_usb_none INTERFACE) +target_compile_options(GENERIC_U073RBTX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U073RCIX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073RCIX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073RCIX_MAXSIZE 262144) +set(GENERIC_U073RCIX_MAXDATASIZE 40960) +set(GENERIC_U073RCIX_MCU cortex-m0plus) +set(GENERIC_U073RCIX_FPCONF "-") +add_library(GENERIC_U073RCIX INTERFACE) +target_compile_options(GENERIC_U073RCIX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073RCIX_MCU} +) +target_compile_definitions(GENERIC_U073RCIX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073RCIX" + "BOARD_NAME=\"GENERIC_U073RCIX\"" + "BOARD_ID=GENERIC_U073RCIX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073RCIX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073RCIX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073RCIX INTERFACE + "LINKER:--default-script=${GENERIC_U073RCIX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=262144" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073RCIX_MCU} +) + +add_library(GENERIC_U073RCIX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073RCIX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073RCIX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073RCIX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073RCIX_serial_none INTERFACE) +target_compile_options(GENERIC_U073RCIX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073RCIX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073RCIX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073RCIX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073RCIX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073RCIX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073RCIX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073RCIX_usb_none INTERFACE) +target_compile_options(GENERIC_U073RCIX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U073RCTX +# ----------------------------------------------------------------------------- + +set(GENERIC_U073RCTX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U073RCTX_MAXSIZE 262144) +set(GENERIC_U073RCTX_MAXDATASIZE 40960) +set(GENERIC_U073RCTX_MCU cortex-m0plus) +set(GENERIC_U073RCTX_FPCONF "-") +add_library(GENERIC_U073RCTX INTERFACE) +target_compile_options(GENERIC_U073RCTX INTERFACE + "SHELL:-DSTM32U073xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U073RCTX_MCU} +) +target_compile_definitions(GENERIC_U073RCTX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U073RCTX" + "BOARD_NAME=\"GENERIC_U073RCTX\"" + "BOARD_ID=GENERIC_U073RCTX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U073RCTX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U073RCTX_VARIANT_PATH} +) + +target_link_options(GENERIC_U073RCTX INTERFACE + "LINKER:--default-script=${GENERIC_U073RCTX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=262144" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U073RCTX_MCU} +) + +add_library(GENERIC_U073RCTX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U073RCTX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U073RCTX_serial_generic INTERFACE) +target_compile_options(GENERIC_U073RCTX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U073RCTX_serial_none INTERFACE) +target_compile_options(GENERIC_U073RCTX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U073RCTX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U073RCTX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U073RCTX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U073RCTX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U073RCTX_usb_HID INTERFACE) +target_compile_options(GENERIC_U073RCTX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U073RCTX_usb_none INTERFACE) +target_compile_options(GENERIC_U073RCTX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U083RCIX +# ----------------------------------------------------------------------------- + +set(GENERIC_U083RCIX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U083RCIX_MAXSIZE 262144) +set(GENERIC_U083RCIX_MAXDATASIZE 40960) +set(GENERIC_U083RCIX_MCU cortex-m0plus) +set(GENERIC_U083RCIX_FPCONF "-") +add_library(GENERIC_U083RCIX INTERFACE) +target_compile_options(GENERIC_U083RCIX INTERFACE + "SHELL:-DSTM32U083xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U083RCIX_MCU} +) +target_compile_definitions(GENERIC_U083RCIX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U083RCIX" + "BOARD_NAME=\"GENERIC_U083RCIX\"" + "BOARD_ID=GENERIC_U083RCIX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U083RCIX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U083RCIX_VARIANT_PATH} +) + +target_link_options(GENERIC_U083RCIX INTERFACE + "LINKER:--default-script=${GENERIC_U083RCIX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=262144" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U083RCIX_MCU} +) + +add_library(GENERIC_U083RCIX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U083RCIX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U083RCIX_serial_generic INTERFACE) +target_compile_options(GENERIC_U083RCIX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U083RCIX_serial_none INTERFACE) +target_compile_options(GENERIC_U083RCIX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U083RCIX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U083RCIX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U083RCIX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U083RCIX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U083RCIX_usb_HID INTERFACE) +target_compile_options(GENERIC_U083RCIX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U083RCIX_usb_none INTERFACE) +target_compile_options(GENERIC_U083RCIX_usb_none INTERFACE + "SHELL:" +) + +# GENERIC_U083RCTX +# ----------------------------------------------------------------------------- + +set(GENERIC_U083RCTX_VARIANT_PATH "${CMAKE_CURRENT_LIST_DIR}/../variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)") +set(GENERIC_U083RCTX_MAXSIZE 262144) +set(GENERIC_U083RCTX_MAXDATASIZE 40960) +set(GENERIC_U083RCTX_MCU cortex-m0plus) +set(GENERIC_U083RCTX_FPCONF "-") +add_library(GENERIC_U083RCTX INTERFACE) +target_compile_options(GENERIC_U083RCTX INTERFACE + "SHELL:-DSTM32U083xx -D__CORTEX_SC=0" + "SHELL:" + "SHELL:" + "SHELL: " + -mcpu=${GENERIC_U083RCTX_MCU} +) +target_compile_definitions(GENERIC_U083RCTX INTERFACE + "STM32U0xx" + "ARDUINO_GENERIC_U083RCTX" + "BOARD_NAME=\"GENERIC_U083RCTX\"" + "BOARD_ID=GENERIC_U083RCTX" + "VARIANT_H=\"variant_generic.h\"" +) +target_include_directories(GENERIC_U083RCTX INTERFACE + ${CMAKE_CURRENT_LIST_DIR}/../system/STM32U0xx + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Inc + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/STM32U0xx_HAL_Driver/Src + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/ + ${CMAKE_CURRENT_LIST_DIR}/../system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/gcc/ + ${GENERIC_U083RCTX_VARIANT_PATH} +) + +target_link_options(GENERIC_U083RCTX INTERFACE + "LINKER:--default-script=${GENERIC_U083RCTX_VARIANT_PATH}/ldscript.ld" + "LINKER:--defsym=LD_FLASH_OFFSET=0x0" + "LINKER:--defsym=LD_MAX_SIZE=262144" + "LINKER:--defsym=LD_MAX_DATA_SIZE=40960" + "SHELL: " + -mcpu=${GENERIC_U083RCTX_MCU} +) + +add_library(GENERIC_U083RCTX_serial_disabled INTERFACE) +target_compile_options(GENERIC_U083RCTX_serial_disabled INTERFACE + "SHELL:" +) +add_library(GENERIC_U083RCTX_serial_generic INTERFACE) +target_compile_options(GENERIC_U083RCTX_serial_generic INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED" +) +add_library(GENERIC_U083RCTX_serial_none INTERFACE) +target_compile_options(GENERIC_U083RCTX_serial_none INTERFACE + "SHELL:-DHAL_UART_MODULE_ENABLED -DHWSERIAL_NONE" +) +add_library(GENERIC_U083RCTX_usb_CDC INTERFACE) +target_compile_options(GENERIC_U083RCTX_usb_CDC INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB" +) +add_library(GENERIC_U083RCTX_usb_CDCgen INTERFACE) +target_compile_options(GENERIC_U083RCTX_usb_CDCgen INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC" +) +add_library(GENERIC_U083RCTX_usb_HID INTERFACE) +target_compile_options(GENERIC_U083RCTX_usb_HID INTERFACE + "SHELL:-DUSBCON -DUSBD_VID=0x0483 -DUSBD_PID=0x5740 -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_HID_COMPOSITE" +) +add_library(GENERIC_U083RCTX_usb_none INTERFACE) +target_compile_options(GENERIC_U083RCTX_usb_none INTERFACE + "SHELL:" +) + # GENERIC_U575AGIXQ # ----------------------------------------------------------------------------- diff --git a/variants/STM32U0xx/U031C(6-8)(T-U)/CMakeLists.txt b/variants/STM32U0xx/U031C(6-8)(T-U)/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U031C(6-8)(T-U)/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U031F(4-6-8)P/CMakeLists.txt b/variants/STM32U0xx/U031F(4-6-8)P/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U031F(4-6-8)P/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U031G(6-8)Y/CMakeLists.txt b/variants/STM32U0xx/U031G(6-8)Y/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U031G(6-8)Y/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U031K(4-6-8)U/CMakeLists.txt b/variants/STM32U0xx/U031K(4-6-8)U/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U031K(4-6-8)U/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U031R(6-8)(I-T)/CMakeLists.txt b/variants/STM32U0xx/U031R(6-8)(I-T)/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U031R(6-8)(I-T)/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073C(8-B-C)(T-U)_U083CC(T-U)/CMakeLists.txt b/variants/STM32U0xx/U073C(8-B-C)(T-U)_U083CC(T-U)/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073C(8-B-C)(T-U)_U083CC(T-U)/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073H(8-B-C)Y_U083HCY/CMakeLists.txt b/variants/STM32U0xx/U073H(8-B-C)Y_U083HCY/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073H(8-B-C)Y_U083HCY/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073K(8-B-C)U_U083KCU/CMakeLists.txt b/variants/STM32U0xx/U073K(8-B-C)U_U083KCU/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073K(8-B-C)U_U083KCU/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073M(8-B-C)I_U083MCI/CMakeLists.txt b/variants/STM32U0xx/U073M(8-B-C)I_U083MCI/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073M(8-B-C)I_U083MCI/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073M(8-B-C)T_U083MCT/CMakeLists.txt b/variants/STM32U0xx/U073M(8-B-C)T_U083MCT/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073M(8-B-C)T_U083MCT/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) + diff --git a/variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)/CMakeLists.txt b/variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)/CMakeLists.txt new file mode 100644 index 0000000000..2a4d55b6b1 --- /dev/null +++ b/variants/STM32U0xx/U073R(8-B-C)(I-T)_U083RC(I-T)/CMakeLists.txt @@ -0,0 +1,31 @@ +# v3.21 implemented semantic changes regarding $ +# See https://cmake.org/cmake/help/v3.21/command/target_link_libraries.html#linking-object-libraries-via-target-objects +cmake_minimum_required(VERSION 3.21) + +add_library(variant INTERFACE) +add_library(variant_usage INTERFACE) + +target_include_directories(variant_usage INTERFACE + . +) + + +target_link_libraries(variant_usage INTERFACE + base_config +) + +target_link_libraries(variant INTERFACE variant_usage) + + + +add_library(variant_bin STATIC EXCLUDE_FROM_ALL + generic_clock.c + PeripheralPins.c + variant_generic.cpp +) +target_link_libraries(variant_bin PUBLIC variant_usage) + +target_link_libraries(variant INTERFACE + variant_bin +) +