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-a8 | ||||
7 | CPU := generic | ||||
8 | |||||
9 | # provides a few devices | ||||
10 | GLOBAL_DEFINES += \ | ||||
11 | WITH_DEV_UART=1 | ||||
12 | |||||
13 | MODULE_SRCS += \ | ||||
14 | $(LOCAL_DIR)/cpu_early_init.S \ | ||||
15 | $(LOCAL_DIR)/debug.c \ | ||||
16 | $(LOCAL_DIR)/i2c.c \ | ||||
17 | $(LOCAL_DIR)/interrupts.c \ | ||||
18 | $(LOCAL_DIR)/platform.c \ | ||||
19 | $(LOCAL_DIR)/timer.c \ | ||||
20 | $(LOCAL_DIR)/uart.c \ | ||||
21 | |||||
22 | # $(LOCAL_DIR)/usbc.c | ||||
23 | |||||
24 | MEMBASE := 0x80000000 | ||||
25 | |||||
26 | GLOBAL_DEFINES += \ | ||||
27 | WITH_CPU_EARLY_INIT=1 | ||||
28 | |||||
29 | LINKER_SCRIPT += \ | ||||
30 | $(BUILDDIR)/system-onesegment.ld | ||||
31 | |||||
32 | include make/module.mk |