Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[meta-swupdate][PATCH] packagegroup-core-standalone-sdk-target: Add missing RDEPENDS to the swupdate SDK

25 views
Skip to first unread message

Michael Glembotzki

unread,
Jan 6, 2025, 8:53:45 AMJan 6
to swup...@googlegroups.com, Michael Glembotzki
The SDK for a custom image is not able to compile full featured swupdate,
because some libs and headers are missing (liblua.a, libcurl.so, ..).
The static linked libs are excluded in the sdk and dynamic linked libs
are only added (as depends in swupdate.inc), if the associated CONFIG was
enabled.

corelib/lua_interface.c:20:10: fatal error: lua.h: No such file or directory
20 | #include "lua.h"
| ^~~~~~~

corelib/channel_curl.c:20:10: fatal error: curl/curl.h: No such file or directory
20 | #include <curl/curl.h>
| ^~~~~~~~~~~~~

Using TOOLCHAIN_TARGET_TASK += "lua-staticdev" in a custom image recipe
has the overhead of figuring out, what libs are relevant to build
swupdate. For easier development / meta-layer integration let's add the
missing dependencies via packagegroup-core-standalone-sdk-target.

The libs are now implicit added to TOOLCHAIN_TARGET_TASK via:
populate_sdk_base:
TOOLCHAIN_TARGET_TASK += "packagegroup-core-standalone-sdk-target"

Signed-off-by: Michael Glembotzki <Michael.G...@iris-sensing.com>
---
...gegroup-core-standalone-sdk-target.bbappend | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 recipes-core/packagegroup/packagegroup-core-standalone-sdk-target.bbappend

diff --git a/recipes-core/packagegroup/packagegroup-core-standalone-sdk-target.bbappend b/recipes-core/packagegroup/packagegroup-core-standalone-sdk-target.bbappend
new file mode 100644
index 0000000..db2dfe9
--- /dev/null
+++ b/recipes-core/packagegroup/packagegroup-core-standalone-sdk-target.bbappend
@@ -0,0 +1,18 @@
+RDEPENDS:${PN} += "\
+ btrfs-tools \
+ curl \
+ e2fsprogs \
+ json-c \
+ libarchive \
+ libgpiod \
+ librsync \
+ libubootenv \
+ libwebsockets \
+ lua-staticdev \
+ mtd-utils-staticdev \
+ uriparser \
+ util-linux \
+ zchunk \
+ zeromq \
+ zstd \
+"
--
2.47.1

Reply all
Reply to author
Forward
0 new messages