blob: 53ef99447d43baaa90ea52da5425efc44aaae114 [file] [log] [blame]
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
}