diff mbox series

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

Message ID 20250106135329.188852-1-Michael.Glembotzki@iris-sensing.com
State Accepted
Delegated to: Stefano Babic
Headers show
Series [meta-swupdate] packagegroup-core-standalone-sdk-target: Add missing RDEPENDS to the swupdate SDK | expand

Commit Message

Michael Glembotzki Jan. 6, 2025, 1:53 p.m. UTC
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.Glembotzki@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 mbox series

Patch

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 \
+"