X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Bootloader%2FCMakeLists.txt;h=41c2bccb1ffcc790cffc0125a1b01e0d8ffcf091;hb=b9fa9c8672a4d1fd89c0c11a358536dfe3ec28a1;hp=00a9c168e9310a465dbe1c8d4ed2026d8ee61157;hpb=66a5031c4c3b418eab9561bed429e9efc3e432a3;p=kiibohd-controller.git diff --git a/Bootloader/CMakeLists.txt b/Bootloader/CMakeLists.txt index 00a9c16..41c2bcc 100644 --- a/Bootloader/CMakeLists.txt +++ b/Bootloader/CMakeLists.txt @@ -20,10 +20,26 @@ #| You _MUST_ clean the build directory if you change this value #| set( CHIP - "mk20dx128vlf5" # McHCK mk20dx128vlf5 + #"mk20dx128vlf5" # McHCK mk20dx128vlf5 + "mk20dx256vlh7" # Kiibohd-dfu mk20dx256vlh7 ) + +### +# Compiler Selection +# + +#| *** EXPERIMENTAL *** +#| Stick with gcc unless you know what you're doing +#| Currently only arm is supported with clang +set( COMPILER + "gcc" # arm-none-eabi-gcc / avr-gcc - Default +# "clang" # arm-none-eabi + CACHE STRING "Compiler Type" ) + + + ### # Bootloader Configuration # @@ -51,6 +67,14 @@ set( SRCS usb.c ) +# Only compile in if necessary +if( CHIP STREQUAL "mk20dx256vlh7" ) + set( SRCS ${SRCS} + debug.c + ) +endif() + + message( STATUS "Bootloader Source Files:" ) message( "${SRCS}" )