aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shfs/shfs-modules_0.35.bb
blob: 7f1af0fb96ff38d6fa8a849c5029beca23af47de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
DESCRIPTION = "A simple and easy to use Linux kernel (2.4+) module which allows you to mount remote filesystems using plain shell (ssh/rsh) connection. \
It supports some nice features like number of different caches for access speedup, target system optimisations, etc."
SECTION = "kernel/modules"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r3"

SRC_URI = "${SOURCEFORGE_MIRROR}/shfs/shfs-${PV}.tar.gz"
S = "${WORKDIR}/shfs-${PV}/shfs/Linux-2.4"

#FIXME depend S on kernel version

inherit module

do_compile() {
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
        oe_runmake KERNEL_SOURCES=${STAGING_KERNEL_DIR} KERNEL=${KERNEL_VERSION} \
                   CC="${KERNEL_CC}" LD="${KERNEL_LD}" LINKER="${KERNEL_LD}" LDFLAGS=-r
}

do_stage() {
	install -m 0644 shfs_fs.h shfs.h ${STAGING_INCDIR}/
}

do_install() {
        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/fs/shfs/
	install -m 0644 shfs.o ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/fs/shfs/shfs.o
}

SRC_URI[md5sum] = "016f49d71bc32eee2b5d11fc1600cfbe"
SRC_URI[sha256sum] = "0d48ffe4d801180c15466f20aaa5802adb9d22067e8941e051dc3c64717ec3c2"