summaryrefslogtreecommitdiff
path: root/recipes/sharp-binary-only/sharp-sdmmc-support.bb
blob: 57bc4f6916db9cfd8cbbd012af7a9475d01795bc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DESCRIPTION = "Driver for the SHARP Zaurus SD/MMC Slot for linux ${PV}"
SECTION = "kernel/modules"
PRIORITY = "optional"
LICENSE = "CLOSED"
RDEPENDS_${PN} = "kernel (${PV})"
PR = "r24"
PACKAGE_ARCH = "${MACHINE}"

COMPATIBLE_MACHINE = '(collie|poodle|tosa)'

KERNEL2418 = "2.4.18-rmk7-pxa3-embedix"
KERNEL2420 = "2.4.20"

PV_collie = "${KERNEL2418}"
PV_poodle = "${KERNEL2418}"
PV_tosa   = "${KERNEL2418}"
PV_akita  = "${KERNEL2420}"
PV_borzoi = "${KERNEL2420}"
PV_spitz  = "${KERNEL2420}"

SRC_URI = "http://openzaurus.sf.net/mirror/sd-modules-2.4.18-rmk7-pxa3-embedix-r4.tar.bz2 \
           file://sd \
           file://sdmgr \
           file://sdcontrol"

S = "${WORKDIR}"

inherit module-base update-rc.d

INITSCRIPT_NAME = "sd"
INITSCRIPT_PARAMS = "start 39 S . stop 96 0 1 6 ."

do_install() {
        install -d ${D}${sysconfdir}/init.d \
                   ${D}${sysconfdir}/default \
                   ${D}${base_sbindir} \
                   ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/block/

        install -m 0755 ${WORKDIR}/sdmgr ${D}${base_sbindir}/
        install -m 0755 ${WORKDIR}/sdcontrol ${D}${sysconfdir}
        install -m 0755 ${WORKDIR}/sd ${D}${sysconfdir}/init.d/
        install -m 0644 ${MACHINE}/sharp_mmcsd_m.o ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/block/
        echo "MODULE_FILE='${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/block/sharp_mmcsd_m.o'" > ${D}${sysconfdir}/default/sharp_sdmmc
}

FILES_${PN} = "/"

SRC_URI[md5sum] = "128e72bf3a333e36c4cd8b23e9cbe705"
SRC_URI[sha256sum] = "6a75c70d95e75d2cb6f3d85a5f14d1a402a74ab695424a7ad28ba4d29944c140"