blob: c01b3e70dbfd86414af05ca5159c7e013640124a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4
5ARCH := arm64
6ARM_CPU := cortex-a53
7WITH_SMP := 1
8#LK_HEAP_IMPLEMENTATION ?= dlmalloc
9WITH_CPP_SUPPORT=true
10
11MODULE_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
24MODULE_SRCS += \
25 $(LOCAL_DIR)/gpio.c \
26 $(LOCAL_DIR)/intc.c \
27 $(LOCAL_DIR)/platform.c \
28 $(LOCAL_DIR)/uart.c \
29
30MEMBASE := 0x00000000
31MEMSIZE ?= 0x40000000 # 256MB
32KERNEL_LOAD_OFFSET := 0x00080000
33
34
35
36# put our kernel at 0x80000000
37#KERNEL_BASE = 0xFFFF000000080000
38
39GLOBAL_DEFINES += \
40 MEMBASE=$(MEMBASE) \
41 MEMSIZE=$(MEMSIZE) \
42 MMU_WITH_TRAMPOLINE=1 \
43 ARM_ARCH_WAIT_FOR_SECONDARIES=1
44
45LINKER_SCRIPT += \
46 $(BUILDDIR)/system-onesegment.ld
47
48include make/module.mk