-
Notifications
You must be signed in to change notification settings - Fork 3
/
platform.txt
134 lines (106 loc) · 9.21 KB
/
platform.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
# Copyright (c) 2022 Arm Limited and Contributors. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Arm Corstone Core and platform.
#
# For more info:
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
name=Arm Corstone Boards
version=1.0.0
# Compile variables
# -----------------
compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
# EXPERIMENTAL feature: optimization flags
# - this is alpha and may be subject to change without notice
compiler.optimization_flags=-Os
compiler.optimization_flags.release=-Os
compiler.optimization_flags.debug=-Og -g3
compiler.system.c.flags=@{build.variant.path}/c.flags.txt -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mcu-driver-hal -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mcu-driver-hal/bootstrap -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mcu-driver-hal/hal/include -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mcu-driver-hal/hal/include/hal -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mcu-driver-hal/hal-toolbox/include -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/. -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/device -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/device/drivers -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/device/drivers/audio_i2s_mps3 -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/partition -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/TARGET_AN547_MPS3/device/drivers/ethernet_smsc9220 -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/mdh_arm/hal/inc -I{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-src/CMSIS/CMSIS_5/CMSIS/Core/Include -I{build.system.path}/build/_deps/freertos-kernel-src/Source/include -I{build.system.path}/build/_deps/freertos-kernel-src/Source/portable/GCC/ARM_CM33_NTZ/non_secure -I{build.system.path}/freertos-config -I{build.system.path}/build/_deps/lwip-src/src/include -I{build.system.path}/lib/lwip/src/include -I{build.system.path}/lib/lwip/src/lwip_osal/include
compiler.path=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/
compiler.path.macosx=
compiler.c.cmd=arm-none-eabi-gcc
compiler.c.flags=-mthumb -fdata-sections -fno-exceptions -ffunction-sections -funsigned-char -fomit-frame-pointer -g3 -mfpu=fpv5-sp-d16 -mfloat-abi=softfp -march=armv8-m.main -D__CORTEX_M55 -D__FPU_PRESENT=1U -D__SAUREGION_PRESENT=1U -D__MPU_PRESENT=1U -D__VTOR_PRESENT=1U -D__Vendor_SysTickConfig=0U -D__FPU_DP=1U -D__MVE_PRESENT=1U -D__MVE_FP=1U -D__NVIC_PRIO_BITS=3U -D__DSP_PRESENT=1U -c {compiler.optimization_flags} -g3 -fmessage-length=0 {compiler.warning_flags} -MMD -std=gnu11 {compiler.system.c.flags}
compiler.c.elf.cmd=arm-none-eabi-g++
compiler.c.elf.flags={compiler.optimization_flags} -Wl,--gc-sections -save-temps
compiler.cpp.cmd=arm-none-eabi-g++
compiler.cpp.flags=-mthumb -fdata-sections -fno-exceptions -ffunction-sections -funsigned-char -fomit-frame-pointer -g3 -mfpu=fpv5-sp-d16 -mfloat-abi=softfp -march=armv8-m.main -D__CORTEX_M55 -D__FPU_PRESENT=1U -D__SAUREGION_PRESENT=1U -D__MPU_PRESENT=1U -D__VTOR_PRESENT=1U -D__Vendor_SysTickConfig=0U -D__FPU_DP=1U -D__MVE_PRESENT=1U -D__MVE_FP=1U -D__NVIC_PRIO_BITS=3U -D__DSP_PRESENT=1U -c {compiler.optimization_flags} -g3 -fmessage-length=0 {compiler.warning_flags} -MMD -std=gnu++11 {compiler.system.c.flags}
compiler.ar.cmd=arm-none-eabi-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=arm-none-eabi-objcopy
compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
compiler.elf2hex.bin.flags=-O binary
compiler.elf2hex.hex.flags=-O ihex -R .eeprom
compiler.elf2hex.cmd=arm-none-eabi-objcopy
compiler.ldflags=-mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=
compiler.readelf.cmd=arm-none-eabi-readelf
# this can be overriden in boards.txt
build.extra_flags=
# These can be overridden in platform.local.txt
compiler.c.extra_flags=
compiler.c.elf.extra_flags=
#compiler.c.elf.extra_flags=-v
compiler.cpp.extra_flags=
compiler.S.extra_flags=
compiler.ar.extra_flags=
compiler.elf2hex.extra_flags=
compiler.libraries.ldflags=
# Compile patterns
# ----------------
## Compile c files
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}"
## Compile c++ files
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}"
## Compile S files
recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" "-I{build.core.path}/api/deprecated-avr-comp" {includes} "{source_file}" -o "{object_file}"
## Create archives
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
archive_file_path={build.path}/{archive_file}
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -mthumb -fdata-sections -fno-exceptions -ffunction-sections -funsigned-char -fomit-frame-pointer -g3 -mfpu=fpv5-sp-d16 -mfloat-abi=softfp -march=armv8-m.main -D__CORTEX_M55 -D__FPU_PRESENT=1U -D__SAUREGION_PRESENT=1U -D__MPU_PRESENT=1U -D__VTOR_PRESENT=1U -D__Vendor_SysTickConfig=0U -D__FPU_DP=1U -D__MVE_PRESENT=1U -D__MVE_FP=1U -D__NVIC_PRIO_BITS=3U -D__DSP_PRESENT=1U -specs=nosys.specs -Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -T "{build.system.path}/build/_deps/mcu-driver-reference-platforms-for-arm-build/TARGET_AN547_MPS3/mdh-arm-an547-mps3-startup.link_script.ld" -o "{build.path}/{build.project_name}.elf" {object_files} "-L{build.system.path}/build" "-L{build.system.path}/build/lib/lwip" -Wl,-wrap,us_ticker_util_wait -Wl,-wrap,us_ticker_init -Wl,--start-group -lm "{build.path}/{archive_file}" -larduino_corstone_system -llwip -Wl,--end-group
## Create output (bin file)
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.bin.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
## Create output (hex file)
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
build.preferred_out_format=bin
## Save hex
recipe.output.tmp_file={build.project_name}.{build.preferred_out_format}
recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_out_format}
## Compute size
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=^(?:\.text|\.data|)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
# Required discoveries and monitors
# ---------------------------------
pluggable_discovery.required.0=builtin:serial-discovery
pluggable_discovery.required.1=builtin:mdns-discovery
pluggable_monitor.required.serial=builtin:serial-monitor
# Upload/Debug tools
# ------------------
#
# Corstone FVP
#
tools.vht.path={runtime.platform.path}/tools
tools.vht.cmd=run.sh
tools.vht.upload.params.verbose=
tools.vht.upload.params.quiet=
tools.vht.upload.pattern="{path}/{cmd}" {build.path}/{build.project_name}.elf