blob: ecbf1625c95134e977e16b2912560306bdc4339b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4
5ARCH := arm
6ARM_CPU := cortex-a8
7CPU := generic
8
9ENABLE_THUMB := false
10
11GLOBAL_INCLUDES += \
12 $(LOCAL_DIR)/ti/include \
13 $(LOCAL_DIR)/ti/include/hw \
14 $(LOCAL_DIR)/ti/include/armv7a \
15 $(LOCAL_DIR)/ti/include/armv7a/am335x \
16
17MODULE_SRCS += \
18 $(LOCAL_DIR)/debug.c \
19 $(LOCAL_DIR)/timer.c \
20 $(LOCAL_DIR)/platform.c \
21 $(LOCAL_DIR)/interrupts.c \
22 $(LOCAL_DIR)/ti/drivers/uart_irda_cir.c \
23 $(LOCAL_DIR)/ti/drivers/dmtimer.c \
24 $(LOCAL_DIR)/ti/drivers/gpio_v2.c \
25 $(LOCAL_DIR)/ti/drivers/usb.c \
26 $(LOCAL_DIR)/ti/interrupt.c \
27
28MODULES += \
29
30MEMBASE := 0x80000000
31MEMSIZE ?= 0x10000000
32
33LINKER_SCRIPT += \
34 $(BUILDDIR)/system-onesegment.ld
35
36GLOBAL_DEFINES += \
37 SDRAM_BASE=$(MEMBASE) \
38 SDRAM_SIZE=$(MEMSIZE) \
39
40GLOBAL_CFLAGS += -Dam335x \
41
42MODULE_DEPS += \
43 lib/cbuf
44
45include make/module.mk
46