package/swupdate: add libubootenv as optional dependency
If the swupdate configuration contains CONFIG_UBOOT=y it uses
libubootenv to access the U-Boot environment.
We don't have Buildroot config options for all the different optional
dependencies of swupdate, instead we rely on the user to select the
appropriate packages and simply add the dependency in the .mk file. Do
this for libubootenv as well. swupdate doesn't have anything like
HAVE_LIBUBOOTENV, it just assumes libubootenv is available.
Fixes:
bootloader/uboot.c:23:10: fatal error: libuboot.h: No such file or directory
23 | #include <libuboot.h>
Note that libubootenv is normally built before swupdate (alphabetical
ordering), so the error only occrus with BR2_PER_PACKAGE_DIRECTORIES or
when building swupdate directly.
Note that the autobuilders don't have this error, because they only
build swupdate with a default configuration that doesn't have U-Boot
support.
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit a11b36089b
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
6943cfb1d1
commit
311d28cc59
@ -81,6 +81,10 @@ else
|
||||
SWUPDATE_MAKE_ENV += HAVE_LIBGPIOD=n
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUBOOTENV),y)
|
||||
SWUPDATE_DEPENDENCIES += libubootenv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBURIPARSER),y)
|
||||
SWUPDATE_DEPENDENCIES += liburiparser
|
||||
SWUPDATE_MAKE_ENV += HAVE_URIPARSER=y
|
||||
|
Loading…
Reference in New Issue
Block a user