diff options
author | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:50:57 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:50:57 -0500 |
commit | 0431f878edd38a1af264e5727e1e4d604f1a95fd (patch) | |
tree | 8fbede06fa2bf4835e9d032d1263ae120eb99837 /recipes/multitech/mts-io_git.bb | |
parent | 15028387890effa23f9cd0479b586f31c0752b88 (diff) |
add Multi-Tech-specific recipes
Diffstat (limited to 'recipes/multitech/mts-io_git.bb')
-rw-r--r-- | recipes/multitech/mts-io_git.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes/multitech/mts-io_git.bb b/recipes/multitech/mts-io_git.bb new file mode 100644 index 0000000000..59034581cd --- /dev/null +++ b/recipes/multitech/mts-io_git.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "mts-io controller and sysfs wrapper" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPL" +DEPENDS = "virtual/kernel" +RDEPENDS = "kernel (${KERNEL_VERSION})" +PV = "${SRCPV}" + +SRC_URI = " \ + file://mts-io.init \ + git://multitech.net/cdp-io-controller.git;protocol=git;tag=master \ +" +S = "${WORKDIR}/git/io-module" + +inherit module-base +inherit update-rc.d + +PR = "r0" + +EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \ + M=${S} \ + modules \ + " + +do_configure () { + echo "Nothing to configure for mts-io" +} + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mts_io.ko" +FILES_${PN} += "${sysconfdir}/init.d/mts-io" +FILES_${PN} += "${libdir}/mts-io-sysfs*" +FILES_${PN} += "${sbindir}/mts-io-sysfs" + +INITSCRIPT_NAME = "mts-io" +INITSCRIPT_PARAMS = "start 90 S ." + +PARALLEL_MAKE = "" + +fakeroot do_install () { + install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + # use cp instead of install so the driver doesn't get stripped + cp ${S}/mts_io.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/mts-io.init ${D}${sysconfdir}/init.d/mts-io + + install -m 0755 -d ${D}${sbindir} + install -d ${D}${libdir}/mts-io-sysfs + install -m 0755 ${WORKDIR}/git/io-tool/mts-io-sysfs-inc.sh ${D}${libdir}/mts-io-sysfs + install -m 0755 ${WORKDIR}/git/io-tool/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs +} |