Hook up the M258KE port

Note that ASM has to be enabled as a project language because the M258KE
startup code is an assembly file.
This commit is contained in:
Doug Brown 2023-08-06 20:35:29 -07:00 committed by Doug Brown
parent a5087e16f6
commit 2d219f045f

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.13)
enable_language(ASM)
project(SIMMProgrammer)
# Create a list of all source files common to all architectures
@ -26,6 +27,8 @@ set(SOURCES
# Get hardware-specific source files
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "avr")
include(hal/at90usb646/at90usb646_sources.cmake)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm")
include(hal/m258ke/m258ke_sources.cmake)
else()
message(FATAL_ERROR "unrecognized architecture for build")
endif()
@ -47,4 +50,6 @@ target_link_options(SIMMProgrammer.elf PRIVATE
# Get hardware-specific options
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "avr")
include(hal/at90usb646/at90usb646_options.cmake)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm")
include(hal/m258ke/m258ke_options.cmake)
endif()