summaryrefslogtreecommitdiff
path: root/sharp-binary-only/sharp-sdmmc-support_2.4.18-rmk7-pxa3-embedix.bb
blob: a09eaa07317a2d68735e6ffadb594b5e21fd03da (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 = "Driver for the SHARP Zaurus SD/MMC Slot for linux ${PV}"
SECTION = "kernel/modules"
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
LICENSE = "CLOSED"
RDEPENDS = "kernel (${KERNEL_VERSION})"
PR = "r8"

SRC_URI = "http://www.openzaurus.org/mirror/sd-modules-2.4.18-rmk7-pxa3-embedix.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}/etc/init.d ${D}/sbin
	install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/block/
	install -m 0755 ${WORKDIR}/sdmgr ${D}/sbin/
	install -m 0755 ${WORKDIR}/sdcontrol ${D}/${sysconfdir}
	install -m 0755 ${WORKDIR}/sd ${D}/etc/init.d/
	install -m 0644 ${MACHINE}/sharp_mmcsd_m.o ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/block/
}

FILES_${PN} = "/"

PACKAGE_ARCH := "${MACHINE_ARCH}"