[rdkb][common][app][Add ksmbd support]

[Description]
Add ksmbd support

[Release-log]

Change-Id: I16bd43c47375f81161e733ae7ec214970ef010e4
diff --git a/recipes-devtools/ksmbd/ksmbd-tools_3.4.5.bb b/recipes-devtools/ksmbd/ksmbd-tools_3.4.5.bb
new file mode 100644
index 0000000..53ef994
--- /dev/null
+++ b/recipes-devtools/ksmbd/ksmbd-tools_3.4.5.bb
@@ -0,0 +1,42 @@
+SUMMARY = "MTK eFuse driver"
+SECTION = "Drivers"
+LICENSE = "CLOSED"
+#LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+inherit autotools pkgconfig systemd
+
+DEPENDS += "ksmbd libnl glib-2.0"
+
+SRC_URI = " \
+    git://git@github.com/cifsd-team/ksmbd-tools.git;protocol=https;tag=${PV} \
+    file://smb.conf \
+    file://ksmbd.service \
+    "
+
+
+
+S = "${WORKDIR}/git"
+
+#EXTRA_OECONF += "GLIB_LIBS="${STAGING_LIBDIR}/libglib-2.0.a""
+EXTRA_OECONF_append  = " --disable-shared --enable-static"
+CFLAGS_prepend = " \
+    -D_GNU_SOURCE \
+    -I${STAGING_INCDIR}/libnl3 \
+    -I${STAGING_INCDIR}/glib-2.0 \
+    -I${STAGING_LIBDIR}/glib-2.0/include \
+    -I${S} \
+    -ffunction-sections -fdata-sections -flto \
+    "
+LDFLAGS += " -lglib-2.0"
+
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE_${PN} = " ksmbd.service"
+FILES_${PN} += "{systemd_unitdir}/system/ksmbd.service"
+
+do_install_append () {
+	install -d ${D}${systemd_unitdir}/system/
+	install -m 0644 ${WORKDIR}/ksmbd.service ${D}${systemd_unitdir}/system
+    install -d ${D}/etc/ksmbd
+    install -m 0644 ${WORKDIR}/smb.conf ${D}/etc/ksmbd
+    install -m 0644 ${S}//Documentation/configuration.txt ${D}/etc/ksmbd
+}
\ No newline at end of file