target_sparc.cmake 439 B

12345678910111213141516
  1. # SPDX-License-Identifier: Apache-2.0
  2. if(NOT CONFIG_FPU)
  3. list(APPEND TOOLCHAIN_C_FLAGS -msoft-float)
  4. list(APPEND TOOLCHAIN_LD_FLAGS -msoft-float)
  5. endif()
  6. if(CONFIG_SPARC_CASA)
  7. # SPARC V8, mul/div, casa
  8. list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon3)
  9. list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon3)
  10. else()
  11. # SPARC V8, mul/div, no casa
  12. list(APPEND TOOLCHAIN_C_FLAGS -mcpu=leon)
  13. list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=leon)
  14. endif()