2020-10-17 02:55:04 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-11-30 19:19:27 +08:00
|
|
|
if(NOT CONFIG_FPU)
|
|
|
|
list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
|
|
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
|
|
|
|
endif()
|
2020-10-17 02:55:04 +08:00
|
|
|
|
|
|
|
if(CONFIG_SPARC_CASA)
|
|
|
|
# SPARC V8, mul/div, casa
|
|
|
|
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon3)
|
|
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon3)
|
|
|
|
else()
|
|
|
|
# SPARC V8, mul/div, no casa
|
|
|
|
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon)
|
|
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon)
|
|
|
|
endif()
|