mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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:
committed by
Arnout Vandecappelle
parent
57391fad2e
commit
a26701a0db
@@ -37,8 +37,8 @@ config BR2_PACKAGE_SWUPDATE
|
|||||||
remote handler.
|
remote handler.
|
||||||
* Select BR2_PACKAGE_LIBRSYNC to add support for using
|
* Select BR2_PACKAGE_LIBRSYNC to add support for using
|
||||||
rdiff handler.
|
rdiff handler.
|
||||||
* Select BR2_PACKAGE_LIBGPIOD to add support for
|
* Select BR2_PACKAGE_LIBGPIOD or BR2_PACKAGE_LIBGPIOD2 to add
|
||||||
microcontroller firmware update.
|
support for microcontroller firmware update.
|
||||||
* Select BR2_PACKAGE_EFIBOOTMGR to add support for EFI Boot
|
* Select BR2_PACKAGE_EFIBOOTMGR to add support for EFI Boot
|
||||||
Guard.
|
Guard.
|
||||||
* Select BR2_PACKAGE_LIBCURL, BR2_PACKAGE_LIBWEBSOCKETS,
|
* Select BR2_PACKAGE_LIBCURL, BR2_PACKAGE_LIBWEBSOCKETS,
|
||||||
|
|||||||
@@ -72,7 +72,10 @@ else
|
|||||||
SWUPDATE_MAKE_ENV += HAVE_LIBFDISK=n
|
SWUPDATE_MAKE_ENV += HAVE_LIBFDISK=n
|
||||||
endif
|
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_DEPENDENCIES += libgpiod
|
||||||
SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=y
|
SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=y
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user