Commit 0f776cf0 authored by Sigmund Klåpbakken's avatar Sigmund Klåpbakken Committed by Anas Nashif
Browse files

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: default avatarSigmund Klåpbakken <sigmundklaa@outlook.com>
parent 5100f118
Loading
Loading
Loading
Loading
+4 −0
Changes for arch/arm/CMakeLists.txt: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

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)