[PATCH 1/2] rootfs: Correct cache-dbg-pkgs check to BASE_REPO_FEATURES

16 views
Skip to first unread message

Badrikesh Prusty

unread,
Apr 3, 2025, 4:32:52 PM4/3/25
to isar-...@googlegroups.com, badrikesh prusty
From: badrikesh prusty <badrikes...@siemens.com>

Debug symbol packages downloaded during do_rootfs_postprocess are missing from
the downloads/deb (DEBDIR) directory. This change ensures cache-dbg-pkgs is
checked within BASE_REPO_FEATURES, not ROOTFS_FEATURES, enabling the function
rootfs_export_package_cache to properly export downloaded debug packages to the
DEBDIR directory.

Signed-off-by: badrikesh prusty <badrikes...@siemens.com>
---
meta/classes/rootfs.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass
index cd8fd118..7695bdb4 100644
--- a/meta/classes/rootfs.bbclass
+++ b/meta/classes/rootfs.bbclass
@@ -293,7 +293,7 @@ cache_deb_src() {
fi
}

-ROOTFS_POSTPROCESS_COMMAND += "${@bb.utils.contains('ROOTFS_FEATURES', 'cache-dbg-pkgs', 'rootfs_export_package_cache', '', d)}"
+ROOTFS_POSTPROCESS_COMMAND += "${@bb.utils.contains('BASE_REPO_FEATURES', 'cache-dbg-pkgs', 'rootfs_export_package_cache', '', d)}"
cache_dbg_pkgs() {
if [ -e "${ROOTFSDIR}"/etc/resolv.conf ] ||
[ -h "${ROOTFSDIR}"/etc/resolv.conf ]; then
--
2.39.5

Badrikesh Prusty

unread,
Apr 3, 2025, 4:33:00 PM4/3/25
to isar-...@googlegroups.com, badrikesh prusty
From: badrikesh prusty <badrikes...@siemens.com>

Users can now select 'Cache all debug packages' from the kas/kas-container
menu to enable the caching of debug symbol packages.

Signed-off-by: badrikesh prusty <badrikes...@siemens.com>
---
kas/opt/Kconfig | 12 ++++++++++++
kas/opt/cache-dbg-pkgs.yaml | 9 +++++++++
2 files changed, 21 insertions(+)
create mode 100644 kas/opt/cache-dbg-pkgs.yaml

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 5784a6dd..3fa57f87 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -182,3 +182,15 @@ config KAS_INCLUDE_CACHE_DEB_SRC
string
default "kas/opt/cache-deb-src.yaml"
depends on CACHE_DEB_SRC
+
+
+config CACHE_DBG_PKGS
+ bool "Cache all debug packages"
+ help
+ This feature allows to download debug symbol packages for any binary package
+ that took part in the build (including ones downloaded from distro mirrors).
+
+config KAS_INCLUDE_CACHE_DBG_PKGS
+ string
+ default "kas/opt/cache-dbg-pkgs.yaml"
+ depends on CACHE_DBG_PKGS
diff --git a/kas/opt/cache-dbg-pkgs.yaml b/kas/opt/cache-dbg-pkgs.yaml
new file mode 100644
index 00000000..5f53c368
--- /dev/null
+++ b/kas/opt/cache-dbg-pkgs.yaml
@@ -0,0 +1,9 @@
+# This software is a part of ISAR.
+# Copyright (C) 2025 ilbers GmbH
+
+header:
+ version: 14
+
+local_conf_header:
+ cache-dbg-pkgs: |
+ BASE_REPO_FEATURES:append = " cache-dbg-pkgs"
--
2.39.5

Baurzhan Ismagulov

unread,
May 7, 2025, 9:33:31 AM5/7/25
to isar-...@googlegroups.com
On 2025-04-04 02:01, 'Badrikesh Prusty' via isar-users wrote:
> From: badrikesh prusty <badrikes...@siemens.com>
>
> Debug symbol packages downloaded during do_rootfs_postprocess are missing from
> the downloads/deb (DEBDIR) directory. This change ensures cache-dbg-pkgs is
> checked within BASE_REPO_FEATURES, not ROOTFS_FEATURES, enabling the function
> rootfs_export_package_cache to properly export downloaded debug packages to the
> DEBDIR directory.
>
> Signed-off-by: badrikesh prusty <badrikes...@siemens.com>

Applied to next, thanks.

With kind regards,
Baurzhan
Reply all
Reply to author
Forward
0 new messages