diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb | |
download | poky-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/pcmcia-cs_3.2.8.bb')
-rw-r--r-- | openembedded/packages/pcmcia-cs/pcmcia-cs_3.2.8.bb | 100 |
1 files changed, 100 insertions, 0 deletions
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 @@ | |||
1 | DESCRIPTION = "Utilities and system configuration files for the Linux PCMCIA card services" | ||
2 | SECTION = "base" | ||
3 | PRIORITY = "required" | ||
4 | LICENSE = "GPL" | ||
5 | DEPENDS = "virtual/kernel" | ||
6 | PR = "r19" | ||
7 | |||
8 | SRC_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 | |||
20 | SRC_URI_append_spitz = " file://nocleanup.patch;patch=1" | ||
21 | S = "${WORKDIR}/pcmcia-cs-${PV}" | ||
22 | |||
23 | INITSCRIPT_NAME = "pcmcia" | ||
24 | INITSCRIPT_PARAMS = "defaults" | ||
25 | |||
26 | inherit update-rc.d module-base | ||
27 | |||
28 | export KERNEL_SOURCE = ${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')} | ||
29 | |||
30 | sbindir = "/sbin" | ||
31 | |||
32 | do_configure() { | ||
33 | touch .prereq.ok | ||
34 | touch config.out | ||
35 | cat >config.mk <<EOF | ||
36 | UCC=${CC} | ||
37 | UFLAGS=${CFLAGS} -I${S}/include | ||
38 | HAS_WORDEXP=y | ||
39 | SYSV_INIT=y | ||
40 | RC_DIR=/etc | ||
41 | CONFIG_PNP_BIOS=n | ||
42 | ARCH=${ARCH} | ||
43 | CONFIG_CARDBUS=n | ||
44 | CONFIG_PCMCIA=y | ||
45 | CONFIG_INET=y | ||
46 | CONFIG_SCSI=y | ||
47 | DO_IDE=y | ||
48 | EOF | ||
49 | cat >include/pcmcia/autoconf.h <<EOF | ||
50 | #define HAS_WORDEXP 1 | ||
51 | EOF | ||
52 | } | ||
53 | |||
54 | do_compile() { | ||
55 | oe_runmake all HAS_XPM= FLIBS="" XMANDIR="" | ||
56 | } | ||
57 | |||
58 | INSTALL_ETC = "ftl ide ieee1394 memory network parport scsi serial wireless" | ||
59 | INSTALL_ETC_DATA = "config config.opts ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared" | ||
60 | INSTALL_ETC_DATA_arm = "config ftl.opts ieee1394.opts memory.opts network.opts parport.opts scsi.opts serial.opts shared" | ||
61 | |||
62 | do_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 | |||
95 | PACKAGES =+ "${PN}-ftl ${PN}-pcinitrd" | ||
96 | |||
97 | FILES_${PN} = "${sbindir} ${sysconfdir}" | ||
98 | FILES_${PN}-ftl = "/sbin/ftl_format /sbin/ftl_check /etc/pcmcia/ftl*" | ||
99 | FILES_${PN}-pcinitrd = "/sbin/pcinitrd" | ||
100 | |||