diff options
| author | hathach <[email protected]> | 2025-10-14 23:23:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-14 23:23:23 +0700 |
| commit | 6f93feee0957ea343cfc376d99d7d2922777d74f (patch) | |
| tree | 29db695ba9f841cfb6040ad25cb3ccb169bb82da | |
| parent | 367044e4873fc9ca9cdac918cee684e1e08216e0 (diff) | |
suppress some warnings in zephyr build
| -rw-r--r-- | hw/bsp/family_support.cmake | 5 | ||||
| -rw-r--r-- | hw/bsp/stm32n6/family.mk | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/hw/bsp/family_support.cmake b/hw/bsp/family_support.cmake index daabed81b..d8ef79f60 100644 --- a/hw/bsp/family_support.cmake +++ b/hw/bsp/family_support.cmake @@ -121,6 +121,11 @@ if (RTOS STREQUAL zephyr) set(BOARD_ROOT ${TOP}/hw/bsp/${FAMILY}) set(ZEPHYR_BOARD_ALIASES ${CMAKE_CURRENT_LIST_DIR}/zephyr_board_aliases.cmake) find_package(Zephyr REQUIRED HINTS ${TOP}/zephyr) + list(REMOVE_ITEM WARN_FLAGS_GNU + -Wredundant-decls + -Wundef + -Wcast-align + ) endif () #------------------------------------------------------------- diff --git a/hw/bsp/stm32n6/family.mk b/hw/bsp/stm32n6/family.mk index 37087ed42..45554e251 100644 --- a/hw/bsp/stm32n6/family.mk +++ b/hw/bsp/stm32n6/family.mk @@ -76,7 +76,7 @@ SRC_C += \ INC += \ $(TOP)/$(BOARD_PATH) \ - $(TOP)/lib/CMSIS_5/CMSIS/Core/Include \ + $(TOP)/lib/CMSIS_6/CMSIS/Core/Include \ $(TOP)/$(ST_CMSIS)/Include \ $(TOP)/$(ST_HAL_DRIVER)/Inc |
