diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2025-12-09 17:55:51 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-09 15:11:01 -0800 |
| commit | dfbe08b6c3d842bf4add77580a579f76a1cd4cee (patch) | |
| tree | 3b0f82795f780571e43c4300ca8c80fc569d9981 | |
| parent | 8f2c436db5b4e6ba59550ad63f73a61dd459ba45 (diff) | |
| download | meta-openembedded-dfbe08b6c3d842bf4add77580a579f76a1cd4cee.tar.gz | |
usb-modeswitch: upgrade 2.6.1 -> 2.6.2
0001-Fix-build-with-gcc-15.patch
removed since it's included in 2.6.2
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-Fix-build-with-gcc-15.patch | 51 | ||||
| -rw-r--r-- | meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.2.bb (renamed from meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.1.bb) | 6 |
2 files changed, 2 insertions, 55 deletions
diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-Fix-build-with-gcc-15.patch b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-Fix-build-with-gcc-15.patch deleted file mode 100644 index eb65beb686..0000000000 --- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0001-Fix-build-with-gcc-15.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | From f497eef1f38bd79a96a13269f251f1413c54b790 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <martin.jansa@gmail.com> | ||
| 3 | Date: Tue, 25 Mar 2025 12:36:32 +0100 | ||
| 4 | Subject: [PATCH] Fix build with gcc-15 | ||
| 5 | |||
| 6 | * fixes: | ||
| 7 | http://errors.yoctoproject.org/Errors/Details/848747/ | ||
| 8 | |||
| 9 | usb_modeswitch.c: In function 'main': | ||
| 10 | usb_modeswitch.c:573:28: error: too many arguments to function 'get_current_config_value'; expected 0, have 1 | ||
| 11 | 573 | currentConfigVal = get_current_config_value(dev); | ||
| 12 | | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | ||
| 13 | In file included from usb_modeswitch.c:59: | ||
| 14 | usb_modeswitch.h:55:5: note: declared here | ||
| 15 | 55 | int get_current_config_value(); | ||
| 16 | | ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 17 | usb_modeswitch.c:775:52: error: too many arguments to function 'get_current_config_value'; expected 0, have 1 | ||
| 18 | 775 | currentConfigVal = get_current_config_value(dev); | ||
| 19 | | ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | ||
| 20 | usb_modeswitch.h:55:5: note: declared here | ||
| 21 | 55 | int get_current_config_value(); | ||
| 22 | | ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 23 | |||
| 24 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 25 | Upstream-Status: Submitted [https://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=3122] | ||
| 26 | --- | ||
| 27 | usb_modeswitch.c | 4 ++-- | ||
| 28 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 29 | |||
| 30 | diff --git a/usb_modeswitch.c b/usb_modeswitch.c | ||
| 31 | index 2d4c0aa..bfbcbfb 100644 | ||
| 32 | --- a/usb_modeswitch.c | ||
| 33 | +++ b/usb_modeswitch.c | ||
| 34 | @@ -570,7 +570,7 @@ int main(int argc, char **argv) | ||
| 35 | /* Get current configuration of default device, note value if Configuration | ||
| 36 | * parameter is set. Also sets active_config | ||
| 37 | */ | ||
| 38 | - currentConfigVal = get_current_config_value(dev); | ||
| 39 | + currentConfigVal = get_current_config_value(); | ||
| 40 | if (Configuration > -1) { | ||
| 41 | SHOW_PROGRESS(output,"Current configuration number is %d\n", currentConfigVal); | ||
| 42 | } else | ||
| 43 | @@ -772,7 +772,7 @@ int main(int argc, char **argv) | ||
| 44 | if (Configuration > 0) { | ||
| 45 | if (currentConfigVal != Configuration) { | ||
| 46 | if (switchConfiguration()) { | ||
| 47 | - currentConfigVal = get_current_config_value(dev); | ||
| 48 | + currentConfigVal = get_current_config_value(); | ||
| 49 | if (currentConfigVal == Configuration) { | ||
| 50 | SHOW_PROGRESS(output,"The configuration was set successfully\n"); | ||
| 51 | } else { | ||
diff --git a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.1.bb b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.2.bb index b6b720fe1e..af2b5b6491 100644 --- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.1.bb +++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.6.2.bb | |||
| @@ -4,10 +4,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=091556bd6d0154cd4c2d17a1bfc7380a" | |||
| 4 | 4 | ||
| 5 | DEPENDS = "libusb1" | 5 | DEPENDS = "libusb1" |
| 6 | 6 | ||
| 7 | SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2 \ | 7 | SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2" |
| 8 | file://0001-Fix-build-with-gcc-15.patch \ | 8 | SRC_URI[sha256sum] = "f7abd337784a9d1bd39cb8a587518aff6f2a43d916145eafd80b1b8b7146db66" |
| 9 | " | ||
| 10 | SRC_URI[sha256sum] = "5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34" | ||
| 11 | 9 | ||
| 12 | inherit pkgconfig systemd | 10 | inherit pkgconfig systemd |
| 13 | 11 | ||
