package/swupdate: Add compatibility to libgpiod2

swupdate supports both the old and the new API, so HAVE_LIBGPIOD is
enabled if either is enabled.

Signed-off-by: Boerge Struempfel <bstruempfel@ultratronik.de>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Boerge Struempfel 2024-01-23 16:58:25 +01:00 committed by Arnout Vandecappelle
parent 57391fad2e
commit a26701a0db
2 changed files with 6 additions and 3 deletions

View File

@ -37,8 +37,8 @@ config BR2_PACKAGE_SWUPDATE
remote handler.
* Select BR2_PACKAGE_LIBRSYNC to add support for using
rdiff handler.
* Select BR2_PACKAGE_LIBGPIOD to add support for
microcontroller firmware update.
* Select BR2_PACKAGE_LIBGPIOD or BR2_PACKAGE_LIBGPIOD2 to add
support for microcontroller firmware update.
* Select BR2_PACKAGE_EFIBOOTMGR to add support for EFI Boot
Guard.
* Select BR2_PACKAGE_LIBCURL, BR2_PACKAGE_LIBWEBSOCKETS,

View File

@ -72,7 +72,10 @@ else
SWUPDATE_MAKE_ENV += HAVE_LIBFDISK=n
endif
ifeq ($(BR2_PACKAGE_LIBGPIOD),y)
ifeq ($(BR2_PACKAGE_LIBGPIOD2),y)
SWUPDATE_DEPENDENCIES += libgpiod2
SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=y
else ifeq ($(BR2_PACKAGE_LIBGPIOD),y)
SWUPDATE_DEPENDENCIES += libgpiod
SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=y
else