Skip to content

Commit

Permalink
Rename and move CortexContextSwitch files.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWort committed Jul 5, 2019
1 parent 5b015a3 commit 4f1a31f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,15 @@ if (YOTTA_CFG_MICROBIT_CONFIGFILE)
endif ()

if(CMAKE_COMPILER_IS_GNUCC)
file(REMOVE "asm/CortexContextSwitch.s")
configure_file("asm/CortexContextSwitch.s.gcc" "asm/CortexContextSwitch.s" COPYONLY)
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
"asm/TOOLCHAIN_GCC_ARM/CortexContextSwitch.s"
)
else()
file(REMOVE "asm/CortexContextSwitch.s")
configure_file("asm/CortexContextSwitch.s.armcc" "asm/CortexContextSwitch.s" COPYONLY)
set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
"asm/TOOLCHAIN_ARM_STD/CortexContextSwitch.S"
)
endif()

set(YOTTA_AUTO_MICROBIT-DAL_S_FILES
"asm/CortexContextSwitch.s"
)

add_library(microbit-dal
${YOTTA_AUTO_MICROBIT-DAL_CPP_FILES}
${YOTTA_AUTO_MICROBIT-DAL_S_FILES}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4f1a31f

Please sign in to comment.