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 | ENABLE_THUMB := false |
| 10 | |
| 11 | GLOBAL_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 | |
| 17 | MODULE_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 | |
| 28 | MODULES += \ |
| 29 | |
| 30 | MEMBASE := 0x80000000 |
| 31 | MEMSIZE ?= 0x10000000 |
| 32 | |
| 33 | LINKER_SCRIPT += \ |
| 34 | $(BUILDDIR)/system-onesegment.ld |
| 35 | |
| 36 | GLOBAL_DEFINES += \ |
| 37 | SDRAM_BASE=$(MEMBASE) \ |
| 38 | SDRAM_SIZE=$(MEMSIZE) \ |
| 39 | |
| 40 | GLOBAL_CFLAGS += -Dam335x \ |
| 41 | |
| 42 | MODULE_DEPS += \ |
| 43 | lib/cbuf |
| 44 | |
| 45 | include make/module.mk |
| 46 | |