1#
2# Arm SCP/MCP Software
3# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8include("${CMAKE_CURRENT_LIST_DIR}/ArmClang-Base.cmake")
9include("${CMAKE_CURRENT_LIST_DIR}/Generic-Baremetal.cmake")
10
11foreach(language IN ITEMS ASM C CXX)
12    string(APPEND CMAKE_${language}_FLAGS_INIT "-ffunction-sections ")
13    string(APPEND CMAKE_${language}_FLAGS_INIT "-fdata-sections ")
14    string(APPEND CMAKE_${language}_FLAGS_INIT "-fshort-enums ")
15    string(APPEND CMAKE_${language}_FLAGS_INIT "-mfloat-abi=soft ")
16
17    string(APPEND CMAKE_${language}_FLAGS_DEBUG_INIT "-Og ")
18endforeach()
19
20string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT "--remove ")
21string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT "--fpu=SoftVFP ")
22