From 3c7d77ddb19e2da99d4dc6cde5ce6eadf49cb38d Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 28 Jul 2021 16:52:28 -0500 Subject: uxfp 1.7.2 --- .../0002-uxfp-add-param-syslog.patch | 43 +++++++++++----------- recipes-support/uxfp/uxfp-from-source_1.0.2.1.bb | 27 -------------- recipes-support/uxfp/uxfp-from-source_1.7.2-0.bb | 26 +++++++++++++ recipes-support/uxfp/uxfp_1.0.2.1.bb | 20 ---------- recipes-support/uxfp/uxfp_1.7.2-0.bb | 20 ++++++++++ 5 files changed, 68 insertions(+), 68 deletions(-) delete mode 100644 recipes-support/uxfp/uxfp-from-source_1.0.2.1.bb create mode 100644 recipes-support/uxfp/uxfp-from-source_1.7.2-0.bb delete mode 100644 recipes-support/uxfp/uxfp_1.0.2.1.bb create mode 100644 recipes-support/uxfp/uxfp_1.7.2-0.bb (limited to 'recipes-support') diff --git a/recipes-support/uxfp/uxfp-from-source/0002-uxfp-add-param-syslog.patch b/recipes-support/uxfp/uxfp-from-source/0002-uxfp-add-param-syslog.patch index 8dedc1b..e562b59 100644 --- a/recipes-support/uxfp/uxfp-from-source/0002-uxfp-add-param-syslog.patch +++ b/recipes-support/uxfp/uxfp-from-source/0002-uxfp-add-param-syslog.patch @@ -2,32 +2,33 @@ The patch allows to redirect all log messages from stdout to syslog. diff -ruN git/uxfp/main.c git/uxfp/main.c ---- git/uxfp/main.c 2020-07-28 19:06:02.236397898 +0300 -+++ git/uxfp/main.c 2020-07-28 17:55:38.000000000 +0300 -@@ -20,6 +20,7 @@ - uint64_t speed; - bool debug; - bool recovery; -+ bool syslog; +--- git/uxfp/main.c ++++ git/uxfp/main.c +@@ -47,6 +47,7 @@ + bool json; + bool report; + bool no_fastboot_driver; ++ bool syslog; } options = {0}; flag_t flags [] = { -@@ -30,6 +31,7 @@ - {"--class", "-c", VALUE_TYPE_ULONG, &options.class, OPT, "modem class"}, - {"--debug", "-d", VALUE_TYPE_BOOLEAN, &options.debug, OPT, "enable debug logging"}, - {"--lossrecovery", "-l", VALUE_TYPE_BOOLEAN, &options.recovery, OPT, "device in recovery mode"}, -+ {"--syslog", "-n", VALUE_TYPE_BOOLEAN, &options.syslog, OPT, "all the logs redirected to syslog"}, - {NULL, NULL, VALUE_TYPE_UNKNOWN, NULL, OPT, NULL}, +@@ -62,6 +63,7 @@ + {"--show-diag-ports", "-w", VALUE_TYPE_BOOLEAN, &options.show_connected_diag_ports, OPT, "only show connected diagnostic ports and exit"}, + {"--json", "-j", VALUE_TYPE_BOOLEAN, &options.json, OPT, "log in JSON format (automatically enable --report)"}, + {"--report", NULL, VALUE_TYPE_BOOLEAN, &options.report, OPT, "final JSON report (do not enable --json automatically)"}, ++ {"--syslog", "-n", VALUE_TYPE_BOOLEAN, &options.syslog, OPT, "all the logs redirected to syslog"}, + {NULL, NULL, VALUE_TYPE_UNKNOWN, NULL, OPT, NULL}, }; -@@ -60,6 +62,10 @@ - goto end; - } - -+ if (options.syslog) { -+ core_log_set_native(true); +@@ -139,6 +141,10 @@ + if (options.json) { + options.report = true; + core_log_set_pprint(CORE_LOG_PPRINT_JSON); + } + - if (options.debug) { - core_log_set_level(LOG_LEVEL_DBG); ++ if (options.syslog) { ++ core_log_set_native(true); } + + print_version_string(); + diff --git a/recipes-support/uxfp/uxfp-from-source_1.0.2.1.bb b/recipes-support/uxfp/uxfp-from-source_1.0.2.1.bb deleted file mode 100644 index ceb089d..0000000 --- a/recipes-support/uxfp/uxfp-from-source_1.0.2.1.bb +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION = "Telit utility for upgrading CAT4 radio firmware" -HOMEPAGE = "https://contact.telit.com/" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" - -DEPENDS = "libusb1 udev" - -PR = "r2" -SRCREV = "${PV}" - -SRC_URI = " \ - git://git@${MTS_INTERNAL_GIT}/vendor-code/uxfp.git;protocol=ssh;branch=master \ - file://0001-Fixed-unrecognized-command-line-option.patch \ - file://0002-uxfp-add-param-syslog.patch \ -" - -S = "${WORKDIR}/git" - -do_compile() { - oe_runmake -} - -do_install() { - install -d ${D}${sbindir} - install -m 0755 uxfp/linux/uxfp ${D}${sbindir} -} - diff --git a/recipes-support/uxfp/uxfp-from-source_1.7.2-0.bb b/recipes-support/uxfp/uxfp-from-source_1.7.2-0.bb new file mode 100644 index 0000000..64b9b01 --- /dev/null +++ b/recipes-support/uxfp/uxfp-from-source_1.7.2-0.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Telit utility for upgrading CAT4 radio firmware" +HOMEPAGE = "https://contact.telit.com/" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" + +DEPENDS = "libusb1 udev" + +PR = "r1" +SRCREV = "${PV}" + +SRC_URI = " \ + git://git@gitlab.multitech.net/vendor-code/uxfp.git;protocol=ssh;branch=master \ + file://0002-uxfp-add-param-syslog.patch \ +" + +S = "${WORKDIR}/git" + +do_compile() { + oe_runmake +} + +do_install() { + install -d ${D}${sbindir} + install -m 0755 uxfp/linux/uxfp ${D}${sbindir} +} + diff --git a/recipes-support/uxfp/uxfp_1.0.2.1.bb b/recipes-support/uxfp/uxfp_1.0.2.1.bb deleted file mode 100644 index 9096448..0000000 --- a/recipes-support/uxfp/uxfp_1.0.2.1.bb +++ /dev/null @@ -1,20 +0,0 @@ -DESCRIPTION = "Telit LXFP modem flashing tool" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" -RDEPENDS_${PN} += "libudev libusb1" - -PR = "r2" - -SRC_URI = "http://www.multitech.net/downloads/uxfp-${PACKAGE_ARCH}-${PV}-${PR}.tar.gz;name=${PACKAGE_ARCH}" -SRC_URI[arm926ejste.md5sum] = "920efaa12bff3a8315e7fca0aa06f1ec" -SRC_URI[arm926ejste.sha256sum] = "3d44db0b1f927f9dc628ee8413248c6c3966fdee43e2e8bf67d7a3f018fc3fd1" -SRC_URI[armv7vet2hf-neon.md5sum] = "07be30dea8dd7d1d3df44ebb8c1f7238" -SRC_URI[armv7vet2hf-neon.sha256sum] = "b3f2f8923fca0d6038cdef499eaced8eb6dbb835abf4d154569d34f24137bdd1" - -do_install() { - install -d ${D}${sbindir} - echo "do_install: directory is $(pwd)" - install -m 0755 ${WORKDIR}/${PN}-${PACKAGE_ARCH}-${PV}-${PR}/${sbindir}/uxfp ${D}${sbindir} -} - -FILES_${PN} = "${sbindir}" diff --git a/recipes-support/uxfp/uxfp_1.7.2-0.bb b/recipes-support/uxfp/uxfp_1.7.2-0.bb new file mode 100644 index 0000000..9096448 --- /dev/null +++ b/recipes-support/uxfp/uxfp_1.7.2-0.bb @@ -0,0 +1,20 @@ +DESCRIPTION = "Telit LXFP modem flashing tool" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28" +RDEPENDS_${PN} += "libudev libusb1" + +PR = "r2" + +SRC_URI = "http://www.multitech.net/downloads/uxfp-${PACKAGE_ARCH}-${PV}-${PR}.tar.gz;name=${PACKAGE_ARCH}" +SRC_URI[arm926ejste.md5sum] = "920efaa12bff3a8315e7fca0aa06f1ec" +SRC_URI[arm926ejste.sha256sum] = "3d44db0b1f927f9dc628ee8413248c6c3966fdee43e2e8bf67d7a3f018fc3fd1" +SRC_URI[armv7vet2hf-neon.md5sum] = "07be30dea8dd7d1d3df44ebb8c1f7238" +SRC_URI[armv7vet2hf-neon.sha256sum] = "b3f2f8923fca0d6038cdef499eaced8eb6dbb835abf4d154569d34f24137bdd1" + +do_install() { + install -d ${D}${sbindir} + echo "do_install: directory is $(pwd)" + install -m 0755 ${WORKDIR}/${PN}-${PACKAGE_ARCH}-${PV}-${PR}/${sbindir}/uxfp ${D}${sbindir} +} + +FILES_${PN} = "${sbindir}" -- cgit v1.2.3