blob: 155a217289084b0716f3bc8eb519a5e4662269b4 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# FIXME, consider using kernel staging directory instead of KERNEL_SOURCE which is
# located in the work directory. see module.bbclass
DESCRIPTION = "Utilities and system configuration files for the Linux PCMCIA card services"
SECTION = "base"
PRIORITY = "required"
LICENSE = "GPL"
DEPENDS = "virtual/kernel"
RDEPENDS = "hostap-conf orinoco-conf"
PR = "r28"
SRC_URI = "${SOURCEFORGE_MIRROR}/pcmcia-cs/pcmcia-cs-${PV}.tar.gz \
file://busybox.patch \
file://network.patch \
file://pcic-extra.patch \
file://automount.patch \
file://ratoc-cfu1u.patch \
file://no-hostap-cards.patch \
file://gcc4_fixes.patch \
file://pcmcia \
file://ide.opts \
file://wireless.opts \
file://network.conf \
file://wnv.conf"
SRC_URI_append_spitz = " file://nocleanup.patch"
SRC_URI_append_sh3 = " file://superh-noO3.patch"
S = "${WORKDIR}/pcmcia-cs-${PV}"
INITSCRIPT_NAME = "pcmcia"
INITSCRIPT_PARAMS = "defaults"
inherit update-rc.d module-base
export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}"
sbindir = "/sbin"
do_configure() {
touch .prereq.ok
touch config.out
cat >config.mk <<EOF
UCC=${CC}
UFLAGS=${CFLAGS} -I${S}/include
HAS_WORDEXP=y
SYSV_INIT=y
RC_DIR=/etc
CONFIG_PNP_BIOS=n
ARCH=${ARCH}
CONFIG_CARDBUS=n
CONFIG_PCMCIA=y
CONFIG_INET=y
CONFIG_SCSI=y
DO_IDE=y
EOF
cat >include/pcmcia/autoconf.h <<EOF
#define HAS_WORDEXP 1
EOF
}
do_compile() {
oe_runmake all HAS_XPM= FLIBS="" XMANDIR=""
}
INSTALL_ETC = "ftl ide ieee1394 memory network parport scsi serial wireless"
INSTALL_ETC_DATA = "config config.opts ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared"
INSTALL_ETC_DATA_arm = "config ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared"
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 \
${D}${sysconfdir}/pcmcia/cis
install -m 0644 ${WORKDIR}/network.conf ${D}${sysconfdir}/pcmcia/
install -m 0644 ${WORKDIR}/wnv.conf ${D}${sysconfdir}/pcmcia/
for i in ${INSTALL_ETC}; do
install -m 0755 etc/${i} ${D}${sysconfdir}/pcmcia/
done
for i in ${INSTALL_ETC_DATA}; do
install -m 0644 etc/${i} ${D}${sysconfdir}/pcmcia/
done
# ensure that config.opts always exists, albeit empty
echo >> ${D}${sysconfdir}/pcmcia/config.opts
install -m 0644 ${WORKDIR}/ide.opts ${D}${sysconfdir}/pcmcia/
install -m 0644 ${WORKDIR}/wireless.opts ${D}${sysconfdir}/pcmcia/
for i in etc/cis/*; do
install -m 0644 $i ${D}${sysconfdir}/pcmcia/cis/
done
install -m 0755 etc/rc.pcmcia ${D}${sysconfdir}/init.d/pcmcia
install -d ${D}${sysconfdir}/sysconfig
install -m 0755 ${WORKDIR}/pcmcia ${D}${sysconfdir}/sysconfig/pcmcia
}
PACKAGES =+ "${PN}-ftl ${PN}-pcinitrd"
FILES_${PN} = "${sbindir} ${sysconfdir}"
FILES_${PN}-ftl = "/sbin/ftl_format /sbin/ftl_check /etc/pcmcia/ftl*"
FILES_${PN}-pcinitrd = "/sbin/pcinitrd"
SRC_URI[md5sum] = "0d6d65be8896eff081aee996049afaa5"
SRC_URI[sha256sum] = "ef93921e8555862df4c24b1c357430ff3d5ba1d3b6b7e324862ea37b511270c0"
|