Skip to content

Commit

Permalink
pw_toolchain: Add ARM Cortex-M55F GCC toolchain
Browse files Browse the repository at this point in the history
Bug: b/375562597

Change-Id: I63161d05600a66b7fdcd030dab50d44ddbfea1ad
Signed-off-by: Silviu Grigore <[email protected]>
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/244672
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Armando Montanez <[email protected]>
  • Loading branch information
silvgrigore authored and CQ Bot Account committed Oct 28, 2024
1 parent 63ebec1 commit b40ecc9
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pw_toolchain/arm_gcc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,15 @@ config("cortex_hardware_fpu_v5_sp") {
ldflags = cflags
}

config("cortex_hardware_fpu_auto") {
cflags = [
"-mfloat-abi=hard",
"-mfpu=auto",
]
asmflags = cflags
ldflags = cflags
}

config("wrap_newlib_stdio_functions") {
ldflags = [
"-Wl,--wrap=__sread",
Expand Down
34 changes: 34 additions & 0 deletions pw_toolchain/arm_gcc/toolchains.gni
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ _cortex_m55 = [
"$dir_pw_toolchain/arm_gcc:cortex_software_fpu",
]

_cortex_m55f = [
"$dir_pw_toolchain/arm_gcc:cortex_common",
"$dir_pw_toolchain/arm_gcc:cortex_m55",
"$dir_pw_toolchain/arm_gcc:cortex_hardware_fpu_auto",
]

_cortex_a32 = [
"$dir_pw_toolchain/arm_gcc:cortex_common",
"$dir_pw_toolchain/arm_gcc:cortex_a32",
Expand Down Expand Up @@ -385,6 +391,31 @@ pw_toolchain_arm_gcc = {
[ "$dir_pw_build:optimize_size" ]
}
}
cortex_m55f_debug = {
name = "arm_gcc_cortex_m55f_debug"
forward_variables_from(arm_gcc_toolchain_tools, "*")
defaults = {
default_configs = pigweed_default_configs + _arm_gcc + _cortex_m55f +
[ "$dir_pw_build:optimize_debugging" ]
}
}
cortex_m55f_speed_optimized = {
name = "arm_gcc_cortex_m55f_speed_optimized"
forward_variables_from(arm_gcc_toolchain_tools, "*")
defaults = {
default_configs = pigweed_default_configs + _arm_gcc + _cortex_m55f +
[ "$dir_pw_build:optimize_speed" ]
}
}

cortex_m55f_size_optimized = {
name = "arm_gcc_cortex_m55f_size_optimized"
forward_variables_from(arm_gcc_toolchain_tools, "*")
defaults = {
default_configs = pigweed_default_configs + _arm_gcc + _cortex_m55f +
[ "$dir_pw_build:optimize_size" ]
}
}

cortex_a32_debug = {
name = "arm_gcc_cortex_a32_debug"
Expand Down Expand Up @@ -443,6 +474,9 @@ pw_toolchain_arm_gcc_list = [
pw_toolchain_arm_gcc.cortex_m55_debug,
pw_toolchain_arm_gcc.cortex_m55_speed_optimized,
pw_toolchain_arm_gcc.cortex_m55_size_optimized,
pw_toolchain_arm_gcc.cortex_m55f_debug,
pw_toolchain_arm_gcc.cortex_m55f_speed_optimized,
pw_toolchain_arm_gcc.cortex_m55f_size_optimized,
pw_toolchain_arm_gcc.cortex_a32_debug,
pw_toolchain_arm_gcc.cortex_a32_speed_optimized,
pw_toolchain_arm_gcc.cortex_a32_size_optimized,
Expand Down

0 comments on commit b40ecc9

Please sign in to comment.