developer | 8c4b8ab | 2023-02-09 10:37:49 +0800 | [diff] [blame] | 1 | SUMMARY = "a linux kernel server which implements SMB3 protocol in kernel space for sharing files over network" |
developer | 3dfd254 | 2023-02-07 10:54:54 +0800 | [diff] [blame] | 2 | SECTION = "Drivers" |
developer | 8c4b8ab | 2023-02-09 10:37:49 +0800 | [diff] [blame] | 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
developer | 3dfd254 | 2023-02-07 10:54:54 +0800 | [diff] [blame] | 5 | |
| 6 | inherit module |
| 7 | |
| 8 | DEPENDS = "virtual/kernel" |
| 9 | |
| 10 | SRC_URI = " \ |
| 11 | git://git@github.com/cifsd-team/ksmbd.git;protocol=https;tag=${PV} \ |
developer | 8c4b8ab | 2023-02-09 10:37:49 +0800 | [diff] [blame] | 12 | file://COPYING;subdir=git \ |
developer | 3dfd254 | 2023-02-07 10:54:54 +0800 | [diff] [blame] | 13 | " |
| 14 | |
developer | 3dfd254 | 2023-02-07 10:54:54 +0800 | [diff] [blame] | 15 | S = "${WORKDIR}/git" |
| 16 | |
| 17 | PKG_MAKE_FLAGS = " \ |
| 18 | CONFIG_SMB_INSECURE_SERVER=y \ |
| 19 | " |
| 20 | |
| 21 | EXTRA_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 | |
| 29 | MAKE_TARGETS = "modules" |
| 30 | #do_make_scripts[depends] += "virtual/kernel:do_shared_workdir" |
| 31 | do_install() { |
| 32 | install -d ${D}/lib/modules/${KERNEL_VERSION}/ |
| 33 | install -m 0644 ${B}/ksmbd.ko ${D}/lib/modules/${KERNEL_VERSION}/ |
| 34 | } |
| 35 | |
| 36 | KERNEL_MODULE_AUTOLOAD += "ksmbd" |