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:
parent
57391fad2e
commit
a26701a0db
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user