Files
lk/platform/qemu-virt-m68k/rules.mk
Travis Geiselbrecht 5926fb1cc8 [arch][m68k] Initial support for 68040 mmu
Currently just sets up most of an identity map and some test mappings.
Not fully wired up to the VM yet.
2025-09-07 16:23:16 -07:00

34 lines
826 B
Makefile

LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
ARCH := m68k
M68K_CPU := 68040
WITH_MMU ?= 1
LK_HEAP_IMPLEMENTATION ?= dlmalloc
MODULE_DEPS += lib/cbuf
MODULE_DEPS += dev/virtio/block
MODULE_DEPS += dev/virtio/gpu
MODULE_DEPS += dev/virtio/net
MODULE_SRCS += $(LOCAL_DIR)/bootinfo.c
MODULE_SRCS += $(LOCAL_DIR)/goldfish_rtc.c
MODULE_SRCS += $(LOCAL_DIR)/goldfish_tty.c
MODULE_SRCS += $(LOCAL_DIR)/pic.c
MODULE_SRCS += $(LOCAL_DIR)/platform.c
MEMBASE ?= 0x00000000
MEMSIZE ?= 0x08000000 # default to 128MB
# we can revert to a poll based uart spin routine
GLOBAL_DEFINES += PLATFORM_SUPPORTS_PANIC_SHELL=1
# our timer supports one shot mode
GLOBAL_DEFINES += PLATFORM_HAS_DYNAMIC_TIMER=1
# we will find the memory size from bootinfo and populate novm
GLOBAL_DEFINES += NOVM_DEFAULT_ARENA=0
include make/module.mk