blob: 7ce05263d24b476333b211ed9eb560d35074be96 [file] [log] [blame]
developer8c4b8ab2023-02-09 10:37:49 +08001SUMMARY = "a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network"
developer3dfd2542023-02-07 10:54:54 +08002SECTION = "Drivers"
developer8c4b8ab2023-02-09 10:37:49 +08003LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
developer3dfd2542023-02-07 10:54:54 +08005
6inherit module
7
8DEPENDS = "virtual/kernel"
9
10SRC_URI = " \
11 git://git@github.com/cifsd-team/ksmbd.git;protocol=https;tag=${PV} \
developer8c4b8ab2023-02-09 10:37:49 +080012 file://COPYING;subdir=git \
developer3dfd2542023-02-07 10:54:54 +080013 "
14
developer3dfd2542023-02-07 10:54:54 +080015S = "${WORKDIR}/git"
16
17PKG_MAKE_FLAGS = " \
18 CONFIG_SMB_INSECURE_SERVER=y \
19 "
20
21EXTRA_OEMAKE = " \
22 -C ${STAGING_KERNEL_BUILDDIR}/ \
23 M=${S} \
24 EXTRA_CFLAGS="-DCONFIG_SMB_INSECURE_SERVER=1" \
25 ${PKG_MAKE_FLAGS} \
26 CONFIG_SMB_SERVER=m \
27 "
28
29MAKE_TARGETS = "modules"
30#do_make_scripts[depends] += "virtual/kernel:do_shared_workdir"
31do_install() {
32 install -d ${D}/lib/modules/${KERNEL_VERSION}/
33 install -m 0644 ${B}/ksmbd.ko ${D}/lib/modules/${KERNEL_VERSION}/
34}
35
36KERNEL_MODULE_AUTOLOAD += "ksmbd"