Port to the really neat 68010 based board at https://rosco-m68k.com/ Port Features: -10Mhz 68010 -1MB ram -Dual UART + timer implemented as a 68c681 chip -timer running at 1Khz, UART A for console -interrupt driven RX support Some amount of extending of the 68k exceptinon code was needed to support the autovectored irqs that the 68681 uart uses. Added build system support for 68010.
33 lines
834 B
Makefile
33 lines
834 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
ARCH := m68k
|
|
M68K_CPU := 68010
|
|
LK_HEAP_IMPLEMENTATION ?= dlmalloc
|
|
|
|
MODULE_DEPS += lib/cbuf
|
|
|
|
#MODULE_SRCS += $(LOCAL_DIR)/goldfish_rtc.c
|
|
#MODULE_SRCS += $(LOCAL_DIR)/goldfish_tty.c
|
|
#MODULE_SRCS += $(LOCAL_DIR)/pic.c
|
|
MODULE_SRCS += $(LOCAL_DIR)/duart.c
|
|
MODULE_SRCS += $(LOCAL_DIR)/platform.c
|
|
|
|
MEMBASE ?= 0x00002000 # 8k. Just off the end of firmware reserved areas
|
|
MEMSIZE ?= 0x00100000 # 1MB
|
|
|
|
# relocate ourself from the load address (0x40000)
|
|
GLOBAL_DEFINES += ARCH_DO_RELOCATION=1
|
|
|
|
# we can revert to a poll based uart spin routine
|
|
GLOBAL_DEFINES += PLATFORM_SUPPORTS_PANIC_SHELL=1
|
|
|
|
# we will find the memory size by probing it
|
|
GLOBAL_DEFINES += NOVM_DEFAULT_ARENA=0
|
|
|
|
# we will find the memory size by probing it
|
|
GLOBAL_DEFINES += TARGET_HAS_DEBUG_LED=1
|
|
|
|
include make/module.mk
|