From b8f5484fd8900900b5af7fbade631bf35c35c0f9 Mon Sep 17 00:00:00 2001 From: wangmy Date: Wed, 8 Sep 2021 22:46:00 +0800 Subject: dfu-util: upgrade 0.10 -> 0.11 o Fix suffix check regression on Windows with Large File Support o Skip setting alternate interface when not needed o Only clamp transfer size on Linux o Quirk for GD32 leave request o Improve status and error messages and exit codes o dfuse: Process all alternate interfaces in a DfuSe file o dfuse-pack.py: Fix alternate settings if first is 0 2021-09-05 Tormod Volden Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../dfu-util/dfu-util-native_0.10.bb | 24 ---------------------- .../dfu-util/dfu-util-native_0.11.bb | 24 ++++++++++++++++++++++ meta-oe/recipes-support/dfu-util/dfu-util_0.10.bb | 13 ------------ meta-oe/recipes-support/dfu-util/dfu-util_0.11.bb | 12 +++++++++++ 4 files changed, 36 insertions(+), 37 deletions(-) delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb create mode 100644 meta-oe/recipes-support/dfu-util/dfu-util-native_0.11.bb delete mode 100644 meta-oe/recipes-support/dfu-util/dfu-util_0.10.bb create mode 100644 meta-oe/recipes-support/dfu-util/dfu-util_0.11.bb diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb deleted file mode 100644 index 4641b0181a..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.10.bb +++ /dev/null @@ -1,24 +0,0 @@ -require dfu-util_${PV}.bb - -inherit deploy native - -DEPENDS = "libusb1-native" - -PACKAGECONFIG ??= "" - -PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',," - -do_deploy() { - install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} - rm -f ${DEPLOYDIR}/dfu-util - ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util -} - -addtask deploy before do_package after do_install - -# cleandirs should possibly be in deploy.bbclass but we need it -do_deploy[cleandirs] = "${DEPLOYDIR}" -# clear stamp-extra-info since MACHINE_ARCH is normally put there by -# deploy.bbclass -do_deploy[stamp-extra-info] = "" - diff --git a/meta-oe/recipes-support/dfu-util/dfu-util-native_0.11.bb b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.11.bb new file mode 100644 index 0000000000..4641b0181a --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util-native_0.11.bb @@ -0,0 +1,24 @@ +require dfu-util_${PV}.bb + +inherit deploy native + +DEPENDS = "libusb1-native" + +PACKAGECONFIG ??= "" + +PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',," + +do_deploy() { + install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV} + rm -f ${DEPLOYDIR}/dfu-util + ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util +} + +addtask deploy before do_package after do_install + +# cleandirs should possibly be in deploy.bbclass but we need it +do_deploy[cleandirs] = "${DEPLOYDIR}" +# clear stamp-extra-info since MACHINE_ARCH is normally put there by +# deploy.bbclass +do_deploy[stamp-extra-info] = "" + diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_0.10.bb b/meta-oe/recipes-support/dfu-util/dfu-util_0.10.bb deleted file mode 100644 index 86353712db..0000000000 --- a/meta-oe/recipes-support/dfu-util/dfu-util_0.10.bb +++ /dev/null @@ -1,13 +0,0 @@ -DESCRIPTION = "USB Device Firmware Upgrade utility" -AUTHOR = "Harald Welte " -HOMEPAGE = "http://dfu-util.sourceforge.net" -SECTION = "devel" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -DEPENDS = "libusb1" - -SRC_URI = "http://dfu-util.sourceforge.net/releases/${BP}.tar.gz" -SRC_URI[md5sum] = "8cf55663703cdc6b40f377f999eb8d3d" -SRC_URI[sha256sum] = "a03dc58dfc79c056819c0544b2a5970537566460102b3d82cfb038c60e619b42" - -inherit autotools pkgconfig diff --git a/meta-oe/recipes-support/dfu-util/dfu-util_0.11.bb b/meta-oe/recipes-support/dfu-util/dfu-util_0.11.bb new file mode 100644 index 0000000000..5a1e4aac5f --- /dev/null +++ b/meta-oe/recipes-support/dfu-util/dfu-util_0.11.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "USB Device Firmware Upgrade utility" +AUTHOR = "Harald Welte " +HOMEPAGE = "http://dfu-util.sourceforge.net" +SECTION = "devel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +DEPENDS = "libusb1" + +SRC_URI = "http://dfu-util.sourceforge.net/releases/${BP}.tar.gz" +SRC_URI[sha256sum] = "b4b53ba21a82ef7e3d4c47df2952adf5fa494f499b6b0b57c58c5d04ae8ff19e" + +inherit autotools pkgconfig -- cgit 1.2.3-korg