Add mbtk dump and

Change-Id: I510bbfa20d954d4212cbb7710337de029cfc95e1
diff --git a/mbtk/libmbtk_lib/Makefile b/mbtk/libmbtk_lib/Makefile
index 5e46530..efa293c 100755
--- a/mbtk/libmbtk_lib/Makefile
+++ b/mbtk/libmbtk_lib/Makefile
@@ -8,7 +8,7 @@
 
 LIB_DIR +=
 
-LIBS += -llog -lubus -lubox -luci -lprop2uci -lrilutil -lblobmsg_json
+LIBS += -llog -lubus -lubox -luci -lprop2uci -lrilutil -lblobmsg_json -ldl
 
 CFLAGS += -shared -Wl,-shared,-Bsymbolic
 
@@ -48,6 +48,10 @@
 	src/mbtk_device_info.c \
 	src/mbtk_version.c
 
+ifeq ($(MBTK_DUMP_SUPPORT), y)
+LOCAL_SRC_FILES += src/mbtk_debug.c
+endif
+
 OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(LOCAL_SRC_FILES)))
 $(info OBJS = $(OBJS))