From 9a21777662ca5561102f627a63a514756e4ad24c Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 28 Feb 2022 18:38:22 -0600 Subject: Move MTAC-PULSE to GPIO descriptor library in the kernel --- recipes-bsp/multitech/mtac-pulse_1.1.1.bb | 58 ------------------------------- recipes-bsp/multitech/mtac-pulse_2.0.0.bb | 58 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-pulse_1.1.1.bb create mode 100644 recipes-bsp/multitech/mtac-pulse_2.0.0.bb diff --git a/recipes-bsp/multitech/mtac-pulse_1.1.1.bb b/recipes-bsp/multitech/mtac-pulse_1.1.1.bb deleted file mode 100644 index 1fefdba..0000000 --- a/recipes-bsp/multitech/mtac-pulse_1.1.1.bb +++ /dev/null @@ -1,58 +0,0 @@ -DESCRIPTION = "MTAC PULSE Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-pulse/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -do_fetch[depends]+="virtual/kernel:do_shared_workdir" -DEPENDS = "virtual/kernel mtac mts-io" -RDEPENDS_${PN} = "kernel-module-mtac" -INC_PR = "r1" -COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" - -SRCREV = "${PV}" - -PR = "${INC_PR}.1" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac-pulse.git;protocol=git;branch=master \ -" -S = "${WORKDIR}/git" - -inherit module - -MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \ - ${STAGING_INCDIR}/mtac/Module.symvers" - -COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \ - KBUILD_VERBOSE=1 \ - KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \ - M=${S} \ - modules \ - " -EXTRA_OEMAKE_mtcdt = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ - -D SAM9G25'" -EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ - -D TI43X'" - - -do_compile () { - bbnote make "$@" - make "$@" - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -} - -PACKAGES = "kernel-module-${PN}" - -FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_pulse.ko" - -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}/mtac_pulse.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-pulse_2.0.0.bb b/recipes-bsp/multitech/mtac-pulse_2.0.0.bb new file mode 100644 index 0000000..1fefdba --- /dev/null +++ b/recipes-bsp/multitech/mtac-pulse_2.0.0.bb @@ -0,0 +1,58 @@ +DESCRIPTION = "MTAC PULSE Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-pulse/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +do_fetch[depends]+="virtual/kernel:do_shared_workdir" +DEPENDS = "virtual/kernel mtac mts-io" +RDEPENDS_${PN} = "kernel-module-mtac" +INC_PR = "r1" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${PV}" + +PR = "${INC_PR}.1" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac-pulse.git;protocol=git;branch=master \ +" +S = "${WORKDIR}/git" + +inherit module + +MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/Module.symvers \ + ${STAGING_INCDIR}/mtac/Module.symvers" + +COMMON_OEMAKE = " -C ${STAGING_KERNEL_DIR} \ + KBUILD_VERBOSE=1 \ + KBUILD_EXTRA_SYMBOLS='${MTS_EXTRA_SYMBOLS}' \ + M=${S} \ + modules \ + " +EXTRA_OEMAKE_mtcdt = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ + -D SAM9G25'" +EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ + -D TI43X'" + + +do_compile () { + bbnote make "$@" + make "$@" + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + +PACKAGES = "kernel-module-${PN}" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_pulse.ko" + +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}/mtac_pulse.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3