blob: 62b6da58be29b47c781766d7989d195da9bf5c1b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4
5ARCH := arm
6ARM_CPU := cortex-a7
7WITH_SMP := 1
8SMP_CPU_ID_BITS := 8
9
10MODULE_DEPS := \
11 dev/timer/arm_generic \
12 lib/cbuf
13
14#lib/bio \
15 lib/cbuf \
16 lib/minip \
17 dev/interrupt/arm_gic \
18 dev/timer/arm_cortex_a9
19
20MODULE_SRCS += \
21 $(LOCAL_DIR)/intc.c \
22 $(LOCAL_DIR)/platform.c \
23 $(LOCAL_DIR)/uart.c \
24
25# default to no sdram unless the target calls it out
26ZYNQ_SDRAM_SIZE ?= 0
27
28MEMBASE := 0x00000000
29MEMSIZE ?= 0x10000000 # 256MB
30KERNEL_LOAD_OFFSET := 0x00008000 # loaded 32KB into physical
31
32# put our kernel at 0x80000000
33KERNEL_BASE = 0x80000000
34
35GLOBAL_DEFINES += \
36 ARM_ARCH_WAIT_FOR_SECONDARIES=1
37
38LINKER_SCRIPT += \
39 $(BUILDDIR)/system-onesegment.ld
40
41include make/module.mk