rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | |
| 3 | MODULE := $(LOCAL_DIR) |
| 4 | |
| 5 | ARCH := arm64 |
| 6 | ARM_CPU := cortex-a53 |
| 7 | WITH_SMP := 1 |
| 8 | #LK_HEAP_IMPLEMENTATION ?= dlmalloc |
| 9 | WITH_CPP_SUPPORT=true |
| 10 | |
| 11 | MODULE_DEPS := \ |
| 12 | dev/timer/arm_generic \ |
| 13 | lib/cbuf \ |
| 14 | app/shell \ |
| 15 | app/tests \ |
| 16 | lib/fdt \ |
| 17 | |
| 18 | #lib/bio \ |
| 19 | lib/cbuf \ |
| 20 | lib/minip \ |
| 21 | dev/interrupt/arm_gic \ |
| 22 | dev/timer/arm_cortex_a9 |
| 23 | |
| 24 | MODULE_SRCS += \ |
| 25 | $(LOCAL_DIR)/gpio.c \ |
| 26 | $(LOCAL_DIR)/intc.c \ |
| 27 | $(LOCAL_DIR)/platform.c \ |
| 28 | $(LOCAL_DIR)/uart.c \ |
| 29 | |
| 30 | MEMBASE := 0x00000000 |
| 31 | MEMSIZE ?= 0x40000000 # 256MB |
| 32 | KERNEL_LOAD_OFFSET := 0x00080000 |
| 33 | |
| 34 | |
| 35 | |
| 36 | # put our kernel at 0x80000000 |
| 37 | #KERNEL_BASE = 0xFFFF000000080000 |
| 38 | |
| 39 | GLOBAL_DEFINES += \ |
| 40 | MEMBASE=$(MEMBASE) \ |
| 41 | MEMSIZE=$(MEMSIZE) \ |
| 42 | MMU_WITH_TRAMPOLINE=1 \ |
| 43 | ARM_ARCH_WAIT_FOR_SECONDARIES=1 |
| 44 | |
| 45 | LINKER_SCRIPT += \ |
| 46 | $(BUILDDIR)/system-onesegment.ld |
| 47 | |
| 48 | include make/module.mk |