[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/lib/heap/rules.mk b/src/bsp/lk/lib/heap/rules.mk
new file mode 100644
index 0000000..b8b393f
--- /dev/null
+++ b/src/bsp/lk/lib/heap/rules.mk
@@ -0,0 +1,32 @@
+LOCAL_DIR := $(GET_LOCAL_DIR)
+
+GLOBAL_INCLUDES += $(LOCAL_DIR)/include
+
+MODULE := $(LOCAL_DIR)
+
+MODULE_SRCS += \
+	$(LOCAL_DIR)/heap_wrapper.c \
+	$(LOCAL_DIR)/page_alloc.c
+
+ifeq ($(WITH_CPP_SUPPORT),true)
+MODULE_SRCS += \
+	$(LOCAL_DIR)/new.cpp
+endif
+
+# pick a heap implementation
+ifndef LK_HEAP_IMPLEMENTATION
+LK_HEAP_IMPLEMENTATION=miniheap
+endif
+ifeq ($(LK_HEAP_IMPLEMENTATION),miniheap)
+MODULE_DEPS := lib/heap/miniheap
+endif
+ifeq ($(LK_HEAP_IMPLEMENTATION),dlmalloc)
+MODULE_DEPS := lib/heap/dlmalloc
+endif
+ifeq ($(LK_HEAP_IMPLEMENTATION),cmpctmalloc)
+MODULE_DEPS := lib/heap/cmpctmalloc
+endif
+
+GLOBAL_DEFINES += LK_HEAP_IMPLEMENTATION=$(LK_HEAP_IMPLEMENTATION)
+
+include make/module.mk