arch: arm: cmake: Correct endian in output format

Sets the property `PROPERTY_OUTPUT_FORMAT` to `elf32-bigarm` when
`CONFIG_BIG_ENDIAN` is set to `y`.

Signed-off-by: Sigmund Klåpbakken <sigmundklaa@outlook.com>
This commit is contained in:
Sigmund Klåpbakken 2024-05-15 12:39:53 +02:00 committed by Anas Nashif
parent 5100f1185d
commit 0f776cf0bf
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littlearm)
if(CONFIG_BIG_ENDIAN)
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-bigarm)
else()
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT elf32-littlearm)
endif()
add_subdirectory(core)