From a11b36089b34dcf0c1b90835a436f50efec3d8fb Mon Sep 17 00:00:00 2001 From: Michael Nosthoff Date: Thu, 10 Nov 2022 11:23:12 +0100 Subject: [PATCH] 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 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 Signed-off-by: Arnout Vandecappelle --- package/swupdate/swupdate.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk index bfc161d490..ed0c1e56a8 100644 --- a/package/swupdate/swupdate.mk +++ b/package/swupdate/swupdate.mk @@ -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