mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-25 10:30:49 +00:00
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:
parent
0976adaa84
commit
c2507cf436
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user