Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/.cSpellWords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ vsocket
vsync
Vwij
YPJLH
Werror
WGHT
wght
WLATENCY
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023 Arm Limited and/or its affiliates
# Copyright (c) 2023-2025 Arm Limited and/or its affiliates
# <[email protected]>
# SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
git-secrets --scan

formatting:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Copyright (C) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Copyright 2025 Arm Limited and/or its affiliates
# <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
if: ${{ github.event.issue.pull_request &&
( ( github.event.comment.body == '/bot run uncrustify' ) ||
( github.event.comment.body == '/bot run formatting' ) ) }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Apply Formatting Fix
uses: FreeRTOS/CI-CD-Github-Actions/formatting-bot@main
Expand Down
1 change: 1 addition & 0 deletions bsp/cmake/SetLinkerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ macro(set_linker_script executable_target)
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone315>:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone315/corstone_315_ns.sct>
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone320>:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone320/corstone_320_ns.sct>
--map
--strict
)
endif()
endmacro(set_linker_script executable_target)
14 changes: 14 additions & 0 deletions cmake/CompilerFlagsARMCLANG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ macro(set_compiler_and_linker_flags)
list(APPEND compile_options $<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>)
list(APPEND compile_options $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
list(APPEND compile_options -mthumb)
list(APPEND compile_options -Wall)
list(APPEND compile_options -Wextra)
list(APPEND compile_options -Wcast-align)
list(APPEND compile_options -Wformat)
list(APPEND compile_options -Wformat-security)
list(APPEND compile_options -Wno-format-zero-length)
list(APPEND compile_options -Wdouble-promotion)
list(APPEND compile_options -Wpointer-arith)
list(APPEND compile_options -Werror=format-security)
list(APPEND compile_options -Werror=implicit-function-declaration)
list(APPEND compile_options -Wnull-dereference)
list(APPEND compile_options -Wredundant-decls)
list(APPEND compile_options -Wshadow)
list(APPEND compile_options -Wswitch-default)
list(REMOVE_ITEM compile_options $<$<COMPILE_LANGUAGE:ASM>:-masm=armasm>)
list(APPEND compile_options $<$<COMPILE_LANGUAGE:ASM>:-masm=auto>)
list(APPEND compile_options $<$<COMPILE_LANGUAGE:ASM>:--target=arm-arm-none-eabi>)
Expand Down
14 changes: 14 additions & 0 deletions cmake/CompilerFlagsGNUARM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ macro(set_compiler_and_linker_flags)
list(APPEND compile_options "-fomit-frame-pointer")
list(APPEND compile_options $<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>)
list(APPEND compile_options $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
list(APPEND compile_options -Wall)
list(APPEND compile_options -Wextra)
list(APPEND compile_options -Wcast-align)
list(APPEND compile_options -Wformat)
list(APPEND compile_options -Wformat-security)
list(APPEND compile_options -Wno-format-zero-length)
list(APPEND compile_options -Wdouble-promotion)
list(APPEND compile_options -Wpointer-arith)
list(APPEND compile_options -Werror=format-security)
list(APPEND compile_options -Werror=implicit-function-declaration)
list(APPEND compile_options -Wnull-dereference)
list(APPEND compile_options -Wredundant-decls)
list(APPEND compile_options -Wshadow)
list(APPEND compile_options -Wswitch-default)
set_property(DIRECTORY PROPERTY COMPILE_OPTIONS ${compile_options})

get_property(link_options DIRECTORY PROPERTY LINK_OPTIONS)
Expand Down
24 changes: 24 additions & 0 deletions components/security/mbedtls/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,27 @@ target_link_libraries(iot-tls
PRIVATE
helpers-logging
)

# The toolchain enables different warnings (ex. -Wswitch-default)
# and MbedTLS enables -Werror on all its libraries. Some of the files
# under the mbedcrypto, mbedtls, mbedx509, and everest third party library
# violate these rules which result in compilation time errors.
# Hence, disbaling errors on violated warnings for those libraries.
target_compile_options(mbedcrypto
PRIVATE
-Wno-error=switch-default
-Wno-error=null-dereference
)
target_compile_options(mbedtls
PRIVATE
-Wno-error=switch-default
-Wno-error=null-dereference
)
target_compile_options(mbedx509
PRIVATE
-Wno-error=null-dereference
)
target_compile_options(everest
PRIVATE
-Wno-error=redundant-decls
)
1 change: 1 addition & 0 deletions release_changes/202503281420.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
toolchains: Add recommended toolchain flags.
Loading