Files
lk/platform/qemu-virt-arm/rules.mk
Travis Geiselbrecht 2ab1af0bf3 [bus][pci] add a virtual module that references all the pci drivers
Not sure if this is the right way to go forward, but it at least keeps
from having to copy/paste the same module list in a few different
places.
2022-02-06 19:46:39 -08:00

51 lines
944 B
Makefile

LOCAL_DIR := $(GET_LOCAL_DIR)
MODULE := $(LOCAL_DIR)
ifeq ($(ARCH),)
ARCH := arm64
endif
ifeq ($(ARCH),arm64)
ARM_CPU ?= cortex-a53
endif
ifeq ($(ARCH),arm)
ARM_CPU ?= cortex-a15
endif
WITH_SMP ?= 1
LK_HEAP_IMPLEMENTATION ?= dlmalloc
MODULE_SRCS += \
$(LOCAL_DIR)/debug.c \
$(LOCAL_DIR)/platform.c \
$(LOCAL_DIR)/secondary_boot.S \
$(LOCAL_DIR)/uart.c
MEMBASE := 0x40000000
MEMSIZE ?= 0x08000000 # 512MB
KERNEL_LOAD_OFFSET := 0x100000 # 1MB
MODULE_DEPS += \
lib/cbuf \
lib/fdtwalk \
dev/bus/pci \
dev/bus/pci/drivers \
dev/interrupt/arm_gic \
dev/timer/arm_generic \
dev/virtio/block \
dev/virtio/gpu \
dev/virtio/net \
GLOBAL_DEFINES += \
MEMBASE=$(MEMBASE) \
MEMSIZE=$(MEMSIZE) \
PLATFORM_SUPPORTS_PANIC_SHELL=1 \
CONSOLE_HAS_INPUT_BUFFER=1
GLOBAL_DEFINES += MMU_WITH_TRAMPOLINE=1 \
LINKER_SCRIPT += \
$(BUILDDIR)/system-onesegment.ld
include make/module.mk