diff options
author | Jesse Gilles <jgilles@multitech.com> | 2010-07-27 16:48:59 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2010-07-27 16:48:59 -0500 |
commit | 440ddbd6bf25fa884c16d53d102a4cba590ca758 (patch) | |
tree | bf0df7aeb58e5b551afba4d0d98bbdeddebeb356 /recipes/multitech | |
parent | feea0279e602f313ca37320531c7f9dff9962f54 (diff) | |
parent | 9ec514915081db92dd2956c819f80dc4545d8cc8 (diff) |
Merge branch 'multitech-corecdp-1.x' into multitech-corecdp-dev
Diffstat (limited to 'recipes/multitech')
-rw-r--r-- | recipes/multitech/mts-io.inc | 56 | ||||
-rw-r--r-- | recipes/multitech/mts-io_0.2.0.bb | 57 | ||||
-rw-r--r-- | recipes/multitech/mts-io_0.3.0.bb | 3 |
3 files changed, 60 insertions, 56 deletions
diff --git a/recipes/multitech/mts-io.inc b/recipes/multitech/mts-io.inc new file mode 100644 index 0000000000..b6f6abe3ae --- /dev/null +++ b/recipes/multitech/mts-io.inc @@ -0,0 +1,56 @@ +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})" + +SRC_URI = " \ + file://mts-io.init \ + git://git.multitech.net/cdp-io-controller.git;protocol=git;tag=v${PV} \ +" +S = "${WORKDIR}/git/io-module" + +inherit module-base +inherit update-rc.d + +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 +} diff --git a/recipes/multitech/mts-io_0.2.0.bb b/recipes/multitech/mts-io_0.2.0.bb index 57bec161a1..bda1ebd15b 100644 --- a/recipes/multitech/mts-io_0.2.0.bb +++ b/recipes/multitech/mts-io_0.2.0.bb @@ -1,58 +1,3 @@ -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})" - -SRC_URI = " \ - file://mts-io.init \ - git://git.multitech.net/cdp-io-controller.git;protocol=git;tag=v0.2.0 \ -" -S = "${WORKDIR}/git/io-module" - -inherit module-base -inherit update-rc.d +require mts-io.inc 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 -} diff --git a/recipes/multitech/mts-io_0.3.0.bb b/recipes/multitech/mts-io_0.3.0.bb new file mode 100644 index 0000000000..bda1ebd15b --- /dev/null +++ b/recipes/multitech/mts-io_0.3.0.bb @@ -0,0 +1,3 @@ +require mts-io.inc + +PR = "r0" |