[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/platform/lpc43xx/rules.mk b/src/bsp/lk/platform/lpc43xx/rules.mk
new file mode 100644
index 0000000..d5d5c4e
--- /dev/null
+++ b/src/bsp/lk/platform/lpc43xx/rules.mk
@@ -0,0 +1,42 @@
+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