| LOCAL_DIR := $(GET_LOCAL_DIR) |
| |
| MODULE := $(LOCAL_DIR) |
| |
| ROMBASE ?= 0x10000000 |
| MEMBASE ?= 0x10080000 |
| MEMSIZE ?= 40960 |
| |
| ARCH := arm |
| ARM_CPU := cortex-m4 |
| |
| GLOBAL_DEFINES += \ |
| MEMSIZE=$(MEMSIZE) |
| |
| MODULE_SRCS += \ |
| $(LOCAL_DIR)/init.c \ |
| $(LOCAL_DIR)/gpio.c \ |
| $(LOCAL_DIR)/vectab.c \ |
| $(LOCAL_DIR)/debug.c \ |
| $(LOCAL_DIR)/udc.c \ |
| $(LOCAL_DIR)/udc-common.c |
| |
| LINKER_SCRIPT += \ |
| $(BUILDDIR)/system-twosegment.ld |
| |
| MODULE_DEPS += \ |
| arch/arm/arm-m/systick \ |
| lib/cbuf |
| |
| LPCSIGNEDBIN := $(OUTBIN).sign |
| LPCCHECK := $(LKROOT)/platform/lpc15xx/lpccheck.py |
| EXTRA_BUILDDEPS += $(LPCSIGNEDBIN) |
| GENERATED += $(LPCSIGNEDBIN) |
| |
| $(LPCSIGNEDBIN): $(OUTBIN) $(LPCCHECK) |
| @$(MKDIR) |
| $(NOECHO)echo generating $@; \ |
| cp $< $@.tmp; \ |
| $(LPCCHECK) $@.tmp; \ |
| mv $@.tmp $@ |
| |
| include make/module.mk |