blob: 088098cfcc7d7b444603fec5ad42efee53008e78 (
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
|
DESCRIPTION = "Card Services for Linux is a complete PCMCIA support package."
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPL"
RDEPENDS = "busybox modutils-depmod"
SRC_URI = "http://pcmcia-cs.sourceforge.net/ftp/pcmcia-cs-${PV}.tar.gz"
inherit module
do_configure() {
./Configure --kernel="${KERNEL_SOURCE}" --noprompt --sysv --nopnp --rcdir=${sysconfdir} --arch="${ARCH}" \
--srctree --nocardbus --ucc="${CC}" --ld="${LD}" --uflags="${CFLAGS}" --target=.
oe_runmake HAS_XPM= FLIBS="" XMANDIR="" DIRS="cardmgr etc flash"
}
do_install() {
install -d ${D}/${sbindir}
for f in cardmgr/cardctl cardmgr/cardmgr cardmgr/ide_info cardmgr/ifport cardmgr/ifuser cardmgr/pcinitrd flash/ftl_check flash/ftl_format
do
install -m 0755 $f ${D}/${sbindir}/
done
install -d ${D}/${sysconfdir}/init.d \
${D}/${sysconfdir}/pcmcia
cp -a etc/* ${D}/${sysconfdir}/pcmcia/
install -m 0755 etc/rc.pcmcia ${D}/${sysconfdir}/init.d/pcmcia
}
FILES_${PN} = "${sbindir} ${sysconfdir}"
|