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 := arm |
| 6 | ARM_CPU := cortex-a7 |
| 7 | WITH_SMP := 1 |
| 8 | SMP_CPU_ID_BITS := 8 |
| 9 | |
| 10 | MODULE_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 | |
| 20 | MODULE_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 |
| 26 | ZYNQ_SDRAM_SIZE ?= 0 |
| 27 | |
| 28 | MEMBASE := 0x00000000 |
| 29 | MEMSIZE ?= 0x10000000 # 256MB |
| 30 | KERNEL_LOAD_OFFSET := 0x00008000 # loaded 32KB into physical |
| 31 | |
| 32 | # put our kernel at 0x80000000 |
| 33 | KERNEL_BASE = 0x80000000 |
| 34 | |
| 35 | GLOBAL_DEFINES += \ |
| 36 | ARM_ARCH_WAIT_FOR_SECONDARIES=1 |
| 37 | |
| 38 | LINKER_SCRIPT += \ |
| 39 | $(BUILDDIR)/system-onesegment.ld |
| 40 | |
| 41 | include make/module.mk |