diff options
| author | hathach <[email protected]> | 2025-12-19 12:24:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-19 12:33:42 +0700 |
| commit | 49a8529dcf8f5b2616640e6f96dcb27e930d1f0d (patch) | |
| tree | a2703ed755ddb6cd7704a477bd4ada7207363815 /hw | |
| parent | 7f4a76151357509f74e4afa67c02d6dd91537a88 (diff) | |
clean up cmake, remove family_get_project_name()
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/family_support.cmake | 5 | ||||
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake index 5eadcdaa9..baa8422fe 100644 --- a/hw/bsp/family_support.cmake +++ b/hw/bsp/family_support.cmake @@ -207,11 +207,6 @@ function(family_add_subdirectory DIR) endif() endfunction() -function(family_get_project_name OUTPUT_NAME DIR) - get_filename_component(SHORT_NAME ${DIR} NAME) - set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${SHORT_NAME} PARENT_SCOPE) -endfunction() - function(family_initialize_project PROJECT DIR) # set output suffix to .elf (skip espressif and rp2040) if(NOT FAMILY STREQUAL "espressif" AND NOT FAMILY STREQUAL "rp2040") diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index 390d6072c..1602e35eb 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -296,7 +296,7 @@ function(family_configure_host_example TARGET RTOS) # Pico-PIO-USB does not compile with all pico-sdk supported compilers, so check before enabling it is_compiler_supported_by_pico_pio_usb(PICO_PIO_USB_COMPILER_SUPPORTED) if (PICO_PIO_USB_COMPILER_SUPPORTED) - family_add_pico_pio_usb(${PROJECT}) + family_add_pico_pio_usb(${TARGET}) endif() endif() |
