From ca828d85f5d107fd81936167a39f0a556b534648 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 16 Feb 2022 17:44:11 -0600 Subject: New 4.8.4 mts-io for new device tree and overlay 1.2.0 --- recipes-bsp/multitech/mt-dt-overlay_1.1.2.bb | 96 ---------------------------- recipes-bsp/multitech/mt-dt-overlay_1.2.0.bb | 96 ++++++++++++++++++++++++++++ recipes-bsp/multitech/mts-io.inc | 3 +- recipes-bsp/multitech/mts-io_4.8.4.bb | 2 - recipes-bsp/multitech/mts-io_4.9.0.bb | 2 + 5 files changed, 100 insertions(+), 99 deletions(-) delete mode 100644 recipes-bsp/multitech/mt-dt-overlay_1.1.2.bb create mode 100644 recipes-bsp/multitech/mt-dt-overlay_1.2.0.bb delete mode 100644 recipes-bsp/multitech/mts-io_4.8.4.bb create mode 100644 recipes-bsp/multitech/mts-io_4.9.0.bb diff --git a/recipes-bsp/multitech/mt-dt-overlay_1.1.2.bb b/recipes-bsp/multitech/mt-dt-overlay_1.1.2.bb deleted file mode 100644 index 98fb5e4..0000000 --- a/recipes-bsp/multitech/mt-dt-overlay_1.1.2.bb +++ /dev/null @@ -1,96 +0,0 @@ -DESCRIPTION = "Compile MT board device tree overlays" -LICENSE = "(GPLv2+)" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit update-rc.d -INITSCRIPT_NAME = "${PN}" -# mt-dt-overlay must start before mts-io -# because the gpio-leds driver will not load -# after mts-io. -INITSCRIPT_PARAMS = "start 39 S ." -DEPENDS = "dtc-native linux-at91" -RDEPENDS_${PN} = "bash" - - -COMPATIBLE_MACHINE = "(mtcap|mtrv1|mtcdt)" - -# By using an overlay, we should be able to support multiple pinouts -# using the same image. The overlays go into /lib/dtoverlays. -# There names are: [hw-version]-driver.dtbo -# e.g. /lib/dtoverlays/MTRV1-0.0-pps.dtbo -# The idea is that mts-io will search for the overlays, and install the -# appropriate device tree overlay for the current hw-version. - -dt_dir = "/lib/dtoverlays" - -PR = "r4" - -SRC_URI = " \ - git://git.multitech.net/mt-dt-overlay.git;protocol=git \ - file://init \ -" - -SRCREV = "${PV}" - -DEPENDS = "virtual/kernel u-boot-mkimage-native" - -S = "${WORKDIR}/git" - -do_compile[depends] += "virtual/kernel:do_deploy virtual/kernel:do_shared_workdir" -do_compile[nostamp] = "1" - -# Make sure we are using the Yocto version of DTC, not what is installed in /usr/bin -DTC_BIN_DIR = "${COMPONENTS_DIR}/x86_64/dtc-native/usr/bin" - -do_compile () { - echo MACHINE is ${MACHINE} - oe_runmake DTC=${DTC_BIN_DIR}/dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${MACHINE}_dtbos -} - -FILES_${PN} = "${dt_dir} ${sysconfdir}" - -addtask install after do_compile - -# The destination and any symlinks are defined in the source file. -# -# A line starting as follows " * Put: [destination]" in the source -# defines the destination file name for the device tree binaries. -# -# A line starting as follows " * Link: [destination]" defines a symlink -# to the device tree binary file. -# -do_install () { - install -d ${D}/${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/${PN} - # Copy files to /lib/dt-overlay/main (mtac cards will be in mtac) - if [ -e ${AT91BOOTSTRAP_MACHINE} ]; then - install -d ${D}/${dt_dir} - ( - cd ${MACHINE} - echo "Current directory is $(pwd)" - for f in *.dtbo ; do - s=$(basename -s .dtbo $f).dtso - location_ln=$(egrep '^[[:space:]]*\*[[:space:]]*Put:[[:space:]]*[^[:space:]]+' $s | sed -r 's/.*Put:[[:space:]]*//') - echo "Binary: $f Source: $s" - echo "Destination: $location_ln" - dirname=$(dirname $location_ln) - install -d ${D}/${dt_dir}/$dirname - install ${f} ${D}/${dt_dir}/$location_ln - links=$(egrep '^[[:space:]]*\*[[:space:]]*Link:[[:space:]]*[^[:space:]]+' $s | sed -r 's/.*Link:[[:space:]]*//') - echo "All Links: " - echo "$links" - echo "End links" - for l in $links ; do - ldirname=$(dirname $l) - if ! [ -d "${D}/$ldirname" ] ; then - install -d ${D}/${dt_dir}/$ldirname - fi - echo ln -sf ${dt_dir}/$dirname/$f ${D}/${dt_dir}/$l - ln -sf ${dt_dir}/$location_ln ${D}/${dt_dir}/$l - done - done - ) - fi -} - diff --git a/recipes-bsp/multitech/mt-dt-overlay_1.2.0.bb b/recipes-bsp/multitech/mt-dt-overlay_1.2.0.bb new file mode 100644 index 0000000..8062f53 --- /dev/null +++ b/recipes-bsp/multitech/mt-dt-overlay_1.2.0.bb @@ -0,0 +1,96 @@ +DESCRIPTION = "Compile MT board device tree overlays" +LICENSE = "(GPLv2+)" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit update-rc.d +INITSCRIPT_NAME = "${PN}" +# mt-dt-overlay must start before mts-io +# because the gpio-leds driver will not load +# after mts-io. +INITSCRIPT_PARAMS = "start 39 S ." +DEPENDS = "dtc-native linux-at91" +RDEPENDS_${PN} = "bash" + + +COMPATIBLE_MACHINE = "(mtcap|mtrv1|mtcdt)" + +# By using an overlay, we should be able to support multiple pinouts +# using the same image. The overlays go into /lib/dtoverlays. +# There names are: [hw-version]-driver.dtbo +# e.g. /lib/dtoverlays/MTRV1-0.0-pps.dtbo +# The idea is that mts-io will search for the overlays, and install the +# appropriate device tree overlay for the current hw-version. + +dt_dir = "/lib/dtoverlays" + +PR = "r1" + +SRC_URI = " \ + git://git.multitech.net/mt-dt-overlay.git;protocol=git \ + file://init \ +" + +SRCREV = "${PV}" + +DEPENDS = "virtual/kernel u-boot-mkimage-native" + +S = "${WORKDIR}/git" + +do_compile[depends] += "virtual/kernel:do_deploy virtual/kernel:do_shared_workdir" +do_compile[nostamp] = "1" + +# Make sure we are using the Yocto version of DTC, not what is installed in /usr/bin +DTC_BIN_DIR = "${COMPONENTS_DIR}/x86_64/dtc-native/usr/bin" + +do_compile () { + echo MACHINE is ${MACHINE} + oe_runmake DTC=${DTC_BIN_DIR}/dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${MACHINE}_dtbos +} + +FILES_${PN} = "${dt_dir} ${sysconfdir}" + +addtask install after do_compile + +# The destination and any symlinks are defined in the source file. +# +# A line starting as follows " * Put: [destination]" in the source +# defines the destination file name for the device tree binaries. +# +# A line starting as follows " * Link: [destination]" defines a symlink +# to the device tree binary file. +# +do_install () { + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/${PN} + # Copy files to /lib/dt-overlay/main (mtac cards will be in mtac) + if [ -e ${AT91BOOTSTRAP_MACHINE} ]; then + install -d ${D}/${dt_dir} + ( + cd ${MACHINE} + echo "Current directory is $(pwd)" + for f in *.dtbo ; do + s=$(basename -s .dtbo $f).dtso + location_ln=$(egrep '^[[:space:]]*\*[[:space:]]*Put:[[:space:]]*[^[:space:]]+' $s | sed -r 's/.*Put:[[:space:]]*//') + echo "Binary: $f Source: $s" + echo "Destination: $location_ln" + dirname=$(dirname $location_ln) + install -d ${D}/${dt_dir}/$dirname + install ${f} ${D}/${dt_dir}/$location_ln + links=$(egrep '^[[:space:]]*\*[[:space:]]*Link:[[:space:]]*[^[:space:]]+' $s | sed -r 's/.*Link:[[:space:]]*//') + echo "All Links: " + echo "$links" + echo "End links" + for l in $links ; do + ldirname=$(dirname $l) + if ! [ -d "${D}/$ldirname" ] ; then + install -d ${D}/${dt_dir}/$ldirname + fi + echo ln -sf ${dt_dir}/$dirname/$f ${D}/${dt_dir}/$l + ln -sf ${dt_dir}/$location_ln ${D}/${dt_dir}/$l + done + done + ) + fi +} + diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc index d810d32..93b9a10 100644 --- a/recipes-bsp/multitech/mts-io.inc +++ b/recipes-bsp/multitech/mts-io.inc @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://io-module/COPYING;md5=94d55d512a9ba36caa9b7df079bae19 file://io-tool/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ " do_fetch[depends] += "virtual/kernel:do_shared_workdir" -INC_PR = "r2" +INC_PR = "r1" SRCREV = "${PV}" PR = "${INC_PR}.0" @@ -18,6 +18,7 @@ RPROVIDES_kernel-module-${PN} = "mts-io" RDEPENDS_${PN}-noarch_append = " mts-io-sysfs" RDEPENDS_${PN}-noarch_append_mtcap = " mts-io-sysfs i2c-tools" + SRC_URI = " \ git://git.multitech.net/mts-io.git;protocol=git \ file://led-status_heartbeat_trigger \ diff --git a/recipes-bsp/multitech/mts-io_4.8.4.bb b/recipes-bsp/multitech/mts-io_4.8.4.bb deleted file mode 100644 index ee4fcfa..0000000 --- a/recipes-bsp/multitech/mts-io_4.8.4.bb +++ /dev/null @@ -1,2 +0,0 @@ -require mts-io.inc - diff --git a/recipes-bsp/multitech/mts-io_4.9.0.bb b/recipes-bsp/multitech/mts-io_4.9.0.bb new file mode 100644 index 0000000..ee4fcfa --- /dev/null +++ b/recipes-bsp/multitech/mts-io_4.9.0.bb @@ -0,0 +1,2 @@ +require mts-io.inc + -- cgit v1.2.3 From d81cd86a617bbb768d2eaea7375b2c2cb010fb6c Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 18 Feb 2022 17:17:48 -0600 Subject: Convert mtac driver to use gpio descriptors --- recipes-bsp/multitech/mtac_4.1.2.bb | 66 ------------------------------------- recipes-bsp/multitech/mtac_4.1.3.bb | 66 +++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac_4.1.2.bb create mode 100644 recipes-bsp/multitech/mtac_4.1.3.bb diff --git a/recipes-bsp/multitech/mtac_4.1.2.bb b/recipes-bsp/multitech/mtac_4.1.2.bb deleted file mode 100644 index 49b97a7..0000000 --- a/recipes-bsp/multitech/mtac_4.1.2.bb +++ /dev/null @@ -1,66 +0,0 @@ -DESCRIPTION = "mtac drivers" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -do_fetch[depends]+="virtual/kernel:do_shared_workdir" -DEPENDS = "virtual/kernel mts-io" -INC_PR = "r0" -COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" - -SRCREV = "${AUTOREV}" - -# Some packages depend on mtac -RPROVIDES_kernel-module-${PN} = "mtac" - -PR = "${INC_PR}.1" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac.git;protocol=git;branch=master \ -" -S = "${WORKDIR}/git" - -inherit module - -MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/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 ${MACHINE}'" -EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ - -D ${MACHINE} -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" - -do_compile () { - bbnote make "$@" - make "$@" - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -} - -PACKAGES = "kernel-module-${PN} ${PN}-dev" - -FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.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.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra - - install -Dm0644 ${S}/Module.symvers ${D}${includedir}/${BPN}/Module.symvers - - install -d ${D}${includedir}/mts-kernel-headers/linux - install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux - cp ${S}/machine/* ${D}${includedir}/mts-kernel-headers/linux - chmod -R 0644 ${D}${includedir}/mts-kernel-headers/linux -} diff --git a/recipes-bsp/multitech/mtac_4.1.3.bb b/recipes-bsp/multitech/mtac_4.1.3.bb new file mode 100644 index 0000000..49b97a7 --- /dev/null +++ b/recipes-bsp/multitech/mtac_4.1.3.bb @@ -0,0 +1,66 @@ +DESCRIPTION = "mtac drivers" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +do_fetch[depends]+="virtual/kernel:do_shared_workdir" +DEPENDS = "virtual/kernel mts-io" +INC_PR = "r0" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${AUTOREV}" + +# Some packages depend on mtac +RPROVIDES_kernel-module-${PN} = "mtac" + +PR = "${INC_PR}.1" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac.git;protocol=git;branch=master \ +" +S = "${WORKDIR}/git" + +inherit module + +MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/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 ${MACHINE}'" +EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ + -D ${MACHINE} -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" + +do_compile () { + bbnote make "$@" + make "$@" + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + +PACKAGES = "kernel-module-${PN} ${PN}-dev" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.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.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + + install -Dm0644 ${S}/Module.symvers ${D}${includedir}/${BPN}/Module.symvers + + install -d ${D}${includedir}/mts-kernel-headers/linux + install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux + cp ${S}/machine/* ${D}${includedir}/mts-kernel-headers/linux + chmod -R 0644 ${D}${includedir}/mts-kernel-headers/linux +} -- cgit v1.2.3 From 059712b8c72b116f054d1cb0a4439f534ca74d5c Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 18 Feb 2022 18:34:12 -0600 Subject: Prevent waiting for the supercap when the EEPROM is not written --- recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init index f8e611f..7b444a1 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init @@ -107,6 +107,10 @@ gettime() { echo ${BASH_REMATCH[1]} } wait_for_supercap() { + if ! [[ -f ${sysdir}/capability/supercap ]] ; then + # Driver not loaded, maybe EEPROM not set + return + fi supercap=$(mts-io-sysfs show capability/supercap 2>/dev/null) if ((supercap != 1)) ; then return -- cgit v1.2.3 From 377557f169d5937d9ac2498b82887df90f06ed20 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 18 Feb 2022 18:36:26 -0600 Subject: version 2.0 mtac-mfser is based on version 1.1.1 --- recipes-bsp/multitech/mtac-mfser_1.2.0.bb | 58 ------------------------------- recipes-bsp/multitech/mtac-mfser_2.0.0.bb | 58 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-mfser_1.2.0.bb create mode 100644 recipes-bsp/multitech/mtac-mfser_2.0.0.bb diff --git a/recipes-bsp/multitech/mtac-mfser_1.2.0.bb b/recipes-bsp/multitech/mtac-mfser_1.2.0.bb deleted file mode 100644 index 4598beb..0000000 --- a/recipes-bsp/multitech/mtac-mfser_1.2.0.bb +++ /dev/null @@ -1,58 +0,0 @@ -DESCRIPTION = "MTAC Multi-Function Serial Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-mfser/" -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 = "r2" -COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" - -SRCREV = "${PV}" - -PR = "${INC_PR}.1" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac-mfser.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_mfser.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_mfser.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-mfser_2.0.0.bb b/recipes-bsp/multitech/mtac-mfser_2.0.0.bb new file mode 100644 index 0000000..4598beb --- /dev/null +++ b/recipes-bsp/multitech/mtac-mfser_2.0.0.bb @@ -0,0 +1,58 @@ +DESCRIPTION = "MTAC Multi-Function Serial Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-mfser/" +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 = "r2" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${PV}" + +PR = "${INC_PR}.1" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac-mfser.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_mfser.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_mfser.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3 From 59bb64c05292cd9630b55f7fdd1ba29101a585bc Mon Sep 17 00:00:00 2001 From: sharma-mts <86847754+sharma-mts@users.noreply.github.com> Date: Thu, 24 Feb 2022 13:49:45 -0600 Subject: Updated mts-io-sysfs and mtac-lora tags --- recipes-bsp/multitech/mtac-lora_1.1.10.bb | 59 ++++++++++++++++++++++++++++ recipes-bsp/multitech/mtac-lora_1.1.9.bb | 59 ---------------------------- recipes-bsp/multitech/mts-io-sysfs_0.1.19.bb | 49 ----------------------- recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb | 49 +++++++++++++++++++++++ 4 files changed, 108 insertions(+), 108 deletions(-) create mode 100644 recipes-bsp/multitech/mtac-lora_1.1.10.bb delete mode 100644 recipes-bsp/multitech/mtac-lora_1.1.9.bb delete mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.19.bb create mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb diff --git a/recipes-bsp/multitech/mtac-lora_1.1.10.bb b/recipes-bsp/multitech/mtac-lora_1.1.10.bb new file mode 100644 index 0000000..447eb6e --- /dev/null +++ b/recipes-bsp/multitech/mtac-lora_1.1.10.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "MTAC LoRa Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" +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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} diff --git a/recipes-bsp/multitech/mtac-lora_1.1.9.bb b/recipes-bsp/multitech/mtac-lora_1.1.9.bb deleted file mode 100644 index 447eb6e..0000000 --- a/recipes-bsp/multitech/mtac-lora_1.1.9.bb +++ /dev/null @@ -1,59 +0,0 @@ -DESCRIPTION = "MTAC LoRa Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" -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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.19.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.19.bb deleted file mode 100644 index 23c8963..0000000 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.19.bb +++ /dev/null @@ -1,49 +0,0 @@ -DESCRIPTION = "mts-io sysfs wrapper" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -inherit update-rc.d - -DEPENDS = "libmts" -RDEPENDS_${PN} = "bash" -PR = "r1" - -SRCREV = "${PV}" - -SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ - file://mts-io-sysfs.init" - -S = "${WORKDIR}/git" - -do_configure_append() { -} - -do_compile() { - oe_runmake -} - - -fakeroot do_install() { - install -d ${D}${sbindir} - install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs - install -d 0755 ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config -} - - -INITSCRIPT_NAME = "eeprom-config" -# Must start after MTS-IO to read the accessory cards. -INITSCRIPT_PARAMS = "start 40 S ." - - -PACKAGES = "${PN}" - -FILES_${PN} += "${libdir}/mts-io-sysfs*" -FILES_${PN} += "${sbindir}/mts-io-sysfs" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb new file mode 100644 index 0000000..23c8963 --- /dev/null +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb @@ -0,0 +1,49 @@ +DESCRIPTION = "mts-io sysfs wrapper" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +inherit update-rc.d + +DEPENDS = "libmts" +RDEPENDS_${PN} = "bash" +PR = "r1" + +SRCREV = "${PV}" + +SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ + file://mts-io-sysfs.init" + +S = "${WORKDIR}/git" + +do_configure_append() { +} + +do_compile() { + oe_runmake +} + + +fakeroot do_install() { + install -d ${D}${sbindir} + install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs + install -d 0755 ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config +} + + +INITSCRIPT_NAME = "eeprom-config" +# Must start after MTS-IO to read the accessory cards. +INITSCRIPT_PARAMS = "start 40 S ." + + +PACKAGES = "${PN}" + +FILES_${PN} += "${libdir}/mts-io-sysfs*" +FILES_${PN} += "${sbindir}/mts-io-sysfs" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} -- cgit v1.2.3 From 3aa6fa307425933c3e73ffa713f58cb60650ccc4 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 24 Feb 2022 14:23:55 -0600 Subject: MTAC-GPIOB and LoRa overlays --- recipes-bsp/multitech/mt-dt-overlay/init | 63 +++++++++++++++++++------------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/recipes-bsp/multitech/mt-dt-overlay/init b/recipes-bsp/multitech/mt-dt-overlay/init index 00af9f8..4c82e12 100755 --- a/recipes-bsp/multitech/mt-dt-overlay/init +++ b/recipes-bsp/multitech/mt-dt-overlay/init @@ -5,41 +5,54 @@ # device tree. sysdir=/sys/devices/platform/mts-io -i2c=/sys/bus/i2c/devices/ -eepromPath="/sys/bus/i2c/devices/0-0056/eeprom" +I2CDIR="/sys/bus/i2c/devices" +eepromPath="${I2CDIR}/0-0056/eeprom" DEVTREE="/sys/kernel/config/device-tree/overlays/" SYSFS="/usr/sbin/mts-io-sysfs" -I2CDIR="/sys/bus/i2c/devices" -AP1_EEPROM=$I2CDIR"/1-0050/eeprom" -AP2_EEPROM=$I2CDIR"/1-0052/eeprom" +AP1_EEPROM=${I2CDIR}"/1-0050/eeprom" +AP2_EEPROM=${I2CDIR}"/1-0052/eeprom" + +install_all_dtbo() { + for f in *.dtbo ; do + if ! [[ -f $f ]] ; then + continue + fi + # f2 is the extracted device name + base=$(basename $f .dtbo) + /bin/mkdir ${DEVTREE}/$base || true + /bin/cat $f >${DEVTREE}/$base/dtbo + done +} install_dtbo_dir() { if ! [[ -d ${DEVTREE} ]] ; then mount configfs fi - if ([ -f "$AP1_EEPROM" ] && grep -q GPIOB "$AP1_EEPROM") || ([ -f "$AP2_EEPROM" ] && grep -q GPIOB "$AP2_EEPROM"); then - for f in *gpiob.dtbo ; do - if ! [[ -f $f ]] ; then - continue - fi - # f2 is the extracted device name - base=$(basename $f .dtbo) - /bin/mkdir ${DEVTREE}/$base || true - /bin/cat $f >${DEVTREE}/$base/dtbo - done - modprobe mt_ac_gpiob + install_all_dtbo + gpiob1=0 + gpiob2=0 + if [[ -f $AP1_EEPROM ]] ; then + eeprom1=$(mts-id-eeprom --accessory-card --in-file "$AP1_EEPROM" 2>/dev/null) + if [[ $eeprom1 =~ [[:space:]]hw-version:[[:space:]]*\"MTAC-GPIOB- ]] ; then + gpiob1=1 + fi + fi + if [[ -f $AP2_EEPROM ]] ; then + eeprom2=$(mts-id-eeprom --accessory-card --in-file "$AP2_EEPROM" 2>/dev/null) + if [[ $eeprom2 =~ [[:space:]]hw-version:[[:space:]]*\"MTAC-GPIOB- ]] ; then + gpiob2=1 + fi + fi + + if ((gpiob1 == 1)) || ((gpiob2 == 1)) ; then + /usr/bin/logger -t "mts-io" -p daemon.info -s 'Loading MTAC-GPIOB Device Tree' + cd gpiob else - for f in *.dtbo ; do - if ! [[ -f $f ]] ; then - continue - fi - # f2 is the extracted device name - base=$(basename $f .dtbo) - /bin/mkdir ${DEVTREE}/$base || true - /bin/cat $f >${DEVTREE}/$base/dtbo - done + /usr/bin/logger -t "mts-io" -p daemon.info -s 'Loading standard SPI Device Tree' + cd lora fi + install_all_dtbo } # Device tree format: -- cgit v1.2.3 From 326c4373cfd26e4438fa67a56df9fcadb1195d6f Mon Sep 17 00:00:00 2001 From: sharma-mts <86847754+sharma-mts@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:41:03 -0600 Subject: Added openssl to mts-io-sysfs --- recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb index 23c8963..e341fc6 100644 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" inherit update-rc.d DEPENDS = "libmts" -RDEPENDS_${PN} = "bash" +RDEPENDS_${PN} = "bash openssl" PR = "r1" SRCREV = "${PV}" -- cgit v1.2.3 From 08a66f75c9ef465c97f547d2dec76b2df1f09b7c Mon Sep 17 00:00:00 2001 From: sharma-mts <86847754+sharma-mts@users.noreply.github.com> Date: Thu, 24 Feb 2022 15:04:36 -0600 Subject: Moved mts-io-sysfs openssl to depends --- recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb index e341fc6..acdc0e1 100644 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb @@ -6,8 +6,8 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" inherit update-rc.d -DEPENDS = "libmts" -RDEPENDS_${PN} = "bash openssl" +DEPENDS = "libmts openssl" +RDEPENDS_${PN} = "bash" PR = "r1" SRCREV = "${PV}" -- cgit v1.2.3 From e161af1e2231599997af43ca06bd27c835a38377 Mon Sep 17 00:00:00 2001 From: sharma-mts <86847754+sharma-mts@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:49:02 -0600 Subject: Updated mtac lora tag --- recipes-bsp/multitech/mtac-lora_1.1.10.bb | 59 ------------------------------- recipes-bsp/multitech/mtac-lora_1.1.11.bb | 59 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-lora_1.1.10.bb create mode 100644 recipes-bsp/multitech/mtac-lora_1.1.11.bb diff --git a/recipes-bsp/multitech/mtac-lora_1.1.10.bb b/recipes-bsp/multitech/mtac-lora_1.1.10.bb deleted file mode 100644 index 447eb6e..0000000 --- a/recipes-bsp/multitech/mtac-lora_1.1.10.bb +++ /dev/null @@ -1,59 +0,0 @@ -DESCRIPTION = "MTAC LoRa Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" -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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-lora_1.1.11.bb b/recipes-bsp/multitech/mtac-lora_1.1.11.bb new file mode 100644 index 0000000..447eb6e --- /dev/null +++ b/recipes-bsp/multitech/mtac-lora_1.1.11.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "MTAC LoRa Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" +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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3 From f9a658e9ff6d9a6ef5496bc6b40ca9e861f2ba7a Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 24 Feb 2022 17:40:40 -0600 Subject: Allow creation of mts-io-sysfs-dbg to remove warnings from build --- recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb | 3 --- 1 file changed, 3 deletions(-) diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb index acdc0e1..fac4b17 100644 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb @@ -37,9 +37,6 @@ INITSCRIPT_NAME = "eeprom-config" # Must start after MTS-IO to read the accessory cards. INITSCRIPT_PARAMS = "start 40 S ." - -PACKAGES = "${PN}" - FILES_${PN} += "${libdir}/mts-io-sysfs*" FILES_${PN} += "${sbindir}/mts-io-sysfs" -- cgit v1.2.3 From fff0d81b42d21a90de76d2c784d1e3fd8e3dae8f Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Fri, 25 Feb 2022 15:01:28 -0600 Subject: Updates mts-io-sysfs tag --- recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb | 46 ---------------------------- recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb | 46 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb create mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb deleted file mode 100644 index fac4b17..0000000 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb +++ /dev/null @@ -1,46 +0,0 @@ -DESCRIPTION = "mts-io sysfs wrapper" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -inherit update-rc.d - -DEPENDS = "libmts openssl" -RDEPENDS_${PN} = "bash" -PR = "r1" - -SRCREV = "${PV}" - -SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ - file://mts-io-sysfs.init" - -S = "${WORKDIR}/git" - -do_configure_append() { -} - -do_compile() { - oe_runmake -} - - -fakeroot do_install() { - install -d ${D}${sbindir} - install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs - install -d 0755 ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config -} - - -INITSCRIPT_NAME = "eeprom-config" -# Must start after MTS-IO to read the accessory cards. -INITSCRIPT_PARAMS = "start 40 S ." - -FILES_${PN} += "${libdir}/mts-io-sysfs*" -FILES_${PN} += "${sbindir}/mts-io-sysfs" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb new file mode 100644 index 0000000..fac4b17 --- /dev/null +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "mts-io sysfs wrapper" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +inherit update-rc.d + +DEPENDS = "libmts openssl" +RDEPENDS_${PN} = "bash" +PR = "r1" + +SRCREV = "${PV}" + +SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ + file://mts-io-sysfs.init" + +S = "${WORKDIR}/git" + +do_configure_append() { +} + +do_compile() { + oe_runmake +} + + +fakeroot do_install() { + install -d ${D}${sbindir} + install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs + install -d 0755 ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config +} + + +INITSCRIPT_NAME = "eeprom-config" +# Must start after MTS-IO to read the accessory cards. +INITSCRIPT_PARAMS = "start 40 S ." + +FILES_${PN} += "${libdir}/mts-io-sysfs*" +FILES_${PN} += "${sbindir}/mts-io-sysfs" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} -- cgit v1.2.3 From 75097445a5b8d36b79770efd3da9d734554099e3 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 25 Feb 2022 17:18:16 -0600 Subject: Move MTAC-GPIOB to GPIO descriptor library in the kernel --- recipes-bsp/multitech/mtac-gpiob_1.3.0.bb | 57 ------------------------------- recipes-bsp/multitech/mtac-gpiob_2.0.0.bb | 57 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-gpiob_1.3.0.bb create mode 100644 recipes-bsp/multitech/mtac-gpiob_2.0.0.bb diff --git a/recipes-bsp/multitech/mtac-gpiob_1.3.0.bb b/recipes-bsp/multitech/mtac-gpiob_1.3.0.bb deleted file mode 100644 index 17a4962..0000000 --- a/recipes-bsp/multitech/mtac-gpiob_1.3.0.bb +++ /dev/null @@ -1,57 +0,0 @@ -DESCRIPTION = "MTAC GPIOB Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-gpiob/" -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}.2" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac-gpiob.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 -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" - -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_gpiob.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_gpiob.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-gpiob_2.0.0.bb b/recipes-bsp/multitech/mtac-gpiob_2.0.0.bb new file mode 100644 index 0000000..17a4962 --- /dev/null +++ b/recipes-bsp/multitech/mtac-gpiob_2.0.0.bb @@ -0,0 +1,57 @@ +DESCRIPTION = "MTAC GPIOB Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-gpiob/" +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}.2" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac-gpiob.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 -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" + +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_gpiob.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_gpiob.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3 From c4d813ba312e2ea4f278e8ed1289b9fa8a8ebeb4 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 28 Feb 2022 09:47:36 -0600 Subject: Move MTAC-ETH to GPIO descriptor library in the kernel --- recipes-bsp/multitech/mtac-eth_1.1.1.bb | 58 --------------------------------- recipes-bsp/multitech/mtac-eth_2.0.0.bb | 58 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-eth_1.1.1.bb create mode 100644 recipes-bsp/multitech/mtac-eth_2.0.0.bb diff --git a/recipes-bsp/multitech/mtac-eth_1.1.1.bb b/recipes-bsp/multitech/mtac-eth_1.1.1.bb deleted file mode 100644 index b833f75..0000000 --- a/recipes-bsp/multitech/mtac-eth_1.1.1.bb +++ /dev/null @@ -1,58 +0,0 @@ -DESCRIPTION = "MTAC ETH (Ethernet) Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-eth/" -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-eth.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_eth.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_eth.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-eth_2.0.0.bb b/recipes-bsp/multitech/mtac-eth_2.0.0.bb new file mode 100644 index 0000000..b833f75 --- /dev/null +++ b/recipes-bsp/multitech/mtac-eth_2.0.0.bb @@ -0,0 +1,58 @@ +DESCRIPTION = "MTAC ETH (Ethernet) Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-eth/" +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-eth.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_eth.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_eth.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3 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 From 5b0f77f9273023a72bbd3a1d9cb93278606d2d1f Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Tue, 1 Mar 2022 10:30:21 -0600 Subject: Updated mtac and mts-io-sysfs tags --- recipes-bsp/multitech/mtac_4.1.3.bb | 66 ---------------------------- recipes-bsp/multitech/mtac_4.1.4.bb | 66 ++++++++++++++++++++++++++++ recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb | 46 ------------------- recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb | 46 +++++++++++++++++++ 4 files changed, 112 insertions(+), 112 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac_4.1.3.bb create mode 100644 recipes-bsp/multitech/mtac_4.1.4.bb delete mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb create mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb diff --git a/recipes-bsp/multitech/mtac_4.1.3.bb b/recipes-bsp/multitech/mtac_4.1.3.bb deleted file mode 100644 index 49b97a7..0000000 --- a/recipes-bsp/multitech/mtac_4.1.3.bb +++ /dev/null @@ -1,66 +0,0 @@ -DESCRIPTION = "mtac drivers" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -do_fetch[depends]+="virtual/kernel:do_shared_workdir" -DEPENDS = "virtual/kernel mts-io" -INC_PR = "r0" -COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" - -SRCREV = "${AUTOREV}" - -# Some packages depend on mtac -RPROVIDES_kernel-module-${PN} = "mtac" - -PR = "${INC_PR}.1" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac.git;protocol=git;branch=master \ -" -S = "${WORKDIR}/git" - -inherit module - -MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/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 ${MACHINE}'" -EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ - -D ${MACHINE} -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" - -do_compile () { - bbnote make "$@" - make "$@" - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -} - -PACKAGES = "kernel-module-${PN} ${PN}-dev" - -FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.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.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra - - install -Dm0644 ${S}/Module.symvers ${D}${includedir}/${BPN}/Module.symvers - - install -d ${D}${includedir}/mts-kernel-headers/linux - install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux - cp ${S}/machine/* ${D}${includedir}/mts-kernel-headers/linux - chmod -R 0644 ${D}${includedir}/mts-kernel-headers/linux -} diff --git a/recipes-bsp/multitech/mtac_4.1.4.bb b/recipes-bsp/multitech/mtac_4.1.4.bb new file mode 100644 index 0000000..49b97a7 --- /dev/null +++ b/recipes-bsp/multitech/mtac_4.1.4.bb @@ -0,0 +1,66 @@ +DESCRIPTION = "mtac drivers" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +do_fetch[depends]+="virtual/kernel:do_shared_workdir" +DEPENDS = "virtual/kernel mts-io" +INC_PR = "r0" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${AUTOREV}" + +# Some packages depend on mtac +RPROVIDES_kernel-module-${PN} = "mtac" + +PR = "${INC_PR}.1" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac.git;protocol=git;branch=master \ +" +S = "${WORKDIR}/git" + +inherit module + +MTS_EXTRA_SYMBOLS="${STAGING_INCDIR}/mts-io/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 ${MACHINE}'" +EXTRA_OEMAKE_mtcpmhs = "${COMMON_OEMAKE} EXTRA_CFLAGS='-I${STAGING_INCDIR}/mts-kernel-headers \ + -D ${MACHINE} -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" + +do_compile () { + bbnote make "$@" + make "$@" + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + +PACKAGES = "kernel-module-${PN} ${PN}-dev" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac.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.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + + install -Dm0644 ${S}/Module.symvers ${D}${includedir}/${BPN}/Module.symvers + + install -d ${D}${includedir}/mts-kernel-headers/linux + install -m 0644 ${S}/mtac.h ${D}${includedir}/mts-kernel-headers/linux + cp ${S}/machine/* ${D}${includedir}/mts-kernel-headers/linux + chmod -R 0644 ${D}${includedir}/mts-kernel-headers/linux +} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb deleted file mode 100644 index fac4b17..0000000 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.27.bb +++ /dev/null @@ -1,46 +0,0 @@ -DESCRIPTION = "mts-io sysfs wrapper" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -inherit update-rc.d - -DEPENDS = "libmts openssl" -RDEPENDS_${PN} = "bash" -PR = "r1" - -SRCREV = "${PV}" - -SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ - file://mts-io-sysfs.init" - -S = "${WORKDIR}/git" - -do_configure_append() { -} - -do_compile() { - oe_runmake -} - - -fakeroot do_install() { - install -d ${D}${sbindir} - install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs - install -d 0755 ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config -} - - -INITSCRIPT_NAME = "eeprom-config" -# Must start after MTS-IO to read the accessory cards. -INITSCRIPT_PARAMS = "start 40 S ." - -FILES_${PN} += "${libdir}/mts-io-sysfs*" -FILES_${PN} += "${sbindir}/mts-io-sysfs" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb new file mode 100644 index 0000000..fac4b17 --- /dev/null +++ b/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "mts-io sysfs wrapper" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +inherit update-rc.d + +DEPENDS = "libmts openssl" +RDEPENDS_${PN} = "bash" +PR = "r1" + +SRCREV = "${PV}" + +SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ + file://mts-io-sysfs.init" + +S = "${WORKDIR}/git" + +do_configure_append() { +} + +do_compile() { + oe_runmake +} + + +fakeroot do_install() { + install -d ${D}${sbindir} + install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs + install -d 0755 ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config +} + + +INITSCRIPT_NAME = "eeprom-config" +# Must start after MTS-IO to read the accessory cards. +INITSCRIPT_PARAMS = "start 40 S ." + +FILES_${PN} += "${libdir}/mts-io-sysfs*" +FILES_${PN} += "${sbindir}/mts-io-sysfs" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} -- cgit v1.2.3 From 90eb993c7478bd5769a724acacdd9ce17750a43c Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 2 Mar 2022 15:19:39 -0600 Subject: Use gpiod library in mtac-xdot --- recipes-bsp/multitech/mtac-xdot_1.1.1.bb | 66 -------------------------------- recipes-bsp/multitech/mtac-xdot_2.0.0.bb | 66 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-xdot_1.1.1.bb create mode 100644 recipes-bsp/multitech/mtac-xdot_2.0.0.bb diff --git a/recipes-bsp/multitech/mtac-xdot_1.1.1.bb b/recipes-bsp/multitech/mtac-xdot_1.1.1.bb deleted file mode 100644 index dc12bba..0000000 --- a/recipes-bsp/multitech/mtac-xdot_1.1.1.bb +++ /dev/null @@ -1,66 +0,0 @@ -DESCRIPTION = "MTAC XDOT (LoRa) Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-xdot/" -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 = "r3" -COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" - -SRCREV = "${PV}" - -PR = "${INC_PR}.1" - -PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" - -SRC_URI = " \ - git://git.multitech.net/mtac-xdot.git;protocol=git;branch=master \ - file://xdot-util \ -" -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 -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" - - -do_compile () { - bbnote make "$@" - make "$@" - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - oe_runmake -} - - -PACKAGES = "kernel-module-${PN} ${PN}-util" - -FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_xdot.ko" - -FILES_${PN}-util += "${sbindir}/xdot-util" - -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_xdot.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra - - install -m 0755 -d ${D}${sbindir} - install -m 0755 ${WORKDIR}/xdot-util ${D}${sbindir}/xdot-util -} diff --git a/recipes-bsp/multitech/mtac-xdot_2.0.0.bb b/recipes-bsp/multitech/mtac-xdot_2.0.0.bb new file mode 100644 index 0000000..dc12bba --- /dev/null +++ b/recipes-bsp/multitech/mtac-xdot_2.0.0.bb @@ -0,0 +1,66 @@ +DESCRIPTION = "MTAC XDOT (LoRa) Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-xdot/" +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 = "r3" +COMPATIBLE_MACHINE = "(mtcdt|mtcpmhs)" + +SRCREV = "${PV}" + +PR = "${INC_PR}.1" + +PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" + +SRC_URI = " \ + git://git.multitech.net/mtac-xdot.git;protocol=git;branch=master \ + file://xdot-util \ +" +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 -D CONFIG_MTS_NUM_ACCESSORY_PORTS=2'" + + +do_compile () { + bbnote make "$@" + make "$@" + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + + +PACKAGES = "kernel-module-${PN} ${PN}-util" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/mtac_xdot.ko" + +FILES_${PN}-util += "${sbindir}/xdot-util" + +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_xdot.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + + install -m 0755 -d ${D}${sbindir} + install -m 0755 ${WORKDIR}/xdot-util ${D}${sbindir}/xdot-util +} -- cgit v1.2.3 From 409a22951841008c8b20ce101c445e979d850e2e Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Thu, 3 Mar 2022 10:06:12 -0600 Subject: Updated mtac lora tag --- recipes-bsp/multitech/mtac-lora_1.1.11.bb | 59 ------------------------------- recipes-bsp/multitech/mtac-lora_1.1.12.bb | 59 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 recipes-bsp/multitech/mtac-lora_1.1.11.bb create mode 100644 recipes-bsp/multitech/mtac-lora_1.1.12.bb diff --git a/recipes-bsp/multitech/mtac-lora_1.1.11.bb b/recipes-bsp/multitech/mtac-lora_1.1.11.bb deleted file mode 100644 index 447eb6e..0000000 --- a/recipes-bsp/multitech/mtac-lora_1.1.11.bb +++ /dev/null @@ -1,59 +0,0 @@ -DESCRIPTION = "MTAC LoRa Card" -HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" -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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra -} diff --git a/recipes-bsp/multitech/mtac-lora_1.1.12.bb b/recipes-bsp/multitech/mtac-lora_1.1.12.bb new file mode 100644 index 0000000..447eb6e --- /dev/null +++ b/recipes-bsp/multitech/mtac-lora_1.1.12.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "MTAC LoRa Card" +HOMEPAGE = "http://www.multitech.net/developer/products/multiconnect-conduit-platform/accessory-cards/mtac-lora/" +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@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;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_lora.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_lora.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra +} -- cgit v1.2.3 From 2000a04054bebf674357de12365853b58ec9137e Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Thu, 3 Mar 2022 15:43:45 -0600 Subject: Updated mts-io, mts-io-syfs tags and changed src_uri to git.multitech --- recipes-bsp/multitech/mtac-lora_1.1.12.bb | 2 +- recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb | 46 ---------------------------- recipes-bsp/multitech/mts-io-sysfs_0.2.0.bb | 46 ++++++++++++++++++++++++++++ recipes-bsp/multitech/mts-io_4.9.0.bb | 2 -- recipes-bsp/multitech/mts-io_4.9.1.bb | 2 ++ 5 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb create mode 100644 recipes-bsp/multitech/mts-io-sysfs_0.2.0.bb delete mode 100644 recipes-bsp/multitech/mts-io_4.9.0.bb create mode 100644 recipes-bsp/multitech/mts-io_4.9.1.bb diff --git a/recipes-bsp/multitech/mtac-lora_1.1.12.bb b/recipes-bsp/multitech/mtac-lora_1.1.12.bb index 447eb6e..49e658f 100644 --- a/recipes-bsp/multitech/mtac-lora_1.1.12.bb +++ b/recipes-bsp/multitech/mtac-lora_1.1.12.bb @@ -17,7 +17,7 @@ PR = "${INC_PR}.1" PKGR = "${PR}${KERNEL_MODULE_PACKAGE_SUFFIX}${EXTENDPRAUTO}" SRC_URI = " \ - git://git@gitlab.multitech.net/mirrors/mtac-lora;protocol=ssh;branch=master \ + git://git.multitech.net/mtac-lora.git;protocol=git;branch=master \ " S = "${WORKDIR}/git" diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb b/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb deleted file mode 100644 index fac4b17..0000000 --- a/recipes-bsp/multitech/mts-io-sysfs_0.1.28.bb +++ /dev/null @@ -1,46 +0,0 @@ -DESCRIPTION = "mts-io sysfs wrapper" -HOMEPAGE = "http://www.multitech.net/" -SECTION = "base" -PRIORITY = "optional" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -inherit update-rc.d - -DEPENDS = "libmts openssl" -RDEPENDS_${PN} = "bash" -PR = "r1" - -SRCREV = "${PV}" - -SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \ - file://mts-io-sysfs.init" - -S = "${WORKDIR}/git" - -do_configure_append() { -} - -do_compile() { - oe_runmake -} - - -fakeroot do_install() { - install -d ${D}${sbindir} - install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs - install -d 0755 ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config -} - - -INITSCRIPT_NAME = "eeprom-config" -# Must start after MTS-IO to read the accessory cards. -INITSCRIPT_PARAMS = "start 40 S ." - -FILES_${PN} += "${libdir}/mts-io-sysfs*" -FILES_${PN} += "${sbindir}/mts-io-sysfs" - -# disable this on purpose for dev purposes -do_rm_work() { - echo "skipping" -} diff --git a/recipes-bsp/multitech/mts-io-sysfs_0.2.0.bb b/recipes-bsp/multitech/mts-io-sysfs_0.2.0.bb new file mode 100644 index 0000000..a489468 --- /dev/null +++ b/recipes-bsp/multitech/mts-io-sysfs_0.2.0.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "mts-io sysfs wrapper" +HOMEPAGE = "http://www.multitech.net/" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +inherit update-rc.d + +DEPENDS = "libmts openssl" +RDEPENDS_${PN} = "bash" +PR = "r1" + +SRCREV = "${PV}" + +SRC_URI = "git://git.multitech.net/mts-io-sysfs.git;protocol=git;branch=master \ + file://mts-io-sysfs.init" + +S = "${WORKDIR}/git" + +do_configure_append() { +} + +do_compile() { + oe_runmake +} + + +fakeroot do_install() { + install -d ${D}${sbindir} + install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs + install -d 0755 ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/mts-io-sysfs.init ${D}${sysconfdir}/init.d/eeprom-config +} + + +INITSCRIPT_NAME = "eeprom-config" +# Must start after MTS-IO to read the accessory cards. +INITSCRIPT_PARAMS = "start 40 S ." + +FILES_${PN} += "${libdir}/mts-io-sysfs*" +FILES_${PN} += "${sbindir}/mts-io-sysfs" + +# disable this on purpose for dev purposes +do_rm_work() { + echo "skipping" +} diff --git a/recipes-bsp/multitech/mts-io_4.9.0.bb b/recipes-bsp/multitech/mts-io_4.9.0.bb deleted file mode 100644 index ee4fcfa..0000000 --- a/recipes-bsp/multitech/mts-io_4.9.0.bb +++ /dev/null @@ -1,2 +0,0 @@ -require mts-io.inc - diff --git a/recipes-bsp/multitech/mts-io_4.9.1.bb b/recipes-bsp/multitech/mts-io_4.9.1.bb new file mode 100644 index 0000000..ee4fcfa --- /dev/null +++ b/recipes-bsp/multitech/mts-io_4.9.1.bb @@ -0,0 +1,2 @@ +require mts-io.inc + -- cgit v1.2.3