###########################################################################
# Copyright (C) 2015-2026 IoT.bzh Company
#
# Author: Clément Bénier <clement.benier@iot.bzh>
# Author: Romain Forlot <romain.forlot@iot.bzh>
#
# $RP_BEGIN_LICENSE$
# Commercial License Usage
#  Licensees holding valid commercial IoT.bzh licenses may use this file in
#  accordance with the commercial license agreement provided with the
#  Software or, alternatively, in accordance with the terms contained in
#  a written agreement between you and The IoT.bzh Company. For licensing terms
#  and conditions see https://www.iot.bzh/terms-conditions. For further
#  information use the contact form at https://www.iot.bzh/contact.
#
# GNU General Public License Usage
#  Alternatively, this file may be used under the terms of the GNU General
#  Public license version 3. This license is as published by the Free Software
#  Foundation and appearing in the file LICENSE.GPLv3 included in the packaging
#  of this file. Please review the following information to ensure the GNU
#  General Public License requirements will be met
#  https://www.gnu.org/licenses/gpl-3.0.html.
# $RP_END_LICENSE$
###########################################################################

#---------- cross profile options Start ---------
[binaries]
c = 'arm-linux-gnu-gcc'
cpp = 'arm-linux-gnu-g++'
ar = 'arm-linux-gnu-ar'
nm = 'arm-linux-gnu-nm'
ld = 'arm-linux-gnu-ld'
strip = 'arm-linux-gnu-strip'
readelf = 'arm-linux-gnu-readelf'
objcopy = 'arm-linux-gnu-objcopy'
objdump = 'arm-linux-gnu-objdump'
ranlib = 'arm-linux-gnu-ranlib'
pkg-config = '/usr/bin/cross-wrappers/pkg-config'
# keep it for compatibility with batz
pkgconfig = '/usr/bin/cross-wrappers/pkg-config'
llvm-config = 'llvm-config8.0'

[properties]
# no wrapper: let binfmt/qemu-user-static wrap binaries
needs_exe_wrapper = false
sys_root = '/usr/arm-linux-gnu/sys-root'

[build-in]
c_args = ['-march=armv7-a', '-O2', '-pipe', '-g', '-feliminate-unused-debug-types']
c_link_args = ['-Wl,-O1', '-Wl,--hash-style=gnu', '-Wl,--as-needed']
cpp_args = ['-march=armv7-a', '-O2', '-pipe', '-g', '-feliminate-unused-debug-types']
cpp_link_args = ['-Wl,-O1', '-Wl,--hash-style=gnu', '-Wl,--as-needed']

[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm'
endian = 'little'
#----------  cross profile options End ---------
