package/espflash: add udev dependency

Add the dependency on udev, since espflash links against libudev
(via the libudev-sys crate).

Fixes:

  http://autobuild.buildroot.net/results/c61b6ed4b6fb4d18d503ac37add200f5e6ae3706

Signed-off-by: Torben Voltmer <mail@t-voltmer.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Torben Voltmer 2024-07-29 21:32:43 +02:00 committed by Thomas Petazzoni
parent 52e537c6a5
commit c4e845b5b8
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_ESPFLASH
bool "espflash"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_HOST_RUSTC
help
Serial flasher utilities for Espressif devices, based
@ -8,3 +9,7 @@ config BR2_PACKAGE_ESPFLASH
ESP32-C2/C3/C6, ESP32-H2, ESP32-P4, and ESP32-S2/S3.
https://github.com/esp-rs/espflash
comment "espflash needs udev /dev management"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
depends on !BR2_PACKAGE_HAS_UDEV

View File

@ -9,5 +9,6 @@ ESPFLASH_SITE = $(call github,esp-rs,espflash,v$(ESPFLASH_VERSION))
ESPFLASH_SUBDIR = espflash
ESPFLASH_LICENSE = Apache-2.0 or MIT
ESPFLASH_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
ESPFLASH_DEPENDENCIES = udev
$(eval $(cargo-package))