diff options
author | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2005-05-09 20:39:53 +0000 |
---|---|---|
committer | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2005-05-09 20:39:53 +0000 |
commit | b677fd9f27f5454df75f36fe9fe6e67960d99b51 (patch) | |
tree | a30c9d52bd77c0af7c941ecd108d70ee7f9af2cb /packages/cfu1/cfu1-driver_2.6.bb | |
parent | 8b87f7c56205f5354660f849b74c2c09eda58e28 (diff) |
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded
2005/05/09 22:22:19+02:00 utwente.nl!koen
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into bitbake.utwente.nl:/home/koen/OE/openembedded
2005/05/09 22:22:02+02:00 utwente.nl!koen
Update cfu1u driver, courtesy B0Ti
BKrev: 427fca99xV1M5dB21KoKOPRF8Q5-Nw
Diffstat (limited to 'packages/cfu1/cfu1-driver_2.6.bb')
-rw-r--r-- | packages/cfu1/cfu1-driver_2.6.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/packages/cfu1/cfu1-driver_2.6.bb b/packages/cfu1/cfu1-driver_2.6.bb new file mode 100644 index 0000000000..72d67ed5cb --- /dev/null +++ b/packages/cfu1/cfu1-driver_2.6.bb @@ -0,0 +1,51 @@ +DESCRIPTION = "PCMCIA driver for the RATOC REX-CFU1 USB host controller CF card." +MAINTAINER = "Botond Botyanszki <openembedded@siliconium.net>" +SECTION = "kernel/modules" +PRIORITY = "optional" +DEPENDS = "virtual/kernel" + +RDEPENDS = "kernel-module-usbcore" + +SRC_URI = "file://rex-cfu1.conf \ + file://cfu1-driver/Makefile \ + file://cfu1-driver/sl811_cs.c \ + file://cfu1-driver/sl811_hcd.c \ + file://cfu1-driver/sl811.h \ + file://cfu1-driver/hcd.h \ + file://cfu1-driver/hub.h \ + " + +S = "${WORKDIR}/${PN}" + +inherit module + +#EXTRA_OEMAKE = "-C ${STAGING_KERNEL_DIR} SUBDIRS=${WORKDIR}/cfu1-driver" +EXTRA_OEMAKE = 'EXTRA_CFLAGS="-DCONFIG_USB_SL811_CS -DCONFIG_USB_DEBUG" -C ${STAGING_KERNEL_DIR} SUBDIRS=${WORKDIR}/cfu1-driver' + +do_configure() { + if grep CONFIG_PCMCIA=[ym] ${STAGING_KERNEL_DIR}/.config && + grep CONFIG_USB_ARCH_HAS_HCD=[ym] ${STAGING_KERNEL_DIR}/.config; then +# echo "CONFIG_USB_SL811_CS=m" >> config.mk + echo ".config OK" + else + echo "CONFIG_USB_ARCH_HAS_HCD or CONFIG_PCMCIA not defined in kernel config!" + exit 1 + fi +} + +do_compile() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake modules +} + + +do_install() { + install -d ${D}/lib/modules/${KERNEL_VERSION}/pcmcia/ + install -m 0644 sl811_cs.ko ${D}/lib/modules/${KERNEL_VERSION}/pcmcia/ + install -m 0644 sl811_hcd.ko ${D}/lib/modules/${KERNEL_VERSION}/pcmcia/ +} + +do_install_append () { + install -d ${D}/${sysconfdir}/pcmcia/ + install -m 0644 ${WORKDIR}/rex-cfu1.conf ${D}/${sysconfdir}/pcmcia/ +} |