blob: d5d5c4e9f196b61898efdeb650a5fe147d9eb7ca [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2
3MODULE := $(LOCAL_DIR)
4
5ROMBASE ?= 0x10000000
6MEMBASE ?= 0x10080000
7MEMSIZE ?= 40960
8
9ARCH := arm
10ARM_CPU := cortex-m4
11
12GLOBAL_DEFINES += \
13 MEMSIZE=$(MEMSIZE)
14
15MODULE_SRCS += \
16 $(LOCAL_DIR)/init.c \
17 $(LOCAL_DIR)/gpio.c \
18 $(LOCAL_DIR)/vectab.c \
19 $(LOCAL_DIR)/debug.c \
20 $(LOCAL_DIR)/udc.c \
21 $(LOCAL_DIR)/udc-common.c
22
23LINKER_SCRIPT += \
24 $(BUILDDIR)/system-twosegment.ld
25
26MODULE_DEPS += \
27 arch/arm/arm-m/systick \
28 lib/cbuf
29
30LPCSIGNEDBIN := $(OUTBIN).sign
31LPCCHECK := $(LKROOT)/platform/lpc15xx/lpccheck.py
32EXTRA_BUILDDEPS += $(LPCSIGNEDBIN)
33GENERATED += $(LPCSIGNEDBIN)
34
35$(LPCSIGNEDBIN): $(OUTBIN) $(LPCCHECK)
36 @$(MKDIR)
37 $(NOECHO)echo generating $@; \
38 cp $< $@.tmp; \
39 $(LPCCHECK) $@.tmp; \
40 mv $@.tmp $@
41
42include make/module.mk