summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/pcmcia-cs
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
committerRichard Purdie <richard@openedhand.com>2005-08-31 10:45:47 +0000
commit4b46c1f6e891b1ddd5968536440b888661fade3e (patch)
treee0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/pcmcia-cs
downloadpoky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/pcmcia-cs')
-rw-r--r--openembedded/packages/pcmcia-cs/files/arm/pcmcia30
-rw-r--r--openembedded/packages/pcmcia-cs/files/network.conf6
-rw-r--r--openembedded/packages/pcmcia-cs/files/pcmcia1
-rw-r--r--openembedded/packages/pcmcia-cs/files/wnv.conf14
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/automount.patch19
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/borzoi/ide.opts28
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/busybox.patch20
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ide.opts25
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/network.patch92
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/nocleanup.patch11
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/pcic-extra.patch33
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ratoc-cfu1u.patch23
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/spitz/ide.opts28
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/wireless.opts47
-rw-r--r--openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb100
15 files changed, 477 insertions, 0 deletions
diff --git a/openembedded/packages/pcmcia-cs/files/arm/pcmcia b/openembedded/packages/pcmcia-cs/files/arm/pcmcia
new file mode 100644
index 0000000000..d42bc84e77
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/files/arm/pcmcia
@@ -0,0 +1,30 @@
1case `awk 'BEGIN { FS=":" } /Processor/ { gsub(/ /, "", $2) ; print $2 } ' </proc/cpuinfo` in
2 *XScale-PXA2*)
3
4 case "`uname -r`" in
5 2.4*)
6 PCIC=pxa_cs
7 ;;
8 2.6*)
9 PCIC=pxa2xx_core
10 ;;
11 esac
12 ;;
13 *StrongARM-1100* | *StrongARM-1110*)
14 PCIC=sa1100_cs
15 ;;
16 *)
17 echo "Unable to determine PCIC value for this CPU"
18 exit 1
19 ;;
20esac
21
22if grep -q iPAQ /proc/cpuinfo; then
23 case `module_id` in
24 "HP iPAQ H2200")
25 ;;
26 *)
27 PCIC_EXTRA=h3600_generic_sleeve
28 ;;
29 esac
30fi
diff --git a/openembedded/packages/pcmcia-cs/files/network.conf b/openembedded/packages/pcmcia-cs/files/network.conf
new file mode 100644
index 0000000000..b35ec5c0fe
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/files/network.conf
@@ -0,0 +1,6 @@
1card "TRENDnet TE-CF100"
2manfid 0x0149, 0xc1ab
3version "Fast Ethernet", "CF Size PC Card", "1.0"
4bind "pcnet_cs"
5
6
diff --git a/openembedded/packages/pcmcia-cs/files/pcmcia b/openembedded/packages/pcmcia-cs/files/pcmcia
new file mode 100644
index 0000000000..c42fea0691
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/files/pcmcia
@@ -0,0 +1 @@
# no defaults for /etc/sysconfig/pcmcia
diff --git a/openembedded/packages/pcmcia-cs/files/wnv.conf b/openembedded/packages/pcmcia-cs/files/wnv.conf
new file mode 100644
index 0000000000..f293b67178
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/files/wnv.conf
@@ -0,0 +1,14 @@
1device "wnv_cs"
2 module "wnv_cs"
3
4#
5# Winnov PCMCIA Camera
6#
7card "Winnov VideumMPC Camera"
8 version "Winnov", "VideumMPC", "Rev 1.0", ""
9 bind "wnv_cs"
10
11## handhelds.org bugzilla bug 188
12card "Winnov VideumCam Traveler"
13 manfid 0x01a5, 0x0000
14 bind "wnv_cs"
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/automount.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/automount.patch
new file mode 100644
index 0000000000..5f11147eb8
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/automount.patch
@@ -0,0 +1,19 @@
1--- pcmcia-cs-3.2.8/etc/shared.orig 2004-12-15 02:21:11.000000000 +0100
2+++ pcmcia-cs-3.2.8/etc/shared 2004-12-27 17:09:51.000000000 +0100
3@@ -55,8 +55,15 @@
4 fi
5 if is_true $DO_MOUNT ; then
6 O=${OPTS:+-o $OPTS} ; FS=${FSTYPE:+-t $FSTYPE}
7- log mount $O $FS $1 $MOUNTPT || return 1
8+ if test -x /etc/pcmcia/ide_automount
9+ then
10+ /etc/pcmcia/ide_automount
11+ else
12+ log mount $O $FS $1 $MOUNTPT || return 1
13+ fi
14 fi
15+
16+ logger "SHARED [$MOUNTPT] [$1]"
17 return 0
18 }
19
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/borzoi/ide.opts b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/borzoi/ide.opts
new file mode 100644
index 0000000000..c67df8e348
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/borzoi/ide.opts
@@ -0,0 +1,28 @@
1# ATA/IDE drive adapter configuration
2#
3# The address format is "scheme,socket,serial_no[,part]".
4#
5# For multi-partition devices, first return list of partitions in
6# $PARTS. Then, we'll get called for each partition.
7#
8case "$ADDRESS" in
9*,1,*,*)
10 # Socket 1 is the internal HD; don't do anything clever as it's /
11 ;;
12*,*,*,1)
13 #INFO="Sample IDE setup"
14 DO_FSTAB="n";
15 #DO_FSCK="y" ;
16 DO_MOUNT="y"
17 #FSTYPE="msdos"
18 #FSTYPE="auto"
19 #OPTS=""
20 #MOUNTPT="/mnt/ide"
21 ;;
22*,*,*)
23 PARTS="1"
24 # Card eject policy options
25 NO_CHECK=n
26 NO_FUSER=y
27 ;;
28esac
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/busybox.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/busybox.patch
new file mode 100644
index 0000000000..7237f3b813
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/busybox.patch
@@ -0,0 +1,20 @@
1--- pcmcia-cs-3.2.3/etc/shared~ide 2003-03-11 10:26:14.000000000 -0600
2+++ pcmcia-cs-3.2.3/etc/shared 2003-03-11 10:32:39.000000000 -0600
3@@ -57,7 +57,7 @@
4 fi
5 if is_true $DO_MOUNT ; then
6 O=${OPTS:+-o $OPTS} ; FS=${FSTYPE:+-t $FSTYPE}
7- log mount -v $O $FS $1 $MOUNTPT || return 1
8+ log mount $O $FS $1 $MOUNTPT || return 1
9 fi
10 return 0
11 }
12@@ -85,7 +85,7 @@
13 test -b $1 || return 1
14 do_fuser -k -m $1 > /dev/null
15 if mount | grep -q "$1 on" ; then
16- log umount -v $1 || return 1
17+ log umount $1 || return 1
18 fi
19 if is_true $DO_FSTAB ; then
20 grep -v $1 /etc/fstab > /etc/fstab.N
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ide.opts b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ide.opts
new file mode 100644
index 0000000000..d13dab0015
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ide.opts
@@ -0,0 +1,25 @@
1# ATA/IDE drive adapter configuration
2#
3# The address format is "scheme,socket,serial_no[,part]".
4#
5# For multi-partition devices, first return list of partitions in
6# $PARTS. Then, we'll get called for each partition.
7#
8case "$ADDRESS" in
9*,*,*,1)
10 #INFO="Sample IDE setup"
11 DO_FSTAB="n";
12 #DO_FSCK="y" ;
13 DO_MOUNT="y"
14 #FSTYPE="msdos"
15 #FSTYPE="auto"
16 #OPTS=""
17 #MOUNTPT="/mnt/ide"
18 ;;
19*,*,*)
20 PARTS="1"
21 # Card eject policy options
22 NO_CHECK=n
23 NO_FUSER=y
24 ;;
25esac
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/network.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/network.patch
new file mode 100644
index 0000000000..fb808e209c
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/network.patch
@@ -0,0 +1,92 @@
1--- pcmcia-cs/etc/network.old 2004-07-01 00:31:59.000000000 +0100
2+++ pcmcia-cs/etc/network 2004-07-01 00:32:57.000000000 +0100
3@@ -31,16 +31,39 @@
4
5 RESOLV=/etc/resolv.conf
6
7+# if this interface has an entry in /etc/network/interfaces, let ifupdown
8+# handle it
9+if grep -q "iface \+$DEVICE" /etc/network/interfaces; then
10+ case $ACTION in
11+ start)
12+ ifup $DEVICE
13+ ;;
14+ stop)
15+ ifdown $DEVICE
16+ ;;
17+ restart)
18+ ifdown $DEVICE
19+ ifup $DEVICE
20+ ;;
21+ esac
22+
23+ exit 0
24+fi
25+
26+## see if it is a wireless card. Jamey and AntiProxy
27+CHECK_WIRELESS=`grep "$DEVICE" /proc/net/wireless`
28+if [ -n "$CHECK_WIRELESS" ] ; then
29 # Now, run the specific script for Wireless LAN interfaces
30 # Note : we need the wireless parameters to be set up before IP parameters,
31 # so that we can perform DHCP over the Wireless link if needed. Jean II
32-O_INFO=$INFO ; INFO=
33-if [ -x ./wireless ] ; then
34- . ./wireless
35-else
36- . /etc/pcmcia/wireless
37+ O_INFO=$INFO ; INFO=
38+ if [ -x ./wireless ] ; then
39+ . ./wireless
40+ else
41+ . /etc/pcmcia/wireless
42+ fi
43+ INFO=$O_INFO
44 fi
45-INFO=$O_INFO
46
47 bootp_setup ()
48 {
49@@ +225,6 -188,11 @@
50 fi
51 /sbin/dhcpcd -XYZZY 2>&1 | grep -q DHCP || \
52 rm -f /var/run/dhcpcd-$DEVICE.pid
53+ # modified for udhcpc
54+ elif [ -x /sbin/udhcpc ] ; then
55+ PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
56+ if [ -n "$PID" ] ; then kill -TERM $PID ; fi
57+ # end of modification
58 elif [ -x /sbin/dhclient ] ; then
59 PID=`cat /var/run/dhclient.pid 2>/dev/null`
60 if [ -n "$PID" ] ; then kill -TERM $PID ; fi
61@@ +282,7 -250,30 @@
62 [ -n "$IPADDR" ] && /sbin/ifconfig $DEVICE down up
63 ;;
64
65+'resume')
66+ #logger RESUME EVENT PCMCIA SEEN FROM CARDMGR
67+ if [ -z "$IPADDR" ] || is_true $DHCP ; then
68+ if [ ! -x /sbin/dhcpcd ] && [ -x /sbin/udhcpc ] ; then
69+ PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
70+ if [ -n "$PID" ] ; then
71+ kill -USR1 $PID
72+ fi
73+ fi
74+ fi
75+ ;;
76+
77+'suspend')
78+ #logger SUSPEND EVENT SEEN FROM CARDMGR
79+# ## uncomment this code below if you get problems where
80+# ## you are getting in IP conflict upon resume on DHCP networks
81+# if [ -z "$IPADDR" ] || is_true $DHCP ; then
82+# if [ ! -x /sbin/dhcpcd ] && [ -x /sbin/udhcpc ] ; then
83+# PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
84+# if [ -n "$PID" ] ; then
85+# ifconfig $DEVICE 0.0.0.0
86+# fi
87+# fi
88+# fi
89-'suspend'|'resume')
90 ;;
91
92 *)
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/nocleanup.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/nocleanup.patch
new file mode 100644
index 0000000000..afebb5a9b9
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/nocleanup.patch
@@ -0,0 +1,11 @@
1--- pcmcia-cs-3.2.8/etc/rc.pcmcia.orig 2005-04-22 23:14:56.308784152 +0100
2+++ pcmcia-cs-3.2.8/etc/rc.pcmcia 2005-04-22 23:15:34.637957232 +0100
3@@ -140,7 +140,7 @@
4 echo -n "Shutting down PCMCIA services: "
5 if [ -s /var/run/cardmgr.pid ] ; then
6 PID=`cat /var/run/cardmgr.pid`
7- kill $PID
8+ kill -9 $PID
9 # Give cardmgr a few seconds to handle the signal
10 for N in 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 ; do
11 kill -0 $PID 2>/dev/null || break
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/pcic-extra.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/pcic-extra.patch
new file mode 100644
index 0000000000..e78d0c5c6b
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/pcic-extra.patch
@@ -0,0 +1,33 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- pcmcia-cs-3.2.8/etc/rc.pcmcia~pcic-extra
7+++ pcmcia-cs-3.2.8/etc/rc.pcmcia
8@@ -105,10 +105,16 @@
9 echo "using yenta_socket instead of $PCIC") ||
10 /sbin/modprobe $PCIC $PCIC_OPTS || break
11 /sbin/modprobe ds || break
12+ if [ "x$PCIC_EXTRA" != "x" ]; then
13+ /sbin/modprobe $PCIC_EXTRA
14+ fi
15 elif [ -d $PC ] ; then
16 /sbin/insmod $PC/pcmcia_core.o $CORE_OPTS
17 /sbin/insmod $PC/$PCIC.o $PCIC_OPTS
18 /sbin/insmod $PC/ds.o
19+ if [ "x$PCIC_EXTRA" != "x" ]; then
20+ /sbin/insmod $PC/$PCIC_EXTRA
21+ fi
22 else
23 echo "module directory $PC not found."
24 break
25@@ -154,7 +160,7 @@
26 ;;
27
28 status)
29- pid=`/sbin/pidof cardmgr`
30+ pid=`/bin/pidof cardmgr`
31 if [ "$pid" != "" ] ; then
32 echo "cardmgr (pid $pid) is running..."
33 EXITCODE=0
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ratoc-cfu1u.patch b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ratoc-cfu1u.patch
new file mode 100644
index 0000000000..069aa65bdd
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/ratoc-cfu1u.patch
@@ -0,0 +1,23 @@
1--- pcmcia-cs/etc/config 2005-02-06 17:02:39.714620456 +1300
2+++ pcmcia-cs/etc/config 2005-02-06 17:05:06.123362944 +1300
3@@ -131,6 +131,9 @@
4 device "ohci1394_cb"
5 class "ieee1394" module "cb_enabler", "ohci1394_cb"
6
7+device "hc_sl811_cs"
8+ class "usb" module "usbcore", "hc_sl811", "hc_sl811_cs"
9+
10 # dummy drivers
11
12 device "dummy_cs" module "dummy_cs"
13@@ -2169,6 +2172,10 @@
14 manfid 0x0137, 0x0003
15 bind "parport_cs"
16
17+card "RATOC USB HOST CF+ Card"
18+ manfid 0xc015, 0x0001
19+ bind "hc_sl811_cs"
20+
21 card "TELES S0/PC ISDN"
22 version "TELES", "S0/PC"
23 bind "teles_cs"
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/spitz/ide.opts b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/spitz/ide.opts
new file mode 100644
index 0000000000..c67df8e348
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/spitz/ide.opts
@@ -0,0 +1,28 @@
1# ATA/IDE drive adapter configuration
2#
3# The address format is "scheme,socket,serial_no[,part]".
4#
5# For multi-partition devices, first return list of partitions in
6# $PARTS. Then, we'll get called for each partition.
7#
8case "$ADDRESS" in
9*,1,*,*)
10 # Socket 1 is the internal HD; don't do anything clever as it's /
11 ;;
12*,*,*,1)
13 #INFO="Sample IDE setup"
14 DO_FSTAB="n";
15 #DO_FSCK="y" ;
16 DO_MOUNT="y"
17 #FSTYPE="msdos"
18 #FSTYPE="auto"
19 #OPTS=""
20 #MOUNTPT="/mnt/ide"
21 ;;
22*,*,*)
23 PARTS="1"
24 # Card eject policy options
25 NO_CHECK=n
26 NO_FUSER=y
27 ;;
28esac
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/wireless.opts b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/wireless.opts
new file mode 100644
index 0000000000..3e498297fc
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs-3.2.8/wireless.opts
@@ -0,0 +1,47 @@
1# Wireless LAN adapter configuration
2#
3# Theory of operation :
4#
5# The script attempts to match a block of settings to the specific wireless
6# card inserted, the *first* block matching the card is used.
7# The address format is "scheme,socket,instance,hwaddr", with * as a wildcard.
8# 'scheme' is the pcmcia scheme (set via 'cardctl scheme XXX').
9# 'hwaddr' is the unique MAC address identifier of the wireless card.
10# The MAC address is usually printed on the card, or can be found via ifconfig.
11# Some examples here use only half of the MAC address with a wildcard to
12# match a whole family of cards...
13#
14# All the Wireless specific configuration is done through the Wireless
15# Extensions, so we will just call 'iwconfig' with the right parameters
16# defined below.
17# Of course, you need to have iwconfig installled on your system.
18# To download iwconfig, or for more info on Wireless Extensions :
19# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
20#
21# Note : you don't need to fill all parameters, leave them blank, in most
22# cases the driver will initialise itself with sane defaults values or
23# automatically figure out the value... And no drivers do support all
24# possible settings...
25#
26# If you make any mistakes, you'll get a cryptic message in the system
27# log. You'll need to figure out on your own which parameter was wrong:
28# cardmgr[310]: executing: './network start wvlan0'
29# cardmgr[310]: + SIOCSIWMODE: Invalid argument
30# I've tried to give more troubleshooting help at :
31# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html#debug
32# In case of doubts, just check "/etc/pcmcia/wireless" for the gory details...
33#
34# Note also that this script will work only with the original Pcmcia scripts,
35# and not with the default Red Hat scripts. Send a bug report to Red Hat ;-)
36#
37# Finally, send comments and flames to me, Jean Tourrilhes <jt@hpl.hp.com>
38#
39
40case "$ADDRESS" in
41*,*,*,*)
42 INFO="Default Config"
43 ESSID=any
44 MODE=Managed
45 RATE=auto
46 ;;
47esac
diff --git a/openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb b/openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb
new file mode 100644
index 0000000000..2aa41a6c32
--- /dev/null
+++ b/openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb
@@ -0,0 +1,100 @@
1DESCRIPTION = "Utilities and system configuration files for the Linux PCMCIA card services"
2SECTION = "base"
3PRIORITY = "required"
4LICENSE = "GPL"
5DEPENDS = "virtual/kernel"
6PR = "r19"
7
8SRC_URI = "${SOURCEFORGE_MIRROR}/pcmcia-cs/pcmcia-cs-${PV}.tar.gz \
9 file://busybox.patch;patch=1 \
10 file://network.patch;patch=1 \
11 file://pcic-extra.patch;patch=1 \
12 file://automount.patch;patch=1 \
13 file://ratoc-cfu1u.patch;patch=1 \
14 file://pcmcia \
15 file://ide.opts \
16 file://wireless.opts \
17 file://network.conf \
18 file://wnv.conf"
19
20SRC_URI_append_spitz = " file://nocleanup.patch;patch=1"
21S = "${WORKDIR}/pcmcia-cs-${PV}"
22
23INITSCRIPT_NAME = "pcmcia"
24INITSCRIPT_PARAMS = "defaults"
25
26inherit update-rc.d module-base
27
28export KERNEL_SOURCE = ${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}
29
30sbindir = "/sbin"
31
32do_configure() {
33 touch .prereq.ok
34 touch config.out
35 cat >config.mk <<EOF
36UCC=${CC}
37UFLAGS=${CFLAGS} -I${S}/include
38HAS_WORDEXP=y
39SYSV_INIT=y
40RC_DIR=/etc
41CONFIG_PNP_BIOS=n
42ARCH=${ARCH}
43CONFIG_CARDBUS=n
44CONFIG_PCMCIA=y
45CONFIG_INET=y
46CONFIG_SCSI=y
47DO_IDE=y
48EOF
49 cat >include/pcmcia/autoconf.h <<EOF
50#define HAS_WORDEXP 1
51EOF
52}
53
54do_compile() {
55 oe_runmake all HAS_XPM= FLIBS="" XMANDIR=""
56}
57
58INSTALL_ETC = "ftl ide ieee1394 memory network parport scsi serial wireless"
59INSTALL_ETC_DATA = "config config.opts ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared"
60INSTALL_ETC_DATA_arm = "config ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared"
61
62do_install() {
63 install -d ${D}${sbindir}
64 for f in cardmgr/cardctl cardmgr/cardmgr cardmgr/ide_info cardmgr/ifport cardmgr/ifuser cardmgr/pcinitrd flash/ftl_check flash/ftl_format
65 do
66 install -m 0755 $f ${D}${sbindir}/
67 done
68 install -d ${D}${sysconfdir}/init.d \
69 ${D}${sysconfdir}/pcmcia \
70 ${D}${sysconfdir}/pcmcia/cis
71
72 install -m 0644 ${WORKDIR}/network.conf ${D}${sysconfdir}/pcmcia/
73 install -m 0644 ${WORKDIR}/wnv.conf ${D}${sysconfdir}/pcmcia/
74
75 for i in ${INSTALL_ETC}; do
76 install -m 0755 etc/${i} ${D}${sysconfdir}/pcmcia/
77 done
78 for i in ${INSTALL_ETC_DATA}; do
79 install -m 0644 etc/${i} ${D}${sysconfdir}/pcmcia/
80 done
81
82 # ensure that config.opts always exists, albeit empty
83 echo >> ${D}${sysconfdir}/pcmcia/config.opts
84
85 install -m 0644 ${WORKDIR}/ide.opts ${D}${sysconfdir}/pcmcia/
86 install -m 0644 ${WORKDIR}/wireless.opts ${D}${sysconfdir}/pcmcia/
87 for i in etc/cis/*; do
88 install -m 0644 $i ${D}${sysconfdir}/pcmcia/cis/
89 done
90 install -m 0755 etc/rc.pcmcia ${D}${sysconfdir}/init.d/pcmcia
91 install -d ${D}${sysconfdir}/sysconfig
92 install -m 0755 ${WORKDIR}/pcmcia ${D}${sysconfdir}/sysconfig/pcmcia
93}
94
95PACKAGES =+ "${PN}-ftl ${PN}-pcinitrd"
96
97FILES_${PN} = "${sbindir} ${sysconfdir}"
98FILES_${PN}-ftl = "/sbin/ftl_format /sbin/ftl_check /etc/pcmcia/ftl*"
99FILES_${PN}-pcinitrd = "/sbin/pcinitrd"
100