Skip to content

Commit

Permalink
Require msp430-elf-objcopy in CMAKE config.
Browse files Browse the repository at this point in the history
For now, we use MSPGCC alongside TI GCC to be able to use more
recent GNU binutils features, as discussed in issue #1.
  • Loading branch information
jovanbulck committed Jul 13, 2017
1 parent 3e00e24 commit 58d7527
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/FindMSPGCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ if (NOT EXISTS ${MSPGCC_BASE_DIR} OR
endif ()

find_package_handle_standard_args(MSPGCC DEFAULT_MSG MSPGCC_EXECUTABLE MSPGCC_BASE_DIR)

find_program(MSP430_ELF_OBJCOPY msp430-elf-objcopy)

if (NOT MSP430_ELF_OBJCOPY)
message(FATAL_ERROR "msp430-elf-objcopy executable not found (needed for "
"secure intra-SM arithmetics). Install TI MSP430-ELF-GCC suite from "
"http://www.ti.com/tool/msp430-gcc-opensource")
endif ()

0 comments on commit 58d7527

Please sign in to comment.