Martin Åberg | f8d1a9e | 2020-10-16 20:55:04 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | |
Martin Åberg | 53a4acb | 2020-11-30 12:19:27 +0100 | [diff] [blame] | 3 | if(NOT CONFIG_FPU) |
| 4 | list(APPEND TOOLCHAIN_C_FLAGS -msoft-float) |
| 5 | list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float) |
| 6 | endif() |
Martin Åberg | f8d1a9e | 2020-10-16 20:55:04 +0200 | [diff] [blame] | 7 | |
| 8 | if(CONFIG_SPARC_CASA) |
| 9 | # SPARC V8, mul/div, casa |
| 10 | list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon3) |
| 11 | list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon3) |
| 12 | else() |
| 13 | # SPARC V8, mul/div, no casa |
| 14 | list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon) |
| 15 | list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon) |
| 16 | endif() |